Open Source PHP Framework (originally from EllisLab)
This report summarizes scanner evidence for codeigniter4/CodeIgniter4, a PHP project with 5,985 GitHub stars. SynthScan examined 283,200 lines of code across 3109 source files, recording 2842 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 9.9 (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? 2774 finding(s).
Are imports declared and package/API names verified? 68 finding(s).
Are wrappers, guards, and repeated structures necessary? 2751 finding(s).
Which changes need focused human review? 2842 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 2842 distinct pattern matches across 5 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/_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 | 115 | public function testValidateWithStringRulesNotFound(): void | CODE |
| LOW | tests/system/ControllerTest.php | 127 | public function testValidateWithStringRulesFoundReadMessagesFromValidationConfig(): void | CODE |
| LOW | tests/system/ControllerTest.php | 157 | public function testValidateWithStringRulesFoundUseMessagesParameter(): void | CODE |
| LOW | tests/system/ControllerTest.php | 205 | public function testValidateDataWithCustomErrorMessage(): void | CODE |
| LOW | tests/system/ControllerTest.php | 238 | 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 | 90 | public function testOutputBufferingControl(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 100 | public function testRunEmptyDefaultRouteReturnResponse(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 222 | public function testControllersCanReturnString(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 246 | public function testControllersCanReturnResponseObject(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 273 | public function testControllersCanReturnDownloadResponseObject(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 297 | public function testRunExecuteFilterByClassName(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 325 | public function testRegisterSameFilterTwiceWithDifferentArgument(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 363 | public function testDisableControllerFilters(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 419 | public function testTransfersCorrectHTTPVersion(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 451 | public function testIgnoringErrorSuppressedByAt(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 492 | public function testRunRedirectionWithNamed(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 516 | public function testRunRedirectionWithURI(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 543 | public function testRunRedirectionWithGET(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 661 | public function testNotStoresPreviousURLByCheckingContentType(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 723 | public function testSpoofRequestMethodCanUsePUT(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 748 | public function testSpoofRequestMethodCannotUseGET(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 776 | public function testPageCacheSendSecureHeaders(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 841 | public function testPageCacheWithCacheQueryString( | CODE |
| LOW | tests/system/CodeIgniterTest.php | 910 | public static function providePageCacheWithCacheQueryString(): iterable | CODE |
| LOW | tests/system/CodeIgniterTest.php | 947 | public function testRunControllerNotFoundBeforeFilter(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 970 | public function testStartControllerPermitsInvoke(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 989 | public function testRouteAttributeCacheIntegration(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1049 | public function testRouteAttributeFilterIntegration(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1077 | public function testRouteAttributeFilterWithParamsIntegration(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1105 | public function testRouteAttributeRestrictIntegration(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1127 | public function testRouteAttributeRestrictThrowsException(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1148 | public function testRouteAttributeMultipleAttributesIntegration(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1176 | public function testRouteAttributeNoAttributesIntegration(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1198 | public function testRouteAttributeCustomCacheKeyIntegration(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1232 | public function testRouteAttributesDisabledInConfig(): void | CODE |
| LOW | tests/system/CodeIgniterTest.php | 1312 | public function testGatherOutputCalledOnceWhenControllerReturnsResponse(): void | CODE |
| LOW | tests/system/HomeTest.php | 29 | public function testPageLoadsSuccessfully(): void | CODE |
| LOW | tests/system/CommonHelperTest.php | 95 | public function testHelperWithFatalLocatorThrowsException(): void | CODE |
| 2691 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 | 94 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW⚡ | tests/system/View/ParserTest.php | 94 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW⚡ | tests/system/View/ParserTest.php | 109 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW⚡ | tests/system/View/ParserTest.php | 109 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW⚡ | tests/system/View/ParserTest.php | 115 | $result = "Page Title\nLorem ipsum dolor sit amet."; | CODE |
| LOW⚡ | tests/system/View/ParserTest.php | 115 | $result = "Page Title\nLorem ipsum dolor sit amet."; | CODE |
| LOW | tests/system/View/ParserTest.php | 79 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW | tests/system/View/ParserTest.php | 79 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW | tests/system/View/ParserTest.php | 1287 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW | tests/system/View/ParserTest.php | 1287 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW | tests/system/View/ParserTest.php | 1302 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW | tests/system/View/ParserTest.php | 1302 | 'body' => 'Lorem ipsum dolor sit amet.', | CODE |
| LOW | tests/system/View/ParserTest.php | 1566 | 'body' => 'Lorem ipsum', | CODE |
| LOW | tests/system/View/ParserTest.php | 1583 | <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/Email/EmailTest.php | 605 | $email->setFrom('john@example.com', 'John Doe'); | CODE |
| LOW | tests/system/Email/EmailTest.php | 608 | $this->assertSame('"John Doe" <john@example.com>', $headers['From']); | CODE |
| LOW | tests/system/Validation/ValidationTest.php | 2231 | 'name' => 'John Doe', | CODE |
| LOW | tests/system/Validation/ValidationTest.php | 2252 | 'name' => 'John Doe', | CODE |
| LOW | tests/system/Router/RouteCollectionTest.php | 752 | $routes->resource('photos', ['placeholder' => ':num']); | CODE |
| LOW | system/Router/RouteCollection.php | 719 | * 'placeholder' - The regex used by the Router. Defaults to '(:any)' | COMMENT |
| LOW | system/Router/RouteCollection.php | 760 | $id = $options['placeholder'] ?? $this->placeholders[$this->defaultPlaceholder] ?? '(:segment)'; | CODE |
| LOW | system/Router/RouteCollection.php | 818 | * 'placeholder' - The regex used by the Router. Defaults to '(:any)' | COMMENT |
| LOW | system/Router/RouteCollection.php | 854 | $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 |
| 8 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 | // URL #5 | 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 |
|---|---|---|---|---|
| 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 |