Repository Analysis

fruitcake/laravel-debugbar

Debugbar for Laravel (Integrates PHP Debug Bar)

11.2 Low AI signal View on GitHub

Analysis Overview

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

11.2
Adjusted Score
11.2
Raw Score
100%
Time Factor
2026-07-10
Last Push
19.3K
Stars
PHP
Language
19.8K
Lines of Code
156
Files
176
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

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.

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 9LOW 167

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

Hyper-Verbose Identifiers157 hits · 176 pts
SeverityFileLineSnippetContext
LOWtests/DebugbarTest.php41 public function testItInjectsOnEmptyResponse()CODE
LOWtests/DebugbarTest.php50 public function testItInjectsOnNullyResponse()CODE
LOWtests/DebugbarTest.php77 public function testItDoesntInjectOnJsonLookingString()CODE
LOWtests/DebugbarTest.php86 public function testItDoesntInjectsOnHxRequestWithHxTarget()CODE
LOWtests/DebugbarTest.php98 public function testItInjectsOnHxRequestWithoutHxTarget()CODE
LOWtests/DebugbarTest.php109 public function testItStoresRequestCorrelationIdFromHeader()CODE
LOWtests/DebugbarTest.php118 public function testItSanitizesRequestCorrelationId()CODE
LOWtests/DebugbarTest.php127 public function testItTruncatesRequestCorrelationId()CODE
LOWtests/DebugbarTest.php136 public function testItOmitsRequestCorrelationIdWhenAbsent()CODE
LOWtests/DebugbarTest.php143 private function collectMetaDataForRequest(Request $request): arrayCODE
LOWtests/CspNonceTest.php52 public function testItPrefersViteNonceOverSpatieNonce()CODE
LOWtests/CspNonceTest.php63 public function testItIgnoresNonStringSpatieNonce()CODE
LOWtests/CspNonceTest.php73 public function testItHasNoNonceWhenNoneIsConfigured()CODE
LOWtests/CanBeEnabledTest.php11 public function testCanBeEnabledInLocalDebugMode()CODE
LOWtests/CanBeEnabledTest.php17 public function testCannotBeEnabledInProduction()CODE
LOWtests/CanBeEnabledTest.php24 public function testCannotBeEnabledInTestingEnvironment()CODE
LOWtests/CanBeEnabledTest.php31 public function testCannotBeEnabledWithDebugModeOff()CODE
LOWtests/CanBeEnabledTest.php38 public function testForceAllowEnableOverridesProductionCheck()CODE
LOWtests/CanBeEnabledTest.php46 public function testForceAllowEnableOverridesTestingCheck()CODE
LOWtests/CanBeEnabledTest.php54 public function testForceAllowEnableOverridesDebugModeOff()CODE
LOWtests/CanBeEnabledTest.php62 public function testForceAllowEnableDefaultsToFalse()CODE
LOWtests/LivewireBrowserTest.php63 public function testLivewireCollectsComponents()CODE
LOWtests/DebugbarBrowserTest.php165 public function testItCapturesAjaxRequests()CODE
LOWtests/DebugbarBrowserTest.php177 public function testDatabaseTabIsClickable()CODE
LOWtests/DebugbarBrowserTest.php189 public function testDatabaseCollectsQueries()CODE
LOWtests/DebugbarBrowserTest.php212 public function testDatabaseCollectsQueriesWithCustomPrototype()CODE
LOWtests/DebugbarBrowserTest.php239 public function testDatabaseCollectsQueriesWithSoftLimit()CODE
LOWtests/DebugbarBrowserTest.php255 public function testDatabaseCollectsQueriesWithHardLimit()CODE
LOWtests/ErrorHandlerTest.php39 public function testErrorHandlerRespectsCustomErrorLevel()CODE
LOWtests/DataCollector/RouteCollectorTest.php43 public function testItCollectsWithControllerHandler($controller, $file, $url)CODE
LOWtests/DataCollector/RouteCollectorTest.php61 public function testItCollectsWithViewComponentHandler($controller, $file, $url)CODE
LOWtests/DataCollector/RouteCollectorTest.php76 public function testItCollectsWithClosureHandler($file)CODE
LOW…ts/DataCollector/QueryCollectorRuntimeDatabaseTest.php19 public function testCollectsQueriesFromRuntimeConnections()CODE
LOW…ts/DataCollector/QueryCollectorRuntimeDatabaseTest.php53 public function testCollectsQueriesFromRuntimeConnectionsWithoutConnectUsing()CODE
LOWtests/DataCollector/AiCollectorTest.php33 public function testProviderRegistersCollectorWhenAiIsInstalled()CODE
LOWtests/DataCollector/AiCollectorTest.php41 public function testItRecordsAnAgentRunWithFoldedToolCallsAndUsage()CODE
LOWtests/DataCollector/AiCollectorTest.php80 public function testToolBufferIsConsumedPerInvocation()CODE
LOWtests/DataCollector/AiCollectorTest.php102 public function testItOmitsBodiesWhenValuesAreDisabled()CODE
LOWtests/DataCollector/AiCollectorTest.php131 public function testItTruncatesLongBodies()CODE
LOWtests/DataCollector/LivewireCollectorTest.php29 public function testItCollectsLivewireComponents()CODE
LOWtests/DataCollector/LivewireCollectorTest.php55 public function testItCollectsAnonymousLivewireComponents()CODE
LOWtests/DataCollector/ModelsCollectorTest.php17 public function testItCollectsRetrievedModels()CODE
LOWtests/DataCollector/MailCollectorTest.php34 public function testItCollectsMultipleMails(): voidCODE
LOWtests/DataCollector/MailCollectorTest.php59 public function testItAddsMailsToTimelineCollector(): voidCODE
LOWtests/DataCollector/MailCollectorTest.php84 public function testItDoesNotAddToTimelineWhenDisabled(): voidCODE
LOWtests/DataCollector/MailCollectorTest.php125 public function testItHidesMailBodyWhenDisabled(): voidCODE
LOWtests/DataCollector/PennantCollectorTest.php48 public function testItCollectsPennantValues()CODE
LOWtests/DataCollector/HttpClientCollectorTest.php19 public function testItCollectsResponseReceivedEvents()CODE
LOWtests/DataCollector/HttpClientCollectorTest.php42 public function testItCollectsConnectionFailedEvents()CODE
LOWtests/DataCollector/HttpClientCollectorTest.php69 public function testItMasksAuthorizationHeader()CODE
LOWtests/DataCollector/HttpClientCollectorTest.php94 public function testItCollectsMultipleEvents()CODE
LOWtests/DataCollector/QueryCollectorTest.php16 public function testItReplacesQuestionMarksBindingsCorrectly()CODE
LOWtests/DataCollector/QueryCollectorTest.php43 public function testDollarBindingsArePresentedCorrectly()CODE
LOWtests/DataCollector/QueryCollectorTest.php64 public function testItAcceptsNonStringMessages(): voidCODE
LOWtests/DataCollector/QueryCollectorTest.php77 public function testResultModeForSelectQuery(): voidCODE
LOWtests/DataCollector/QueryCollectorTest.php97 public function testResultModeForWithQuery(): voidCODE
LOWtests/DataCollector/QueryCollectorTest.php117 public function testResultModeExcludedForNonSelectQuery(): voidCODE
LOWtests/DataCollector/QueryCollectorTest.php136 public function testResultModeExcludedWhenDisabled(): voidCODE
LOWtests/DataCollector/QueryCollectorTest.php155 public function testExplainModeExcludedForSqlite(): voidCODE
LOWtests/DataCollector/QueryCollectorTest.php174 public function testExplainModeExcludedWhenBindingsNull(): voidCODE
97 more matches not shown…
Decorative Section Separators6 hits · 22 pts
SeverityFileLineSnippetContext
MEDIUMdocs/overrides/shortcodes.py32# -----------------------------------------------------------------------------COMMENT
MEDIUMdocs/overrides/shortcodes.py34# -----------------------------------------------------------------------------COMMENT
MEDIUMdocs/overrides/shortcodes.py73# -----------------------------------------------------------------------------COMMENT
MEDIUMdocs/overrides/shortcodes.py75# -----------------------------------------------------------------------------COMMENT
MEDIUMdocs/overrides/shortcodes.py97# -----------------------------------------------------------------------------COMMENT
MEDIUMdocs/overrides/shortcodes.py112# -----------------------------------------------------------------------------COMMENT
Self-Referential Comments3 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMdocs/overrides/shortcodes.py77# Create a flag of a specific typeCOMMENT
MEDIUMdocs/overrides/shortcodes.py87# Create a linkable optionCOMMENT
MEDIUMdocs/overrides/shortcodes.py92# Create a linkable setting - @todo append them to the bottom of the pageCOMMENT
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/DataCollector/ModelsCollectorTest.php35 'name' => 'John Doe',CODE
LOWtests/DataCollector/ModelsCollectorTest.php41 'name' => 'Jane Doe',CODE
LOWtests/DataCollector/ModelsCollectorTest.php66 $user->update(['name' => 'Jane Doe']);CODE
LOWtests/DataCollector/GateCollectorTest.php24 'name' => 'John Doe',CODE
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWdocs/overrides/shortcodes.py37CODE
LOWdocs/overrides/shortcodes.py78CODE
LOWdocs/overrides/shortcodes.py42CODE
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdocs/overrides/shortcodes.py1# Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>COMMENT
LOW.github/workflows/release-drafter.yml21 permissions:COMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/overrides/shortcodes.py22CODE