PHP Image Processing
This report presents the forensic synthetic code analysis of Intervention/image, a PHP project with 14,351 GitHub stars. SynthScan v2.0 examined 52,906 lines of code across 637 source files, recording 378 pattern matches distributed across 1 syntactic category. The overall adjusted score of 8.3 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 378 distinct pattern matches across 1 syntactic category. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| 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 | 139 | public function testNegativeXThrowsException(): void | CODE |
| LOW | tests/Unit/ResolutionTest.php | 145 | 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 | 75 | public function testCallMagicMethodOnFrame(DriverInterface $driver): void | CODE |
| LOW | tests/Unit/AnimationFactoryTest.php | 86 | public function testCallMagicMethodWithInvalidMethod(): void | CODE |
| LOW | tests/Unit/AnimationFactoryTest.php | 95 | public function testBuildFrameWithColorSource(DriverInterface $driver): void | CODE |
| LOW | tests/Unit/FormatTest.php | 355 | public function testEncoderWithFilteredOptions(): void | CODE |
| LOW | tests/Unit/ImageTest.php | 376 | public function testDrawRectangleWithObject(): void | CODE |
| LOW | tests/Unit/ImageTest.php | 573 | public function testEncodeUsingFileExtension(): void | CODE |
| LOW | tests/Unit/ImageTest.php | 610 | public function testSaveWithoutPathAndNoOrigin(): void | CODE |
| LOW | tests/Unit/ImageTest.php | 718 | 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/ConfigTest.php | 95 | public function testSetOptionsInvalidProperty(): void | CODE |
| LOW | tests/Unit/ConfigTest.php | 111 | public function testSetOptionsWithSingleNonArrayPositionalArg(): void | CODE |
| LOW | tests/Unit/Modifiers/TextModifierTest.php | 109 | public function testTextColorTransparentWithStrokeThrowsException(): void | CODE |
| LOW | tests/Unit/Modifiers/TextModifierTest.php | 163 | public function testStrokeColorTransparentThrowsException(): void | CODE |
| LOW | tests/Unit/Modifiers/ResizeModifierTest.php | 15 | public function testConstructorThrowsWithNoArguments(): void | CODE |
| LOW | tests/Unit/Modifiers/ResizeModifierTest.php | 27 | public function testConstructorWithHeight(): void | CODE |
| LOW | tests/Unit/Modifiers/ColorspaceModifierTest.php | 22 | public function testTargetColorspaceWithInstance(): void | CODE |
| LOW | tests/Unit/Modifiers/ColorspaceModifierTest.php | 54 | public function testTargetColorspaceSrgba(): void | CODE |
| 318 more matches not shown… | ||||