CakePHP: The Rapid Development Framework for PHP - Official Repository
This report presents the forensic synthetic code analysis of cakephp/cakephp, a PHP project with 8,792 GitHub stars. SynthScan v2.0 examined 373,846 lines of code across 1702 source files, recording 2868 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 6.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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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 2868 distinct pattern matches across 4 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/TestCase/ExceptionsTest.php | 123 | public function testPersistenceFailedException(): void | CODE |
| LOW | tests/TestCase/ExceptionsTest.php | 138 | public function testMissingTemplateExceptions(): void | CODE |
| LOW | tests/TestCase/Datasource/ConnectionManagerTest.php | 95 | public function testConfigDuplicateConfig(): void | CODE |
| LOW | tests/TestCase/Datasource/ConnectionManagerTest.php | 110 | public function testGetFailOnMissingConfig(): void | CODE |
| LOW | tests/TestCase/Datasource/QueryCacherTest.php | 76 | public function testFetchFunctionKeyNoString(): void | CODE |
| LOW | tests/TestCase/Datasource/QueryCacherTest.php | 93 | public function testFetchCacheHitStringEngine(): void | CODE |
| LOW | tests/TestCase/Datasource/ResultSetDecoratorTest.php | 32 | public function testDecorateSimpleIterator(): void | CODE |
| LOW⚡ | tests/TestCase/Datasource/RulesCheckerTest.php | 304 | public function testAddCreateDuplicateName(): void | CODE |
| LOW⚡ | tests/TestCase/Datasource/RulesCheckerTest.php | 314 | public function testAddUpdateDuplicateName(): void | CODE |
| LOW⚡ | tests/TestCase/Datasource/RulesCheckerTest.php | 324 | public function testAddDeleteDuplicateName(): void | CODE |
| LOW | tests/TestCase/Datasource/ModelAwareTraitTest.php | 92 | public function testFetchModelMissingModelException(): void | CODE |
| LOW | tests/TestCase/Datasource/ModelAwareTraitTest.php | 170 | public function testLoadModelMissingModelException(): void | CODE |
| LOW | …stCase/Datasource/Paging/SortableFieldsBuilderTest.php | 112 | public function testCreateFromSimpleArray(): void | CODE |
| LOW | …stCase/Datasource/Paging/SortableFieldsBuilderTest.php | 222 | public function testResolveWithSortFieldObjects(): void | CODE |
| LOW | …stCase/Datasource/Paging/SortableFieldsBuilderTest.php | 258 | public function testResolveWithLockedSortField(): void | CODE |
| LOW | …stCase/Datasource/Paging/SortableFieldsBuilderTest.php | 282 | public function testResolveWithDefaultDirections(): void | CODE |
| LOW | …stCase/Datasource/Paging/SortableFieldsBuilderTest.php | 322 | public function testResolveWithSimpleArray(): void | CODE |
| LOW | …stCase/Datasource/Paging/SortableFieldsBuilderTest.php | 342 | public function testResolveWithEmptyArray(): void | CODE |
| LOW | …stCase/Datasource/Paging/SortableFieldsBuilderTest.php | 356 | public function testFromArrayWithSimpleFormat(): void | CODE |
| LOW | …stCase/Datasource/Paging/SortableFieldsBuilderTest.php | 372 | public function testFromArrayWithMapFormat(): void | CODE |
| LOW | …stCase/Datasource/Paging/SortableFieldsBuilderTest.php | 391 | public function testFromArrayWithSortFieldObject(): void | CODE |
| LOW | …stCase/Datasource/Paging/SortableFieldsBuilderTest.php | 410 | public function testFromArrayWithMixedFormat(): void | CODE |
| LOW | …stCase/Datasource/Paging/SortableFieldsBuilderTest.php | 434 | public function testFromArrayWithInvalidType(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 133 | public function testPaginateCustomFinderOptions(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 157 | public function testPaginateNestedEagerLoader(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 180 | public function testDefaultPaginateParams(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 211 | public function testDefaultPaginateParamsMultiOrder(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 242 | public function testDefaultPaginateParamsIntoRequest(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 273 | public function testMergeOptionsModelSpecific(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 311 | public function testMergeOptionsCustomScope(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 385 | public function testMergeOptionsCustomFindKey(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 414 | public function testMergeOptionsQueryString(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 442 | public function testMergeOptionsDefaultAllowedParameters(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 474 | public function testMergeOptionsExtraAllowedParameters(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 636 | public function testValidateSortInvalidDirection(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 652 | public function testValidaSortInitialSortAndDirection(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 686 | public function testValidateSortAndDirectionAliased(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 729 | public function testValidateSortRetainsOriginalSortValue(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 762 | public function testOutOfRangePageNumberGetsClamped(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 785 | public function testOutOfVeryBigPageNumberGetsClamped(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 799 | public function testValidateAllowedSortFailure(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 816 | public function testValidateAllowedSortTrusted(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 838 | public function testValidateAllowedSortEmpty(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 859 | public function testValidateAllowedSortNotInSchema(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 883 | public function testValidateAllowedSortMultiple(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 941 | public function testValidateSortMultipleWithQuery(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 982 | public function testValidateSortMultipleWithQueryAndAliasedDefault(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 1007 | public function testValidateSortWithString(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 1038 | public function testValidateSortInvalidAlias(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 1054 | public function testValidateSortUnprefixedFieldsWithPrefixedDefaultOrder(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 1190 | public function testPaginateQueryWithBindValue(): void | CODE |
| LOW | tests/TestCase/Datasource/Paging/PaginatorTestTrait.php | 1211 | public function testPaginateQueryWithLimit(): void | CODE |
| LOW | …ts/TestCase/Datasource/Paging/NumericPaginatorTest.php | 132 | public function testPaginateDefaultDirection(): void | CODE |
| LOW | …ts/TestCase/Datasource/Paging/NumericPaginatorTest.php | 154 | public function testPaginateOrderWithNumericKeyAndSortSpecified(): void | CODE |
| LOW | …ts/TestCase/Datasource/Paging/NumericPaginatorTest.php | 173 | public function testDeprecationWarningForExtraSettings(): void | CODE |
| LOW | …ts/TestCase/Datasource/Paging/NumericPaginatorTest.php | 219 | public function testSortMapShorthandSyntax(): void | CODE |
| LOW | …ts/TestCase/Datasource/Paging/NumericPaginatorTest.php | 263 | public function testSortMapMultiColumnSorting(): void | CODE |
| LOW | …ts/TestCase/Datasource/Paging/NumericPaginatorTest.php | 301 | public function testSortMapFixedDirectionSorting(): void | CODE |
| LOW | …ts/TestCase/Datasource/Paging/NumericPaginatorTest.php | 344 | public function testSortMapToggleableAndLockedDirections(): void | CODE |
| LOW | …ts/TestCase/Datasource/Paging/NumericPaginatorTest.php | 415 | public function testSortMapRejectsUnmappedKeys(): void | CODE |
| 2644 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/TestCase/Database/ColumnSchemaAwareTypeTest.php | 37 | 'comment' => 'Lorem ipsum', | CODE |
| LOW⚡ | tests/TestCase/Database/ColumnSchemaAwareTypeTest.php | 43 | $this->assertEqualsSql("field TEXT NOT NULL COMMENT 'Lorem ipsum (schema aware)'", $sql); | CODE |
| LOW⚡ | tests/TestCase/Database/ValueBinderTest.php | 45 | 'placeholder' => 'c0', | CODE |
| LOW⚡ | tests/TestCase/Database/ValueBinderTest.php | 50 | 'placeholder' => 'c1', | CODE |
| LOW⚡ | tests/TestCase/Database/ValueBinderTest.php | 55 | 'placeholder' => 'c2', | CODE |
| LOW | …s/TestCase/Database/Expression/QueryExpressionTest.php | 300 | 'placeholder' => 'c0', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 382 | 'placeholder' => 'c0', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 387 | 'placeholder' => 'c1', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 392 | 'placeholder' => 'c2', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 397 | 'placeholder' => 'c3', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 402 | 'placeholder' => 'c4', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 435 | 'placeholder' => 'c0', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 440 | 'placeholder' => 'c1', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 445 | 'placeholder' => 'c2', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 450 | 'placeholder' => 'c3', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 455 | 'placeholder' => 'c4', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 494 | 'placeholder' => 'c0', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 499 | 'placeholder' => 'c1', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 504 | 'placeholder' => 'c2', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 509 | 'placeholder' => 'c3', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 514 | 'placeholder' => 'c4', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 553 | 'placeholder' => 'c0', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 558 | 'placeholder' => 'c1', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 563 | 'placeholder' => 'c2', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 568 | 'placeholder' => 'c3', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 573 | 'placeholder' => 'c4', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 628 | 'placeholder' => 'c0', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 633 | 'placeholder' => 'c1', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 638 | 'placeholder' => 'c2', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 643 | 'placeholder' => 'c3', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 648 | 'placeholder' => 'c4', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 653 | 'placeholder' => 'c5', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 683 | 'placeholder' => 'c0', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 688 | 'placeholder' => 'c1', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 693 | 'placeholder' => 'c2', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 717 | 'placeholder' => 'c0', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 722 | 'placeholder' => 'c1', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 727 | 'placeholder' => 'c2', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 751 | 'placeholder' => 'c0', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 756 | 'placeholder' => 'c1', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 793 | 'placeholder' => 'c0', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 798 | 'placeholder' => 'c1', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 822 | 'placeholder' => 'c0', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 827 | 'placeholder' => 'c1', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 832 | 'placeholder' => 'c2', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 856 | 'placeholder' => 'c0', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 861 | 'placeholder' => 'c1', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 866 | 'placeholder' => 'c2', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 891 | 'placeholder' => 'c0', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 896 | 'placeholder' => 'c1', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 901 | 'placeholder' => 'c2', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 906 | 'placeholder' => 'c3', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 931 | 'placeholder' => 'c0', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 936 | 'placeholder' => 'c1', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 941 | 'placeholder' => 'c2', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 946 | 'placeholder' => 'c3', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 1398 | 'placeholder' => 'c0', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 1403 | 'placeholder' => 'c1', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 1408 | 'placeholder' => 'c2', | CODE |
| LOW⚡ | …se/Database/Expression/CaseStatementExpressionTest.php | 1488 | 'placeholder' => 'c0', | CODE |
| 91 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/Cache/Cache.php | 223 | * ### Usage: | COMMENT |
| LOW | src/Cache/Cache.php | 265 | * ### Usage: | COMMENT |
| LOW | src/Cache/Cache.php | 292 | * ### Usage: | COMMENT |
| LOW | src/Cache/Cache.php | 319 | * ### Usage: | COMMENT |
| LOW | src/Cache/Cache.php | 385 | * ### Usage: | COMMENT |
| LOW | src/Cache/Cache.php | 411 | * ### Usage: | COMMENT |
| LOW | src/Cache/Cache.php | 580 | * ### Usage: | COMMENT |
| LOW | src/View/Helper/HtmlHelper.php | 664 | * ### Usage: | COMMENT |
| LOW | src/View/Helper/HtmlHelper.php | 696 | * ### Usage: | COMMENT |
| LOW | src/Utility/Xml.php | 41 | * ### Usage: | COMMENT |
| LOW | src/Utility/Inflector.php | 228 | * ### Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | VERSION.txt | 1 | //////////////////////////////////////////////////////////////////////////////////////////////////// | COMMENT |
| LOW | tests/bootstrap.php | 161 | // Uncomment the following line to automatically load all plugins from plugins.php | COMMENT |