Repository Analysis

cakephp/cakephp

CakePHP: The Rapid Development Framework for PHP - Official Repository

6.7 Low AI signal View on GitHub

Analysis Overview

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).

6.7
Adjusted Score
6.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
8.8K
Stars
PHP
Language
373.8K
Lines of Code
1.7K
Files
2.9K
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 0LOW 2868

Directory Score Breakdown

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.

Pattern Findings

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.

Hyper-Verbose Identifiers2704 hits · 2332 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
LOWtests/TestCase/Datasource/RulesCheckerTest.php304 public function testAddCreateDuplicateName(): voidCODE
LOWtests/TestCase/Datasource/RulesCheckerTest.php314 public function testAddUpdateDuplicateName(): voidCODE
LOWtests/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
2644 more matches not shown…
Fake / Example Data151 hits · 157 pts
SeverityFileLineSnippetContext
LOWtests/TestCase/Database/ColumnSchemaAwareTypeTest.php37 'comment' => 'Lorem ipsum',CODE
LOWtests/TestCase/Database/ColumnSchemaAwareTypeTest.php43 $this->assertEqualsSql("field TEXT NOT NULL COMMENT 'Lorem ipsum (schema aware)'", $sql);CODE
LOWtests/TestCase/Database/ValueBinderTest.php45 'placeholder' => 'c0',CODE
LOWtests/TestCase/Database/ValueBinderTest.php50 'placeholder' => 'c1',CODE
LOWtests/TestCase/Database/ValueBinderTest.php55 'placeholder' => 'c2',CODE
LOW…s/TestCase/Database/Expression/QueryExpressionTest.php300 '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.php223 * ### Usage:COMMENT
LOWsrc/Cache/Cache.php265 * ### Usage:COMMENT
LOWsrc/Cache/Cache.php292 * ### Usage:COMMENT
LOWsrc/Cache/Cache.php319 * ### Usage:COMMENT
LOWsrc/Cache/Cache.php385 * ### Usage:COMMENT
LOWsrc/Cache/Cache.php411 * ### Usage:COMMENT
LOWsrc/Cache/Cache.php580 * ### 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
LOWtests/bootstrap.php161// Uncomment the following line to automatically load all plugins from plugins.phpCOMMENT