PHP Image Processing
This report summarizes scanner evidence for Intervention/image, a PHP project with 14,375 GitHub stars. SynthScan examined 57,232 lines of code across 664 source files, recording 436 pattern matches distributed across 1 syntactic category. The legacy adjusted pattern signal is 8.6 (Moderate 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? 436 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 436 finding(s).
Which changes need focused human review? 436 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 436 distinct pattern matches across 1 syntactic category. 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/GdTestCase.php | 35 | public static function createTestImageTransparent(int $width, int $height): Image | CODE |
| LOW | tests/Unit/DataUriTest.php | 34 | public static function getSetMediaTypeDataProvider(): Generator | CODE |
| LOW | tests/Unit/DataUriTest.php | 192 | public function testCreateStaticFactoryMinimal(): void | CODE |
| LOW | tests/Unit/DataUriTest.php | 200 | public function testCreateStaticFactoryWithMediaTypeEnum(): void | CODE |
| LOW | tests/Unit/DataUriTest.php | 234 | public function testDebugInfoWithoutMediaType(): void | CODE |
| LOW | tests/Unit/EncodedImageTest.php | 21 | public function testConstructorFromResource(): void | CODE |
| LOW | tests/Unit/EncodedImageTest.php | 86 | public function testDebugInfoWhenSizeThrows(): void | CODE |
| LOW⚡ | tests/Unit/SizeTest.php | 36 | public function testConstructorNegativeWidth(): void | CODE |
| LOW⚡ | tests/Unit/SizeTest.php | 42 | public function testConstructorNegativeHeight(): void | CODE |
| LOW⚡ | tests/Unit/SizeTest.php | 48 | public function testConstructorZeroDimensions(): void | CODE |
| LOW | tests/Unit/SizeTest.php | 218 | public function testMovePivotWithInvalidAlignmentFallsToDefault(): void | CODE |
| LOW | tests/Unit/SizeTest.php | 244 | public function testAlignPivotToBottomRight(): void | CODE |
| LOW | tests/Unit/SizeTest.php | 343 | public function testResizeDownDoesNotUpscale(): void | CODE |
| LOW | tests/Unit/SizeTest.php | 375 | public function testScaleDownDoesNotUpscale(): void | CODE |
| LOW | tests/Unit/SizeTest.php | 407 | public function testContainDownDoesNotUpscale(): void | CODE |
| LOW | tests/Unit/SizeTest.php | 490 | public function testScaleBothWidthAndHeight(): void | CODE |
| LOW | tests/Unit/SizeTest.php | 498 | public function testScaleDownBothWidthAndHeight(): void | CODE |
| LOW | tests/Unit/FileExtensionTest.php | 148 | public function testCreateFromMediaTypeString(): void | CODE |
| LOW | tests/Unit/FileTest.php | 27 | public function testConstructorFromString(): void | CODE |
| LOW | tests/Unit/FileTest.php | 33 | public function testConstructorFromResource(): void | CODE |
| LOW | tests/Unit/FileTest.php | 78 | public function testSaveDirectoryNotFound(): void | CODE |
| LOW | tests/Unit/FileTest.php | 123 | public function testConstructorInvalidType(): void | CODE |
| LOW | tests/Unit/OriginTest.php | 42 | public function testFileExtensionWithoutExtension(): void | CODE |
| LOW | tests/Unit/OriginTest.php | 104 | public function testDebugInfoWithoutFilePath(): void | CODE |
| LOW | tests/Unit/ResolutionTest.php | 101 | public function testPerInchWhenAlreadyInch(): void | CODE |
| LOW | tests/Unit/ResolutionTest.php | 148 | public function testNegativeXThrowsException(): void | CODE |
| LOW | tests/Unit/ResolutionTest.php | 154 | public function testNegativeYThrowsException(): void | CODE |
| LOW | tests/Unit/AnimationFactoryTest.php | 37 | public function testAnimationEmptyCallback(DriverInterface $driver): void | CODE |
| LOW | tests/Unit/AnimationFactoryTest.php | 51 | public function testAnimationEmptyFactory(DriverInterface $driver): void | CODE |
| LOW | tests/Unit/AnimationFactoryTest.php | 80 | public function testCallMagicMethodOnFrame(DriverInterface $driver): void | CODE |
| LOW | tests/Unit/AnimationFactoryTest.php | 91 | public function testCallMagicMethodWithInvalidMethod(): void | CODE |
| LOW | tests/Unit/AnimationFactoryTest.php | 100 | public function testBuildFrameWithColorSource(DriverInterface $driver): void | CODE |
| LOW | tests/Unit/FormatTest.php | 355 | public function testEncoderWithFilteredOptions(): void | CODE |
| LOW | tests/Unit/ImageTest.php | 382 | public function testDrawRectangleWithObject(): void | CODE |
| LOW | tests/Unit/ImageTest.php | 579 | public function testEncodeUsingFileExtension(): void | CODE |
| LOW | tests/Unit/ImageTest.php | 616 | public function testSaveWithoutPathAndNoOrigin(): void | CODE |
| LOW | tests/Unit/ImageTest.php | 724 | public function testSetColorspaceWithObject(): void | CODE |
| LOW | tests/Unit/AlignmentTest.php | 52 | public function testAlignHorizontallyFallback(): void | CODE |
| LOW | tests/Unit/AlignmentTest.php | 57 | public function testAlignVerticallyFallback(): void | CODE |
| LOW | tests/Unit/AlignmentTest.php | 92 | public static function alignHorizontallyDataProvider(): Generator | CODE |
| LOW | tests/Unit/AlignmentTest.php | 185 | public static function alignVerticallyDataProvider(): Generator | CODE |
| LOW | tests/Unit/MediaTypeTest.php | 32 | public function testCreateFromFileExtensionString(): void | CODE |
| LOW | tests/Unit/MediaTypeTest.php | 198 | public static function fileExtensionsDataProvider(): Generator | CODE |
| LOW | tests/Unit/InputHandlerTest.php | 35 | public function testHandleDefaultDecoders( | CODE |
| LOW | tests/Unit/InputHandlerTest.php | 85 | public function testUsingDecodersStaticFactory(): void | CODE |
| LOW | tests/Unit/InputHandlerTest.php | 92 | public function testUsingDecodersStaticFactoryWithDriver(): void | CODE |
| LOW | tests/Unit/InputHandlerTest.php | 120 | public function testHandleUnsupportedInput(): void | CODE |
| LOW | tests/Unit/InputHandlerTest.php | 127 | public function testSpecializeDecoderThrowsDriverException(): void | CODE |
| LOW⚡ | tests/Unit/ImageManagerTest.php | 44 | public function testConstructorUnkownClass(): void | CODE |
| LOW⚡ | tests/Unit/ImageManagerTest.php | 50 | public function testConstructorNonDriverClass(): void | CODE |
| LOW⚡ | tests/Unit/ImageManagerTest.php | 58 | public function testConstructorWithOptions(string|DriverInterface $driver): void | CODE |
| LOW | tests/Unit/ImageManagerTest.php | 116 | public function testCreateImageWithAnimationFactory(string|DriverInterface $driver): void | CODE |
| LOW | tests/Unit/ImageManagerTest.php | 150 | public function testDecodePathDiscardAnimation(string $path): void | CODE |
| LOW | tests/Unit/ConfigTest.php | 95 | public function testSetOptionsInvalidProperty(): void | CODE |
| LOW | tests/Unit/ConfigTest.php | 111 | public function testSetOptionsWithSingleNonArrayPositionalArg(): void | CODE |
| LOW | tests/Unit/Analyzers/DominantPaletteAnalyzerTest.php | 44 | public function testAnalyzeRepeatedCallsAreDeterministic(DriverInterface $driver): void | CODE |
| LOW | tests/Unit/Analyzers/PopularPaletteAnalyzerTest.php | 38 | public function testAnalyzeReturnsIdenticalActualColorsOnAllDrivers(DriverInterface $driver): void | CODE |
| LOW | tests/Unit/Analyzers/PopularPaletteAnalyzerTest.php | 51 | public function testAnalyzeKeepsActualColors(DriverInterface $driver): void | CODE |
| LOW | tests/Unit/Analyzers/AbstractPaletteAnalyzerTest.php | 33 | public function testSampleCoordinatesOffsetRegion(): void | CODE |
| LOW | tests/Unit/Analyzers/AbstractPaletteAnalyzerTest.php | 48 | public function testSampleCoordinatesOffsetRegionOutOfBounds(): void | CODE |
| 376 more matches not shown… | ||||