Library that provides collection, processing, and rendering functionality for PHP code coverage information.
This report summarizes scanner evidence for sebastianbergmann/php-code-coverage, a PHP project with 8,923 GitHub stars. SynthScan examined 58,532 lines of code across 468 source files, recording 875 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 16.3 (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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 875 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 874 finding(s).
Which changes need focused human review? 875 finding(s).
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.
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.
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.
The scanner identified 875 distinct pattern matches across 2 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/tests/FilterTest.php | 48 | public function testMultipleFilesCanBeAdded(): void | CODE |
| LOW | tests/tests/FilterTest.php | 62 | public function testDeterminesWhetherStringContainsNameOfRealFileThatExists(): void | CODE |
| LOW | tests/tests/FilterTest.php | 75 | public function testIncludedFileIsNotFiltered(): void | CODE |
| LOW | tests/tests/FilterTest.php | 89 | public function testNotIncludedFileIsFiltered(): void | CODE |
| LOW | tests/tests/FilterTest.php | 111 | public function testTryingToAddFileThatDoesNotExistDoesNotChangeFilter(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 46 | public function testApplyFilterRemovesExcludedFiles(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 62 | public function testApplyFilterKeepsIncludedFiles(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 78 | public function testApplyFilterSkipsFilteringWhenFilterIsEmpty(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 91 | public function testApplyExecutableLinesFilterKeepsOnlyExecutableLines(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 115 | public function testApplyExecutableLinesFilterDoesNotMarkTernaryArmsInArrayLiteralAsNotExecuted(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 161 | public function testApplyExecutableLinesFilterDoesNotMarkPropertyHookBodyAsNotExecutedWhenDriverDoesNotReportIt(): v | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 190 | public function testApplyExecutableLinesFilterDoesNotMarkUnexecutedLinesOfPropertyHookBodyAsExecuted(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 219 | public function testApplyExecutableLinesFilterKeepsRawDataForFileThatCannotBeParsed(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 240 | public function testApplyExecutableLinesFilterSkipsNonFilterFiles(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 261 | public function testApplyIgnoredLinesFilterRemovesIgnoredLines(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 284 | public function testApplyIgnoredLinesFilterSkipsNonFilterFiles(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 305 | public function testApplyCoversAndUsesFilterClearsDataWhenLinesToBeCoveredIsFalse(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 326 | public function testApplyCoversAndUsesFilterReturnsEarlyWhenLinesToBeCoveredIsEmpty(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 350 | public function testApplyCoversAndUsesFilterKeepsOnlyCoveredLines(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 374 | public function testApplyCoversAndUsesFilterRemovesFilesNotInCoversList(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 397 | public function testApplyCoversAndUsesFilterRunsUnintentionallyCoveredCodeCheckForSmallTests(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 418 | public function testApplyCoversAndUsesFilterSkipsUnintentionallyCoveredCodeCheckForMediumTests(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 442 | public function testApplyCoversAndUsesFilterSkipsUnintentionallyCoveredCodeCheckForLargeTests(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 466 | public function testApplyCoversAndUsesFilterSkipsUnintentionallyCoveredCodeCheckWhenDisabled(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 490 | public function testUncoveredFilesFromFilterReturnsDataForUncoveredFiles(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 506 | public function testUncoveredFilesFromFilterReturnsEmptyWhenAllFilesAreCovered(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 527 | public function testUncoveredFilesFromFilterReturnsEmptyWhenFilterIsEmpty(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 538 | public function testUncoveredFilesFromFilterSkipsNonExistentFiles(): void | CODE |
| LOW | tests/tests/FilterProcessorTest.php | 560 | public function testUncoveredFilesFromFilterReturnsMultipleFiles(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 40 | public static function sizesForWhichUnintentionallyCoveredCodeIsNotChecked(): array | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 51 | public static function sizesForWhichUnintentionallyCoveredCodeIsChecked(): array | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 119 | public function testExcludeNonExecutableLines(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 176 | public function testMergesTheTestsOfAnotherInstance(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 280 | public function testEnableAndDisableCheckForUnintentionallyCoveredCode(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 298 | public function testIncludeAndExcludeUncoveredFiles(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 311 | public function testEnableAndDisableAnnotationsForIgnoringCode(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 329 | public function testIgnoreAndDoNotIgnoreDeprecatedCode(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 342 | public function testCacheStaticAnalysisAndDoNotCacheStaticAnalysis(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 364 | public function testCacheDirectoryReturnsCacheDirectory(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 380 | public function testCacheDirectoryThrowsWhenNotConfigured(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 392 | public function testDisableBranchAndPathCoverageAndCollectsBranchAndPathCoverage(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 406 | public function testAppendThrowsWhenIdIsNull(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 420 | public function testAppendReturnsEarlyWhenAppendIsFalse(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 435 | public function testAppendReturnsEarlyWhenLineCoverageIsEmpty(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 446 | public function testGetDataIncludesUncoveredFiles(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 458 | public function testMergeDoesNotAddLinesFromDataForFileThatWasNotExecutedToDataForFileThatWasExecuted(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 487 | public function testGetDataExcludesUncoveredFilesWhenRaw(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 501 | public function testAnalyserUsesCacheWhenConfigured(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 521 | public function testDisableAnnotationsForIgnoringCodeSkipsIgnoredLinesFilter(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 537 | public function testEmptyTargetCollectionIsValidWithoutBuildingCodeUnitMap(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 547 | public function testFileThatCannotBeParsedHasCoverageBasedOnRawDriverData(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 579 | public function testDataNotFilteredUsingTargetsIsNotCollectedByDefault(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 590 | public function testDataNotFilteredUsingTargetsIsNotNarrowedToTargetsOfTest(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 608 | public function testDataNotFilteredUsingTargetsIsCollectedForTestThatCoversNothing(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 623 | public function testDataNotFilteredUsingTargetsIsDiscardedWhenTheNextTestStarts(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 634 | public function testDataNotFilteredUsingTargetsIsDiscardedWhenCollectedDataIsCleared(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 645 | public function testCollectionOfDataNotFilteredUsingTargetsCanBeDisabled(): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 657 | public function testAppendDoesNotCheckForUnintentionallyCoveredCodeWhenSizePassedIsMediumOrLarge(TestSize $size): vo | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 670 | public function testAppendChecksForUnintentionallyCoveredCodeWhenSizeIsNeitherMediumNorLarge(?TestSize $size): void | CODE |
| LOW | tests/tests/CodeCoverageTest.php | 679 | public function testSizePassedToAppendTakesPrecedenceOverSizePassedToStart(): void | CODE |
| 814 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/tests/Report/XmlTest.php | 21 | use SebastianBergmann\CodeCoverage\Node\Builder; | COMMENT |