Debugbar for Laravel (Integrates PHP Debug Bar)
This report presents the forensic synthetic code analysis of fruitcake/laravel-debugbar, a PHP project with 19,270 GitHub stars. SynthScan v2.0 examined 19,836 lines of code across 156 source files, recording 176 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 11.2 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).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
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 176 distinct pattern matches across 7 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/DebugbarTest.php | 41 | public function testItInjectsOnEmptyResponse() | CODE |
| LOW | tests/DebugbarTest.php | 50 | public function testItInjectsOnNullyResponse() | CODE |
| LOW | tests/DebugbarTest.php | 77 | public function testItDoesntInjectOnJsonLookingString() | CODE |
| LOW | tests/DebugbarTest.php | 86 | public function testItDoesntInjectsOnHxRequestWithHxTarget() | CODE |
| LOW | tests/DebugbarTest.php | 98 | public function testItInjectsOnHxRequestWithoutHxTarget() | CODE |
| LOW⚡ | tests/DebugbarTest.php | 109 | public function testItStoresRequestCorrelationIdFromHeader() | CODE |
| LOW⚡ | tests/DebugbarTest.php | 118 | public function testItSanitizesRequestCorrelationId() | CODE |
| LOW⚡ | tests/DebugbarTest.php | 127 | public function testItTruncatesRequestCorrelationId() | CODE |
| LOW⚡ | tests/DebugbarTest.php | 136 | public function testItOmitsRequestCorrelationIdWhenAbsent() | CODE |
| LOW⚡ | tests/DebugbarTest.php | 143 | private function collectMetaDataForRequest(Request $request): array | CODE |
| LOW | tests/CspNonceTest.php | 52 | public function testItPrefersViteNonceOverSpatieNonce() | CODE |
| LOW | tests/CspNonceTest.php | 63 | public function testItIgnoresNonStringSpatieNonce() | CODE |
| LOW | tests/CspNonceTest.php | 73 | public function testItHasNoNonceWhenNoneIsConfigured() | CODE |
| LOW⚡ | tests/CanBeEnabledTest.php | 11 | public function testCanBeEnabledInLocalDebugMode() | CODE |
| LOW⚡ | tests/CanBeEnabledTest.php | 17 | public function testCannotBeEnabledInProduction() | CODE |
| LOW⚡ | tests/CanBeEnabledTest.php | 24 | public function testCannotBeEnabledInTestingEnvironment() | CODE |
| LOW⚡ | tests/CanBeEnabledTest.php | 31 | public function testCannotBeEnabledWithDebugModeOff() | CODE |
| LOW⚡ | tests/CanBeEnabledTest.php | 38 | public function testForceAllowEnableOverridesProductionCheck() | CODE |
| LOW⚡ | tests/CanBeEnabledTest.php | 46 | public function testForceAllowEnableOverridesTestingCheck() | CODE |
| LOW⚡ | tests/CanBeEnabledTest.php | 54 | public function testForceAllowEnableOverridesDebugModeOff() | CODE |
| LOW⚡ | tests/CanBeEnabledTest.php | 62 | public function testForceAllowEnableDefaultsToFalse() | CODE |
| LOW | tests/LivewireBrowserTest.php | 63 | public function testLivewireCollectsComponents() | CODE |
| LOW | tests/DebugbarBrowserTest.php | 165 | public function testItCapturesAjaxRequests() | CODE |
| LOW | tests/DebugbarBrowserTest.php | 177 | public function testDatabaseTabIsClickable() | CODE |
| LOW | tests/DebugbarBrowserTest.php | 189 | public function testDatabaseCollectsQueries() | CODE |
| LOW | tests/DebugbarBrowserTest.php | 212 | public function testDatabaseCollectsQueriesWithCustomPrototype() | CODE |
| LOW | tests/DebugbarBrowserTest.php | 239 | public function testDatabaseCollectsQueriesWithSoftLimit() | CODE |
| LOW | tests/DebugbarBrowserTest.php | 255 | public function testDatabaseCollectsQueriesWithHardLimit() | CODE |
| LOW | tests/ErrorHandlerTest.php | 39 | public function testErrorHandlerRespectsCustomErrorLevel() | CODE |
| LOW | tests/DataCollector/RouteCollectorTest.php | 43 | public function testItCollectsWithControllerHandler($controller, $file, $url) | CODE |
| LOW | tests/DataCollector/RouteCollectorTest.php | 61 | public function testItCollectsWithViewComponentHandler($controller, $file, $url) | CODE |
| LOW | tests/DataCollector/RouteCollectorTest.php | 76 | public function testItCollectsWithClosureHandler($file) | CODE |
| LOW | …ts/DataCollector/QueryCollectorRuntimeDatabaseTest.php | 19 | public function testCollectsQueriesFromRuntimeConnections() | CODE |
| LOW | …ts/DataCollector/QueryCollectorRuntimeDatabaseTest.php | 53 | public function testCollectsQueriesFromRuntimeConnectionsWithoutConnectUsing() | CODE |
| LOW | tests/DataCollector/AiCollectorTest.php | 33 | public function testProviderRegistersCollectorWhenAiIsInstalled() | CODE |
| LOW | tests/DataCollector/AiCollectorTest.php | 41 | public function testItRecordsAnAgentRunWithFoldedToolCallsAndUsage() | CODE |
| LOW | tests/DataCollector/AiCollectorTest.php | 80 | public function testToolBufferIsConsumedPerInvocation() | CODE |
| LOW | tests/DataCollector/AiCollectorTest.php | 102 | public function testItOmitsBodiesWhenValuesAreDisabled() | CODE |
| LOW | tests/DataCollector/AiCollectorTest.php | 131 | public function testItTruncatesLongBodies() | CODE |
| LOW | tests/DataCollector/LivewireCollectorTest.php | 29 | public function testItCollectsLivewireComponents() | CODE |
| LOW | tests/DataCollector/LivewireCollectorTest.php | 55 | public function testItCollectsAnonymousLivewireComponents() | CODE |
| LOW | tests/DataCollector/ModelsCollectorTest.php | 17 | public function testItCollectsRetrievedModels() | CODE |
| LOW | tests/DataCollector/MailCollectorTest.php | 34 | public function testItCollectsMultipleMails(): void | CODE |
| LOW | tests/DataCollector/MailCollectorTest.php | 59 | public function testItAddsMailsToTimelineCollector(): void | CODE |
| LOW | tests/DataCollector/MailCollectorTest.php | 84 | public function testItDoesNotAddToTimelineWhenDisabled(): void | CODE |
| LOW | tests/DataCollector/MailCollectorTest.php | 125 | public function testItHidesMailBodyWhenDisabled(): void | CODE |
| LOW | tests/DataCollector/PennantCollectorTest.php | 48 | public function testItCollectsPennantValues() | CODE |
| LOW | tests/DataCollector/HttpClientCollectorTest.php | 19 | public function testItCollectsResponseReceivedEvents() | CODE |
| LOW | tests/DataCollector/HttpClientCollectorTest.php | 42 | public function testItCollectsConnectionFailedEvents() | CODE |
| LOW | tests/DataCollector/HttpClientCollectorTest.php | 69 | public function testItMasksAuthorizationHeader() | CODE |
| LOW | tests/DataCollector/HttpClientCollectorTest.php | 94 | public function testItCollectsMultipleEvents() | CODE |
| LOW | tests/DataCollector/QueryCollectorTest.php | 16 | public function testItReplacesQuestionMarksBindingsCorrectly() | CODE |
| LOW | tests/DataCollector/QueryCollectorTest.php | 43 | public function testDollarBindingsArePresentedCorrectly() | CODE |
| LOW | tests/DataCollector/QueryCollectorTest.php | 64 | public function testItAcceptsNonStringMessages(): void | CODE |
| LOW | tests/DataCollector/QueryCollectorTest.php | 77 | public function testResultModeForSelectQuery(): void | CODE |
| LOW | tests/DataCollector/QueryCollectorTest.php | 97 | public function testResultModeForWithQuery(): void | CODE |
| LOW | tests/DataCollector/QueryCollectorTest.php | 117 | public function testResultModeExcludedForNonSelectQuery(): void | CODE |
| LOW | tests/DataCollector/QueryCollectorTest.php | 136 | public function testResultModeExcludedWhenDisabled(): void | CODE |
| LOW | tests/DataCollector/QueryCollectorTest.php | 155 | public function testExplainModeExcludedForSqlite(): void | CODE |
| LOW | tests/DataCollector/QueryCollectorTest.php | 174 | public function testExplainModeExcludedWhenBindingsNull(): void | CODE |
| 97 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/overrides/shortcodes.py | 32 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/overrides/shortcodes.py | 34 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | docs/overrides/shortcodes.py | 73 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | docs/overrides/shortcodes.py | 75 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | docs/overrides/shortcodes.py | 97 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | docs/overrides/shortcodes.py | 112 | # ----------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | docs/overrides/shortcodes.py | 77 | # Create a flag of a specific type | COMMENT |
| MEDIUM⚡ | docs/overrides/shortcodes.py | 87 | # Create a linkable option | COMMENT |
| MEDIUM⚡ | docs/overrides/shortcodes.py | 92 | # Create a linkable setting - @todo append them to the bottom of the page | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/DataCollector/ModelsCollectorTest.php | 35 | 'name' => 'John Doe', | CODE |
| LOW | tests/DataCollector/ModelsCollectorTest.php | 41 | 'name' => 'Jane Doe', | CODE |
| LOW | tests/DataCollector/ModelsCollectorTest.php | 66 | $user->update(['name' => 'Jane Doe']); | CODE |
| LOW | tests/DataCollector/GateCollectorTest.php | 24 | 'name' => 'John Doe', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/overrides/shortcodes.py | 37 | CODE | |
| LOW | docs/overrides/shortcodes.py | 78 | CODE | |
| LOW | docs/overrides/shortcodes.py | 42 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/overrides/shortcodes.py | 1 | # Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com> | COMMENT |
| LOW | .github/workflows/release-drafter.yml | 21 | permissions: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/overrides/shortcodes.py | 22 | CODE |