AI Slop Code RIsk Monitor

cakephp/cakephp

CakePHP: The Rapid Development Framework for PHP - Official Repository

7.2 Moderate pattern signal View on GitHub

Maintenance and Governance Review

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.

7.2
Adjusted Signal
7.2
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
8.8K
Stars
PHP
Language
398.1K
Lines of Code
1.8K
Files
3.3K
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 28.9/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 3102 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.9/100 · LOW

Are imports declared and package/API names verified? 151 finding(s).

Agent Over-Engineering Ratio 28.7/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 3089 finding(s).

PR Review Velocity Impact 33.5/100 · MEDIUM

Which changes need focused human review? 3253 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 0LOW 3253

Directory Score Breakdown

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.

Pattern Findings

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.

Hyper-Verbose Identifiers3089 hits · 2697 pts
SeverityFileLineSnippetContext
LOWtests/TestCase/ExceptionsTest.php123 public function testPersistenceFailedException(): voidCODE
LOWtests/TestCase/ExceptionsTest.php138 public function testMissingTemplateExceptions(): voidCODE
LOWtests/TestCase/Datasource/ConnectionManagerTest.php95 public function testConfigDuplicateConfig(): voidCODE
LOWtests/TestCase/Datasource/ConnectionManagerTest.php110 public function testGetFailOnMissingConfig(): voidCODE
LOWtests/TestCase/Datasource/QueryCacherTest.php76 public function testFetchFunctionKeyNoString(): voidCODE
LOWtests/TestCase/Datasource/QueryCacherTest.php93 public function testFetchCacheHitStringEngine(): voidCODE
LOWtests/TestCase/Datasource/ResultSetDecoratorTest.php32 public function testDecorateSimpleIterator(): voidCODE
LOW⚡tests/TestCase/Datasource/RulesCheckerTest.php304 public function testAddCreateDuplicateName(): voidCODE
LOW⚡tests/TestCase/Datasource/RulesCheckerTest.php314 public function testAddUpdateDuplicateName(): voidCODE
LOW⚡tests/TestCase/Datasource/RulesCheckerTest.php324 public function testAddDeleteDuplicateName(): voidCODE
LOWtests/TestCase/Datasource/ModelAwareTraitTest.php92 public function testFetchModelMissingModelException(): voidCODE
LOWtests/TestCase/Datasource/ModelAwareTraitTest.php170 public function testLoadModelMissingModelException(): voidCODE
LOW…stCase/Datasource/Paging/SortableFieldsBuilderTest.php112 public function testCreateFromSimpleArray(): voidCODE
LOW…stCase/Datasource/Paging/SortableFieldsBuilderTest.php222 public function testResolveWithSortFieldObjects(): voidCODE
LOW…stCase/Datasource/Paging/SortableFieldsBuilderTest.php258 public function testResolveWithLockedSortField(): voidCODE
LOW…stCase/Datasource/Paging/SortableFieldsBuilderTest.php282 public function testResolveWithDefaultDirections(): voidCODE
LOW…stCase/Datasource/Paging/SortableFieldsBuilderTest.php322 public function testResolveWithSimpleArray(): voidCODE
LOW…stCase/Datasource/Paging/SortableFieldsBuilderTest.php342 public function testResolveWithEmptyArray(): voidCODE
LOW…stCase/Datasource/Paging/SortableFieldsBuilderTest.php356 public function testFromArrayWithSimpleFormat(): voidCODE
LOW…stCase/Datasource/Paging/SortableFieldsBuilderTest.php372 public function testFromArrayWithMapFormat(): voidCODE
LOW…stCase/Datasource/Paging/SortableFieldsBuilderTest.php391 public function testFromArrayWithSortFieldObject(): voidCODE
LOW…stCase/Datasource/Paging/SortableFieldsBuilderTest.php410 public function testFromArrayWithMixedFormat(): voidCODE
LOW…stCase/Datasource/Paging/SortableFieldsBuilderTest.php434 public function testFromArrayWithInvalidType(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php133 public function testPaginateCustomFinderOptions(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php157 public function testPaginateNestedEagerLoader(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php180 public function testDefaultPaginateParams(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php211 public function testDefaultPaginateParamsMultiOrder(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php242 public function testDefaultPaginateParamsIntoRequest(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php273 public function testMergeOptionsModelSpecific(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php311 public function testMergeOptionsCustomScope(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php385 public function testMergeOptionsCustomFindKey(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php414 public function testMergeOptionsQueryString(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php442 public function testMergeOptionsDefaultAllowedParameters(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php474 public function testMergeOptionsExtraAllowedParameters(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php636 public function testValidateSortInvalidDirection(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php652 public function testValidaSortInitialSortAndDirection(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php686 public function testValidateSortAndDirectionAliased(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php729 public function testValidateSortRetainsOriginalSortValue(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php762 public function testOutOfRangePageNumberGetsClamped(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php785 public function testOutOfVeryBigPageNumberGetsClamped(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php799 public function testValidateAllowedSortFailure(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php816 public function testValidateAllowedSortTrusted(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php838 public function testValidateAllowedSortEmpty(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php859 public function testValidateAllowedSortNotInSchema(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php883 public function testValidateAllowedSortMultiple(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php941 public function testValidateSortMultipleWithQuery(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php982 public function testValidateSortMultipleWithQueryAndAliasedDefault(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php1007 public function testValidateSortWithString(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php1038 public function testValidateSortInvalidAlias(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php1054 public function testValidateSortUnprefixedFieldsWithPrefixedDefaultOrder(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php1190 public function testPaginateQueryWithBindValue(): voidCODE
LOWtests/TestCase/Datasource/Paging/PaginatorTestTrait.php1211 public function testPaginateQueryWithLimit(): voidCODE
LOW…ts/TestCase/Datasource/Paging/NumericPaginatorTest.php132 public function testPaginateDefaultDirection(): voidCODE
LOW…ts/TestCase/Datasource/Paging/NumericPaginatorTest.php154 public function testPaginateOrderWithNumericKeyAndSortSpecified(): voidCODE
LOW…ts/TestCase/Datasource/Paging/NumericPaginatorTest.php173 public function testDeprecationWarningForExtraSettings(): voidCODE
LOW…ts/TestCase/Datasource/Paging/NumericPaginatorTest.php219 public function testSortMapShorthandSyntax(): voidCODE
LOW…ts/TestCase/Datasource/Paging/NumericPaginatorTest.php263 public function testSortMapMultiColumnSorting(): voidCODE
LOW…ts/TestCase/Datasource/Paging/NumericPaginatorTest.php301 public function testSortMapFixedDirectionSorting(): voidCODE
LOW…ts/TestCase/Datasource/Paging/NumericPaginatorTest.php344 public function testSortMapToggleableAndLockedDirections(): voidCODE
LOW…ts/TestCase/Datasource/Paging/NumericPaginatorTest.php415 public function testSortMapRejectsUnmappedKeys(): voidCODE
3029 more matches not shown…
Fake / Example Data151 hits · 157 pts
SeverityFileLineSnippetContext
LOW⚡tests/TestCase/Database/ColumnSchemaAwareTypeTest.php37 'comment' => 'Lorem ipsum',CODE
LOW⚡tests/TestCase/Database/ColumnSchemaAwareTypeTest.php43 $this->assertEqualsSql("field TEXT NOT NULL COMMENT 'Lorem ipsum (schema aware)'", $sql);CODE
LOW⚡tests/TestCase/Database/ValueBinderTest.php45 'placeholder' => 'c0',CODE
LOW⚡tests/TestCase/Database/ValueBinderTest.php50 'placeholder' => 'c1',CODE
LOW⚡tests/TestCase/Database/ValueBinderTest.php55 'placeholder' => 'c2',CODE
LOW…s/TestCase/Database/Expression/QueryExpressionTest.php415 'placeholder' => 'c0',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php382 'placeholder' => 'c0',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php387 'placeholder' => 'c1',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php392 'placeholder' => 'c2',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php397 'placeholder' => 'c3',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php402 'placeholder' => 'c4',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php435 'placeholder' => 'c0',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php440 'placeholder' => 'c1',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php445 'placeholder' => 'c2',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php450 'placeholder' => 'c3',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php455 'placeholder' => 'c4',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php494 'placeholder' => 'c0',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php499 'placeholder' => 'c1',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php504 'placeholder' => 'c2',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php509 'placeholder' => 'c3',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php514 'placeholder' => 'c4',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php553 'placeholder' => 'c0',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php558 'placeholder' => 'c1',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php563 'placeholder' => 'c2',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php568 'placeholder' => 'c3',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php573 'placeholder' => 'c4',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php628 'placeholder' => 'c0',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php633 'placeholder' => 'c1',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php638 'placeholder' => 'c2',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php643 'placeholder' => 'c3',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php648 'placeholder' => 'c4',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php653 'placeholder' => 'c5',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php683 'placeholder' => 'c0',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php688 'placeholder' => 'c1',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php693 'placeholder' => 'c2',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php717 'placeholder' => 'c0',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php722 'placeholder' => 'c1',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php727 'placeholder' => 'c2',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php751 'placeholder' => 'c0',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php756 'placeholder' => 'c1',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php793 'placeholder' => 'c0',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php798 'placeholder' => 'c1',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php822 'placeholder' => 'c0',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php827 'placeholder' => 'c1',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php832 'placeholder' => 'c2',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php856 'placeholder' => 'c0',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php861 'placeholder' => 'c1',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php866 'placeholder' => 'c2',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php891 'placeholder' => 'c0',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php896 'placeholder' => 'c1',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php901 'placeholder' => 'c2',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php906 'placeholder' => 'c3',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php931 'placeholder' => 'c0',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php936 'placeholder' => 'c1',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php941 'placeholder' => 'c2',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php946 'placeholder' => 'c3',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php1398 'placeholder' => 'c0',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php1403 'placeholder' => 'c1',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php1408 'placeholder' => 'c2',CODE
LOW⚡…se/Database/Expression/CaseStatementExpressionTest.php1488 'placeholder' => 'c0',CODE
91 more matches not shown…
Example Usage Blocks11 hits · 16 pts
SeverityFileLineSnippetContext
LOWsrc/Cache/Cache.php244 * ### Usage:COMMENT
LOWsrc/Cache/Cache.php286 * ### Usage:COMMENT
LOWsrc/Cache/Cache.php313 * ### Usage:COMMENT
LOWsrc/Cache/Cache.php340 * ### Usage:COMMENT
LOWsrc/Cache/Cache.php406 * ### Usage:COMMENT
LOWsrc/Cache/Cache.php432 * ### Usage:COMMENT
LOWsrc/Cache/Cache.php601 * ### Usage:COMMENT
LOWsrc/View/Helper/HtmlHelper.php664 * ### Usage:COMMENT
LOWsrc/View/Helper/HtmlHelper.php696 * ### Usage:COMMENT
LOWsrc/Utility/Xml.php41 * ### Usage:COMMENT
LOWsrc/Utility/Inflector.php228 * ### Usage:COMMENT
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWVERSION.txt1////////////////////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWsrc/View/Helper/FormHelper.php161 // Textarea input element,COMMENT