Open Source PHP Framework (originally from EllisLab)
This report presents the forensic synthetic code analysis of codeigniter4/CodeIgniter4, a PHP project with 5,940 GitHub stars. SynthScan v2.0 examined 277,977 lines of code across 3096 source files, recording 2679 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 9.7 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 2679 distinct pattern matches across 6 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/_support/API/ParentTransformer.php | 46 | protected function includeChildrenCollection(): array | CODE |
| LOW | tests/system/DebugTraceableTraitTest.php | 27 | public function testFactoryInstanceReturnsWhereItIsRaised(): void | CODE |
| LOW | tests/system/CommonSingleServiceTest.php | 33 | public function testSingleServiceWithNoParamsSupplied(string $service): void | CODE |
| LOW | tests/system/CommonSingleServiceTest.php | 47 | public function testSingleServiceWithAtLeastOneParamSupplied(string $service): void | CODE |
| LOW | tests/system/CommonSingleServiceTest.php | 121 | public function testSingleServiceWithAllParamsSupplied(): void | CODE |
| LOW | tests/system/CommonSingleServiceTest.php | 135 | public function testSingleServiceWithGibberishGiven(): void | CODE |
| LOW | tests/system/ControllerTest.php | 116 | public function testValidateWithStringRulesNotFound(): void | CODE |
| LOW | tests/system/ControllerTest.php | 128 | public function testValidateWithStringRulesFoundReadMessagesFromValidationConfig(): void | CODE |
| LOW | tests/system/ControllerTest.php | 158 | public function testValidateWithStringRulesFoundUseMessagesParameter(): void | CODE |
| LOW | tests/system/ControllerTest.php | 206 | public function testValidateDataWithCustomErrorMessage(): void | CODE |
| LOW | tests/system/ControllerTest.php | 239 | public function testValidateDataWithCustomErrorMessageLabeledStyle(): void | CODE |
| LOW | tests/system/CommonFunctionsSendTest.php | 43 | public function testRedirectResponseCookiesSent(): void | CODE |
| LOW | tests/system/SuperglobalsTest.php | 46 | public function testServerGetReturnsNullForNonExistent(): void | CODE |
| LOW | tests/system/SuperglobalsTest.php | 114 | public function testGetReturnsNullForNonExistent(): void | CODE |
| LOW | tests/system/SuperglobalsTest.php | 164 | public function testPostReturnsNullForNonExistent(): void | CODE |
| LOW | tests/system/SuperglobalsTest.php | 214 | public function testCookieReturnsNullForNonExistent(): void | CODE |
| LOW | tests/system/SuperglobalsTest.php | 264 | public function testRequestReturnsNullForNonExistent(): void | CODE |
| LOW | tests/system/SuperglobalsTest.php | 324 | public function testFilesSetArrayWithMultipleFiles(): void | CODE |
| LOW | tests/system/SuperglobalsTest.php | 369 | public function testGetGlobalArrayForFiles(): void | CODE |
| LOW | tests/system/SuperglobalsTest.php | 386 | public function testGetGlobalArrayThrowsExceptionForInvalidName(): void | CODE |
| LOW | tests/system/SuperglobalsTest.php | 404 | public function testSetGlobalArrayForFiles(): void | CODE |
| LOW | tests/system/SuperglobalsTest.php | 422 | public function testSetGlobalArrayThrowsExceptionForInvalidName(): void | CODE |
| LOW | tests/system/SuperglobalsTest.php | 431 | public function testConstructorWithCustomArrays(): void | CODE |
| LOW | tests/system/SuperglobalsTest.php | 458 | public function testConstructorSynchronizesWithPhpSuperglobals(): void | CODE |
| LOW | tests/system/SuperglobalsTest.php | 487 | public function testFluentApiMethodChaining(): void | CODE |
| LOW | tests/system/SuperglobalsTest.php | 519 | public function testFluentApiWithArraySetters(): void | CODE |
| LOW | tests/system/SuperglobalsTest.php | 536 | public function testFluentApiMixedOperations(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 89 | public function testOutputBufferingControl(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 99 | public function testRunEmptyDefaultRouteReturnResponse(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 221 | public function testControllersCanReturnString(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 245 | public function testControllersCanReturnResponseObject(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 274 | public function testControllersCanReturnDownloadResponseObject(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 299 | public function testRunExecuteFilterByClassName(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 327 | public function testRegisterSameFilterTwiceWithDifferentArgument(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 365 | public function testDisableControllerFilters(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 421 | public function testTransfersCorrectHTTPVersion(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 453 | public function testIgnoringErrorSuppressedByAt(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 494 | public function testRunRedirectionWithNamed(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 518 | public function testRunRedirectionWithURI(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 545 | public function testRunRedirectionWithGET(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 663 | public function testNotStoresPreviousURLByCheckingContentType(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 725 | public function testSpoofRequestMethodCanUsePUT(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 750 | public function testSpoofRequestMethodCannotUseGET(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 778 | public function testPageCacheSendSecureHeaders(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 842 | public function testPageCacheWithCacheQueryString( | CODE |
| LOW | tests/system/CodeIgniterTest.php | 908 | public static function providePageCacheWithCacheQueryString(): iterable | CODE |
| LOW | tests/system/CodeIgniterTest.php | 945 | public function testRunControllerNotFoundBeforeFilter(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 968 | public function testStartControllerPermitsInvoke(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 990 | public function testRouteAttributeCacheIntegration(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1050 | public function testRouteAttributeFilterIntegration(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1078 | public function testRouteAttributeFilterWithParamsIntegration(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1106 | public function testRouteAttributeRestrictIntegration(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1128 | public function testRouteAttributeRestrictThrowsException(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1149 | public function testRouteAttributeMultipleAttributesIntegration(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1177 | public function testRouteAttributeNoAttributesIntegration(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1199 | public function testRouteAttributeCustomCacheKeyIntegration(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1233 | public function testRouteAttributesDisabledInConfig(): void | CODE |
| LOW | tests/system/HomeTest.php | 29 | public function testPageLoadsSuccessfully(): void | CODE |
| LOW | tests/system/CommonHelperTest.php | 92 | public function testHelperWithFatalLocatorThrowsException(): void | CODE |
| LOW | tests/system/CommonHelperTest.php | 127 | public function testHelperLoadsAppHelperFirst(): void | CODE |
| 2529 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/system/Models/DataConverterModelTest.php | 293 | $user['email'][] = 'private@example.org'; | CODE |
| LOW⚡ | tests/system/Models/DataConverterModelTest.php | 300 | 'private@example.org', | CODE |
| LOW⚡ | tests/system/Models/DataConverterModelTest.php | 309 | $user->email[] = 'private@example.org'; | CODE |
| LOW⚡ | tests/system/Models/DataConverterModelTest.php | 316 | 'private@example.org', | CODE |
| LOW⚡ | tests/system/Models/DataConverterModelTest.php | 326 | $user->addEmail('private@example.org'); | CODE |
| LOW⚡ | tests/system/Models/DataConverterModelTest.php | 333 | 'private@example.org', | CODE |
| LOW⚡ | tests/system/Models/DataConverterModelTest.php | 343 | $email[] = 'private@example.org'; | CODE |
| LOW⚡ | tests/system/Models/DataConverterModelTest.php | 351 | 'private@example.org', | CODE |
| LOW⚡ | tests/system/Models/DataConverterModelTest.php | 360 | $user['email'][] = 'private@example.org'; | CODE |
| LOW⚡ | tests/system/Models/DataConverterModelTest.php | 367 | 'private@example.org', | CODE |
| LOW⚡ | tests/system/Models/DataConverterModelTest.php | 376 | $user->email[] = 'private@example.org'; | CODE |
| LOW⚡ | tests/system/Models/DataConverterModelTest.php | 383 | 'private@example.org', | CODE |
| LOW⚡ | tests/system/Models/DataConverterModelTest.php | 393 | $user->addEmail('private@example.org'); | CODE |
| LOW⚡ | tests/system/Models/DataConverterModelTest.php | 400 | 'private@example.org', | CODE |
| LOW⚡ | tests/system/Models/DataConverterModelTest.php | 410 | $email[] = 'private@example.org'; | CODE |
| LOW⚡ | tests/system/Models/DataConverterModelTest.php | 418 | 'private@example.org', | CODE |
| LOW | tests/system/Models/UpdateModelTest.php | 398 | $entity->email = 'jones@example.org'; | CODE |
| LOW | tests/system/Models/UpdateModelTest.php | 419 | $object->email = 'jones@example.org'; | CODE |
| LOW⚡ | tests/system/Models/UpdateModelTest.php | 440 | $object->email = 'jones@example.org'; | CODE |
| LOW⚡ | tests/system/Models/UpdateModelTest.php | 448 | 'email' => 'john@example.org', | CODE |
| LOW | tests/system/HTTP/CURLRequestTest.php | 1404 | $jsonBody = '{"name":"John Doe","age":30}'; | CODE |
| LOW | tests/system/View/TableTest.php | 392 | 'email' => ['data' => 'foo@bar.com'], | CODE |
| LOW⚡ | tests/system/View/ParserTest.php | 92 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW⚡ | tests/system/View/ParserTest.php | 92 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW⚡ | tests/system/View/ParserTest.php | 107 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW⚡ | tests/system/View/ParserTest.php | 107 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW⚡ | tests/system/View/ParserTest.php | 113 | $result = "Page Title\nLorem ipsum dolor sit amet."; | CODE |
| LOW⚡ | tests/system/View/ParserTest.php | 113 | $result = "Page Title\nLorem ipsum dolor sit amet."; | CODE |
| LOW | tests/system/View/ParserTest.php | 77 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW | tests/system/View/ParserTest.php | 77 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW | tests/system/View/ParserTest.php | 740 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW | tests/system/View/ParserTest.php | 740 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW | tests/system/View/ParserTest.php | 755 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW | tests/system/View/ParserTest.php | 755 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW | tests/system/View/ParserTest.php | 934 | 'body' => 'Lorem ipsum', | CODE |
| LOW | tests/system/View/ParserTest.php | 951 | <p>Lorem ipsum</p> | CODE |
| LOW | tests/system/View/DBResultDummy.php | 36 | 'name' => 'John Doe', | CODE |
| LOW | tests/system/View/DBResultDummy.php | 41 | 'email' => 'foo@bar.com', | CODE |
| LOW | tests/system/Format/XMLFormatterTest.php | 161 | 'email' => 'foo@bar.com', | CODE |
| LOW | tests/system/Commands/Housekeeping/ClearLogsTest.php | 69 | file_put_contents($path, 'Lorem ipsum'); | CODE |
| LOW | tests/system/Commands/Housekeeping/ClearLogsTest.php | 155 | file_put_contents($path, 'Lorem ipsum'); | CODE |
| LOW | tests/system/Validation/ValidationTest.php | 2192 | 'name' => 'John Doe', | CODE |
| LOW | tests/system/Validation/ValidationTest.php | 2213 | 'name' => 'John Doe', | CODE |
| LOW | tests/system/Router/RouteCollectionTest.php | 742 | $routes->resource('photos', ['placeholder' => ':num']); | CODE |
| LOW | system/Router/RouteCollection.php | 824 | * 'placeholder' - The regex used by the Router. Defaults to '(:any)' | COMMENT |
| LOW | system/Router/RouteCollection.php | 865 | $id = $options['placeholder'] ?? $this->placeholders[$this->defaultPlaceholder] ?? '(:segment)'; | CODE |
| LOW | system/Router/RouteCollection.php | 923 | * 'placeholder' - The regex used by the Router. Defaults to '(:any)' | COMMENT |
| LOW | system/Router/RouteCollection.php | 959 | $id = $options['placeholder'] ?? $this->placeholders[$this->defaultPlaceholder] ?? '(:segment)'; | CODE |
| LOW | user_guide_src/source/database/queries/019.php | 11 | $name = 'John Doe'; | CODE |
| LOW | user_guide_src/source/outgoing/api_transformers/015.php | 7 | $user->name = 'John Doe'; | CODE |
| LOW | user_guide_src/source/outgoing/api_transformers/014.php | 7 | 'name' => 'John Doe', | CODE |
| LOW | user_guide_src/source/outgoing/api_transformers/013.php | 8 | 'name' => 'John Doe', | CODE |
| LOW | user_guide_src/source/outgoing/api_transformers/007.php | 22 | // Response: {"id": 1, "name": "John Doe"} | COMMENT |
| LOW | user_guide_src/source/outgoing/api_transformers/018.php | 13 | $userData = ['id' => 1, 'name' => 'John Doe']; | CODE |
| LOW | user_guide_src/source/cli/cli_library/017.php | 10 | 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.', | CODE |
| LOW | user_guide_src/source/cli/cli_library/017.php | 11 | "Lorem Ipsum has been the industry's standard dummy text ever since the", | CODE |
| LOW | user_guide_src/source/testing/fabricator/009.php | 5 | 'email' => 'king.alford@example.org', | CODE |
| LOW | user_guide_src/source/testing/fabricator/018.php | 5 | 'email' => 'belingadon142@example.org', | CODE |
| LOW | …uide_src/source/incoming/controller_attributes/007.php | 18 | 'name' => 'John Doe', | CODE |
| LOW | user_guide_src/source/incoming/restful/004.php | 3 | $routes->resource('photos', ['placeholder' => '(:num)']); | CODE |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/Config/Logger.php | 141 | // /* The log levels this handler can handle. */ | COMMENT |
| LOW | app/Config/UserAgents.php | 121 | */ | COMMENT |
| LOW | app/Config/Database.php | 61 | // 'DBDriver' => 'SQLite3', | COMMENT |
| LOW | app/Config/Database.php | 81 | // public array $default = [ | COMMENT |
| LOW | app/Config/Database.php | 101 | // ]; | COMMENT |
| LOW | app/Config/Database.php | 121 | // 'encrypt' => false, | COMMENT |
| LOW | app/Config/Database.php | 141 | // */ | COMMENT |
| LOW | app/Config/Validation.php | 41 | // -------------------------------------------------------------------- | COMMENT |
| LOW | tests/system/CodeIgniterTest.php | 921 | ]; | COMMENT |
| LOW | tests/system/Database/Live/TransactionTest.php | 81 | ]; | COMMENT |
| LOW | system/Debug/Toolbar/Views/toolbar.css | 361 | COMMENT | |
| LOW | system/Debug/Toolbar/Views/toolbar.css | 501 | background-color: #252525; | COMMENT |
| LOW | system/Debug/Toolbar/Views/toolbar.css | 621 | #toolbarContainer.dark #debug-bar button, | COMMENT |
| LOW | system/Debug/Toolbar/Views/toolbar.css | 721 | -webkit-box-shadow: 0 0 4px #DFDFDF; | COMMENT |
| LOW | user_guide_src/source/conf.py | 1 | # Configuration file for the Sphinx documentation builder. | COMMENT |
| LOW | user_guide_src/source/database/query_builder/108.php | 21 | // SQLite3 produces: INSERT INTO.. ON CONFLICT.. DO UPDATE.. | COMMENT |
| LOW | user_guide_src/source/outgoing/api_transformers/007.php | 21 | // Request: GET /users/1?fields=id,name | COMMENT |
| LOW | user_guide_src/source/incoming/routing/074.php | 21 | // [priority] => 1 | COMMENT |
| LOW | .github/scripts/random-tests-config.txt | 1 | # CodeIgniter4 Components Verified for Random Test Execution | COMMENT |
| LOW | .github/scripts/run-random-tests.sh | 1 | #!/usr/bin/env bash | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | .github/workflows/label-pr.yml | 26 | const prFiles = await github.paginate(github.rest.pulls.listFiles.endpoint.merge({ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/deploy-userguide-latest.yml | 60 | # Create an artifact of the html output | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/Config/Session.php | 70 | * WARNING: If you're using the database driver, don't forget to update | COMMENT |
| LOW | public/index.php | 12 | $minPhpVersion = '8.2'; // If you update this, don't forget to update `spark`. | CODE |