Dependency Manager for PHP
This report presents the forensic synthetic code analysis of composer/composer, a PHP project with 29,479 GitHub stars. SynthScan v2.0 examined 151,426 lines of code across 741 source files, recording 1050 pattern matches distributed across 3 syntactic categories. The overall adjusted score of 7.0 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 1050 distinct pattern matches across 3 syntactic categories. 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/Composer/Test/CacheTest.php | 85 | public function testRemoveFilesWhenCacheIsTooLarge(): void | CODE |
| LOW | tests/Composer/Test/InstalledVersionsTest.php | 197 | public function testGetVersionOutOfBounds(): void | CODE |
| LOW | tests/Composer/Test/InstalledVersionsTest.php | 250 | public function testGetInstalledPackagesByType(): void | CODE |
| LOW | tests/Composer/Test/InstalledVersionsTest.php | 270 | public function testWithClassLoaderLoaded(): void | CODE |
| LOW⚡ | tests/Composer/Test/ComposerTest.php | 37 | public function testSetGetRepositoryManager(): void | CODE |
| LOW⚡ | tests/Composer/Test/ComposerTest.php | 46 | public function testSetGetDownloadManager(): void | CODE |
| LOW⚡ | tests/Composer/Test/ComposerTest.php | 56 | public function testSetGetInstallationManager(): void | CODE |
| LOW | tests/Composer/Test/InstallerTest.php | 252 | public function testIntegrationWithPoolOptimizer(string $file, string $message, ?string $condition, array $composerC | CODE |
| LOW | tests/Composer/Test/InstallerTest.php | 268 | public function testIntegrationWithRawPool(string $file, string $message, ?string $condition, array $composerConfig, | CODE |
| LOW | tests/Composer/Test/InstallerTest.php | 493 | public static function provideSlowIntegrationTests(): array | CODE |
| LOW | tests/Composer/Test/FactoryTest.php | 29 | public function testDefaultValuesAreAsExpected(): void | CODE |
| LOW | tests/Composer/Test/FactoryTest.php | 53 | public function testGetComposerJsonPathFailsIfDir(): void | CODE |
| LOW | tests/Composer/Test/FactoryTest.php | 61 | public function testGetComposerJsonPathFromEnv(): void | CODE |
| LOW | tests/Composer/Test/TestCase.php | 323 | protected static function ensureDirectoryExistsAndClear(string $directory): void | CODE |
| LOW | tests/Composer/Test/DefaultConfigTest.php | 22 | public function testDefaultValuesAreAsExpected(): void | CODE |
| LOW⚡ | tests/Composer/Test/ConfigTest.php | 646 | public function testOverridesGlobalBooleanPluginsConfig(): void | CODE |
| LOW⚡ | tests/Composer/Test/ConfigTest.php | 656 | public function testAllowsAllPluginsFromLocalBoolean(): void | CODE |
| LOW⚡ | tests/Composer/Test/ConfigTest.php | 666 | public function testSourceFallbackDefaultsToFalse(): void | CODE |
| LOW⚡ | tests/Composer/Test/ConfigTest.php | 672 | public function testSourceFallbackCanBeDisabled(): void | CODE |
| LOW⚡ | tests/Composer/Test/ConfigTest.php | 679 | public function testSourceFallbackCanBeSetFromString(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 28 | public function testAddPackagistRepository(array $expected, array $localConfig, ?array $systemConfig = null): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 39 | public static function dataAddPackagistRepository(): array | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 146 | public function testPreferredInstallAsString(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 155 | public function testMergePreferredInstall(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 213 | public function testFetchingRelativePaths(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 227 | public function testOverrideGithubProtocols(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 236 | public function testGitDisabledByDefaultInGithubProtocols(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 259 | public function testProhibitedUrlsThrowException(string $url): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 310 | public function testProhibitedUrlsWarningVerifyPeer(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 328 | public function testDisableTlsCanBeOverridden(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 377 | public function testGetSourceOfValueEnvVariables(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 484 | public function testPolicyListBoolTrueAndEmptyObjectAreEquivalentInLayering(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 497 | public function testPolicyListFalseOverridesPriorTrueOrEmptyEquallyAcrossLayers(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 514 | public function testPolicyMasterTrueAfterDetailedConfigDoesNotEraseDetail(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 530 | public function testPolicyDeepMergesIgnoreAcrossSources(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 568 | public function testPolicyDeepMergesIgnoreForMalwareAndAbandonedAndCustomList(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 617 | public function testGetDefaultsToAnEmptyArray(): void | CODE |
| LOW | …/Composer/Test/Repository/FilesystemRepositoryTest.php | 48 | public function testCorruptedRepositoryFile(): void | CODE |
| LOW | …/Composer/Test/Repository/FilesystemRepositoryTest.php | 67 | public function testUnexistentRepositoryFile(): void | CODE |
| LOW | …/Composer/Test/Repository/FilesystemRepositoryTest.php | 127 | public function testRepositoryWritesInstalledPhp(): void | CODE |
| LOW | …/Composer/Test/Repository/FilesystemRepositoryTest.php | 201 | public function testSafelyLoadInstalledVersions(): void | CODE |
| LOW | …sts/Composer/Test/Repository/RepositoryManagerTest.php | 88 | public static function provideRepoCreationTestCases(): array | CODE |
| LOW | …sts/Composer/Test/Repository/RepositoryManagerTest.php | 111 | public function testInvalidRepoCreationThrows(string $type, array $options): void | CODE |
| LOW | …sts/Composer/Test/Repository/RepositoryManagerTest.php | 128 | public static function provideInvalidRepoCreationTestCases(): array | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 220 | public function testSearchWithSpecialChars(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 247 | public function testSearchWithAbandonedPackages(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 323 | public static function provideCanonicalizeUrlTestCases(): array | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 361 | public function testGetProviderNamesWillReturnPartialPackageNames(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 390 | public function testGetSecurityAdvisoriesAssertRepositoryHttpOptionsAreUsed(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 439 | public function testGetSecurityAdvisoriesAssertRepositoryAdvisoriesIsZeroIndexedArrayWithConsecutiveKeys(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 518 | public function testGetFilterWithMatchingLists(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 566 | public function testUserFilterDisabledFalseShortCircuitsHasFilterAndGetFilterLists(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 584 | public function testUserFilterPerListOptOut(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 627 | public function testUserFilterAcceptsTrueAsNoOp(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 671 | public function testGetFilterSkipsMetadataFetchesForPackagesNotInSummary(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 735 | public function testGetFilterSkipsSummaryListsNotInConfiguredLists(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 784 | public function testGetFilterSkipsPackagesWithNonIntersectingSummaryConstraint(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 830 | public function testGetFilterSkipsSummaryWhenMetadataAlreadyFetched(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 956 | public function testGetFilterUsesApiUrlInsteadOfSummary(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 1025 | public function testGetFilterSkipsApiUrlWhenMetadataAlreadyFetched(): void | CODE |
| 972 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/Composer/Test/ConfigTest.php | 297 | 'http://💛@example.org', | CODE |
| LOW | tests/Composer/Test/Repository/VcsRepositoryTest.php | 73 | $exec('git config user.email composertest@example.org'); | CODE |
| LOW | tests/Composer/Test/Util/SvnTest.php | 44 | ['svn://johndoe@example.org', ['--username', 'johndoe', '--password', '']], | CODE |
| LOW | tests/Composer/Test/Util/ProcessExecutorTest.php | 83 | ['echo http://foo@example.org', 'echo http://foo@example.org'], | CODE |
| LOW | tests/Composer/Test/Util/UrlTest.php | 114 | ['http://10a***:***@example.org', 'http://10a8f08e8d7b7b9:foo@example.org'], | CODE |
| LOW⚡ | tests/Composer/Test/Util/UrlTest.php | 125 | ['http://10a***@example.org', 'http://10a8f08e8d7b7b9@example.org'], | CODE |
| LOW⚡ | tests/Composer/Test/Util/UrlTest.php | 134 | ['10a***:***@example.org', '10a8f08e8d7b7b9:foo@example.org'], | CODE |
| LOW⚡ | tests/Composer/Test/Util/UrlTest.php | 141 | ['10a***@example.org', '10a8f08e8d7b7b9@example.org'], | CODE |
| LOW | tests/Composer/Test/Command/InitCommandTest.php | 175 | 'email' => 'test@example.org', | CODE |
| LOW | tests/Composer/Test/Command/InitCommandTest.php | 463 | 'authors' => [['name' => 'Mr. Test', 'email' => 'test@example.org']], | CODE |
| LOW | …oser/Test/Package/Loader/ValidatingArrayLoaderTest.php | 61 | 'email' => 'alice@example.org', | CODE |
| LOW | …oser/Test/Package/Loader/ValidatingArrayLoaderTest.php | 71 | 'email' => 'mail@example.org', | CODE |
| LOW | tests/Composer/Test/Package/Loader/ArrayLoaderTest.php | 100 | ['name' => 'Bob', 'email' => 'bob@example.org', 'homepage' => 'example.org', 'role' => 'Developer'], | CODE |
| LOW | doc/04-schema.md | 268 | "email": "support@example.org", | CODE |
| LOW | doc/articles/authentication-for-private-packages.md | 183 | "url": "https://username:password@example.org" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ts/Composer/Test/Repository/ArtifactRepositoryTest.php | 81 | foreach ($repo->getPackages() as $package) { | COMMENT |
| LOW | …ts/Composer/Test/Repository/ArtifactRepositoryTest.php | 101 | // "subdir/extra2.txt" => "Testing testing testing", | COMMENT |
| LOW | …ts/Composer/Test/Repository/ArtifactRepositoryTest.php | 121 | // | COMMENT |