CakePHP: The Rapid Development Framework for PHP - Official Repository
This report summarizes scanner evidence for cakephp/cakephp, a PHP project with 8,789 GitHub stars. SynthScan examined 398,062 lines of code across 1834 source files, recording 3253 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 7.2 (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? 3102 finding(s).
Are imports declared and package/API names verified? 151 finding(s).
Are wrappers, guards, and repeated structures necessary? 3089 finding(s).
Which changes need focused human review? 3253 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 3253 distinct pattern matches across 4 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/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 |
| 3029 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 | 415 | '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 | 244 | * ### Usage: | COMMENT |
| LOW | src/Cache/Cache.php | 286 | * ### Usage: | COMMENT |
| LOW | src/Cache/Cache.php | 313 | * ### Usage: | COMMENT |
| LOW | src/Cache/Cache.php | 340 | * ### Usage: | COMMENT |
| LOW | src/Cache/Cache.php | 406 | * ### Usage: | COMMENT |
| LOW | src/Cache/Cache.php | 432 | * ### Usage: | COMMENT |
| LOW | src/Cache/Cache.php | 601 | * ### 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 | src/View/Helper/FormHelper.php | 161 | // Textarea input element, | COMMENT |