AI Slop Code RIsk Monitor

sebastianbergmann/phpunit

The PHP Unit Testing framework.

15.9 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for sebastianbergmann/phpunit, a PHP project with 20,059 GitHub stars. SynthScan examined 244,632 lines of code across 3622 source files, recording 3866 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 15.9 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

15.9
Adjusted Signal
15.9
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
20.1K
Stars
PHP
Language
244.6K
Lines of Code
3.6K
Files
3.9K
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 54.7/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 3865 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

Are imports declared and package/API names verified? 1 finding(s).

Agent Over-Engineering Ratio 54.7/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 3858 finding(s).

PR Review Velocity Impact 54.6/100 · HIGH

Which changes need focused human review? 3866 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 0MEDIUM 0LOW 3866

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 3866 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers3858 hits · 3872 pts
SeverityFileLineSnippetContext
LOWtests/unit/TextUI/TestSuiteFilterProcessorTest.php29 public function testRejectsTestIdFilterFileThatCannotBeRead(): voidCODE
LOWtests/unit/TextUI/ShellExitCodeCalculatorTest.php42 public function testFailsOnPhpunitNoticeWhenRequested(): voidCODE
LOWtests/unit/TextUI/ShellExitCodeCalculatorTest.php53 public function testDoesNotFailOnPhpunitNoticeWhenRequested(): voidCODE
LOWtests/unit/TextUI/ShellExitCodeCalculatorTest.php67 public function testSignalsExceededTimeLimitUsingDedicatedExitCode(): voidCODE
LOWtests/unit/TextUI/ShellExitCodeCalculatorTest.php89 private function testResultWithPhpunitNotice(): TestResultCODE
LOWtests/unit/TextUI/ShellExitCodeCalculatorTest.php148 private function testResultWithExceededTimeLimit(): TestResultCODE
LOWtests/unit/TextUI/TestRunnerTest.php29 public function testWrapsThrowableInRuntimeException(): voidCODE
LOWtests/unit/TextUI/PhpHandlerTest.php35 public function testPHPConfigurationIsHandledCorrectly(): voidCODE
LOWtests/unit/TextUI/PhpHandlerTest.php62 public function testHandlePHPConfigurationDoesNotOverwriteExistingEnvArrayVariables(): voidCODE
LOWtests/unit/TextUI/PhpHandlerTest.php75 public function testHandlePHPConfigurationDoesNotOverwriteVariablesFromPutEnv(): voidCODE
LOWtests/unit/TextUI/PhpHandlerTest.php96 public function testHandlePHPConfigurationDoesOverwriteVariablesFromPutEnvWhenForced(): voidCODE
LOWtests/unit/TextUI/PhpHandlerTest.php109 public function testHandlePHPConfigurationDoesForceOverwrittenExistingEnvArrayVariables(): voidCODE
LOWtests/unit/TextUI/PhpHandlerTest.php119 public function testIniSettingValueIsResolvedFromDefinedConstant(): voidCODE
LOWtests/unit/TextUI/PhpHandlerTest.php132 public function testWarningIsTriggeredWhenIniSettingCannotBeSet(): voidCODE
LOWtests/unit/TextUI/PhpHandlerTest.php156 public function testEnvironmentVariableWithValueThatIsNotScalarIsIgnored(): voidCODE
LOWtests/unit/TextUI/SourceFilterTest.php642 public function testDeterminesWhetherFileIsIncluded(array $expectations, Source $source): voidCODE
LOWtests/unit/TextUI/SourceMapperTest.php528 public function testDeterminesWhetherFileIsIncluded(array $expected, Source $source): voidCODE
LOWtests/unit/TextUI/SourceMapperTest.php539 public function testDoesNotMapFilesInHiddenDirectories(): voidCODE
LOW⚡…unit/TextUI/Configuration/ExecutionOrderParserTest.php54 public function testResolvesTokensToConfiguration(string $value, int $expectedOrder, int $expectedOrderDefects, boolCODE
LOW⚡…unit/TextUI/Configuration/ExecutionOrderParserTest.php64 public function testCollectsUnknownTokensInsteadOfIgnoringThem(): voidCODE
LOW⚡…unit/TextUI/Configuration/ExecutionOrderParserTest.php73 public function testDefaultTokenResetsEveryKnob(): voidCODE
LOW⚡…unit/TextUI/Configuration/ExecutionOrderParserTest.php82 public function testDeprecatesRenamedDurationToken(): voidCODE
LOW⚡…unit/TextUI/Configuration/ExecutionOrderParserTest.php90 public function testDeprecatesRenamedSizeToken(): voidCODE
LOW⚡…unit/TextUI/Configuration/ExecutionOrderParserTest.php98 public function testDeprecatesMoreThanOneOrder(): voidCODE
LOW⚡…unit/TextUI/Configuration/ExecutionOrderParserTest.php107 public function testDeprecatesTheDependsTokenInFavorOfTheDedicatedOption(): voidCODE
LOW…unit/TextUI/Configuration/ExecutionOrderParserTest.php121 public function testDeprecatesTheNoDependsTokenInFavorOfTheDedicatedOption(): voidCODE
LOW…unit/TextUI/Configuration/ExecutionOrderParserTest.php135 public function testDeprecatesDefectsBeingWrittenBeforeTheOrder(): voidCODE
LOW…unit/TextUI/Configuration/ExecutionOrderParserTest.php144 public function testNeverSuggestsADeprecatedTokenAsTheReplacement(): voidCODE
LOW…unit/TextUI/Configuration/ExecutionOrderParserTest.php164 public function testDoesNotDeprecateDefectsBeingWrittenAfterTheOrder(): voidCODE
LOW…unit/TextUI/Configuration/ExecutionOrderParserTest.php170 public function testNamesTheConfigurationSurfaceTheValueCameFrom(): voidCODE
LOW⚡tests/unit/TextUI/Configuration/MergerTest.php350 public function testIncludePathsAreCarriedOverFromXmlConfiguration(): voidCODE
LOW⚡tests/unit/TextUI/Configuration/MergerTest.php359 public function testColorsCanBeEnabledFromXmlConfiguration(): voidCODE
LOW⚡tests/unit/TextUI/Configuration/MergerTest.php368 public function testThresholdsForHtmlCodeCoverageReportAreResetWhenTheyAreInconsistent(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php33 public function testNoLoggingShouldOnlyAffectXmlConfiguration(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php61 public function testBranchCoverageCanBeEnabledFromCli(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php76 public function testClassViewAndFileViewForHtmlCodeCoverageReportAreEnabledByDefault(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php88 public function testClassViewForHtmlCodeCoverageReportCanBeDisabledFromXmlConfiguration(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php100 public function testClassViewForHtmlCodeCoverageReportCanBeDisabledFromCli(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php114 public function testFileViewForHtmlCodeCoverageReportCanBeDisabledFromXmlConfiguration(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php126 public function testFileViewForHtmlCodeCoverageReportCanBeDisabledFromCli(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php140 public function testCoverageTargetingCanBeDisabledFromCli(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php153 public function testCoverageTargetingIsNotDisabledByDefault(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php164 public function testCoverageDriverIsCarriedOverFromXmlConfiguration(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php176 public function testNoCoverageShouldOnlyAffectXmlConfiguration(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php214 public function testLoggingConfigurationIsCarriedOverFromXmlConfiguration(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php237 public function testCodeCoverageReportsCanBeConfiguredFromCli(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php285 public function testMiscellaneousOptionsCanBeConfiguredFromCli(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php311 public function testTimeoutIsNotConfiguredByDefault(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php325 public function testTimeoutCanBeConfiguredFromCli(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php336 public function testInvalidRandomOrderSeedIsReplacedWithSmallestValidSeed(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php383 public function testCustomCssFileForHtmlCodeCoverageReportIsCarriedOverFromXmlConfiguration(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php393 public function testWarningIsTriggeredWhenIssueTriggerIdentificationIsDisabledButNeeded(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php415 public function testTestRunHistoryFileIsLocatedNextToTheScriptThatIsRunning(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php427 public function testTestRunHistoryFileIsLocatedInTheCurrentWorkingDirectoryWhenTheScriptThatIsRunningIsUnknown(): voCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php486 public function testFailOnDeprecationTriggerOptionsCanBeConfiguredUsingXmlConfigurationFile(): voidCODE
LOWtests/unit/TextUI/Configuration/MergerTest.php510 public function testFailOnDeprecationTriggerOptionsCanBeConfiguredUsingCommandLineOptions(): voidCODE
LOW…sts/unit/TextUI/Configuration/TestSuiteBuilderTest.php64 public function testLoadsEveryTestFileWhenNoTestFileSkipperIsUsed(): voidCODE
LOW…sts/unit/TextUI/Configuration/TestSuiteBuilderTest.php75 public function testDoesNotLoadATestFileThatCannotContributeATestToTheRun(): voidCODE
LOW…sts/unit/TextUI/Configuration/TestSuiteBuilderTest.php102 public function testDoesNotLoadATestFileThatIsNamedOnTheCommandLineNextToAnotherOneAndCannotContributeATestToTheRun(CODE
LOW…sts/unit/TextUI/Configuration/TestSuiteBuilderTest.php130 public function testLoadsATestFileThroughTheTestFileSkipperSoThatAFileThatCannotBeLoadedIsNotRemembered(): voidCODE
3798 more matches not shown…
Over-Commented Block7 hits · 7 pts
SeverityFileLineSnippetContext
LOWtests/unit/Metadata/MetadataCollectionTest.php21#[CoversClass(MetadataCollection::class)]COMMENT
LOWtests/unit/Metadata/MetadataCollectionTest.php41#[UsesClass(PostCondition::class)]COMMENT
LOWtests/unit/Metadata/Parser/AttributeParserTest.php81use PHPUnit\Framework\Attributes\UsesNamespace;COMMENT
LOWtests/unit/Metadata/Parser/AttributeParserTest.php101#[CoversClass(CoversFile::class)]COMMENT
LOWtests/unit/Metadata/Parser/AttributeParserTest.php121#[CoversClass(ExcludeStaticPropertyFromBackup::class)]COMMENT
LOWtests/unit/Metadata/Parser/AttributeParserTest.php141#[CoversClass(RunTestsInSeparateProcesses::class)]COMMENT
LOWtests/_files/IniSettingNotChangeableAtRuntimeTest.php21 {COMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…_files/code-coverage-driver/phpunit-with-fake-data.xml5 cacheDirectory=".phpunit.cache.with-fake-data">CODE