Debugbar for Laravel (Integrates PHP Debug Bar)
This report summarizes scanner evidence for fruitcake/laravel-debugbar, a PHP project with 19,291 GitHub stars. SynthScan examined 22,309 lines of code across 167 source files, recording 237 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 13.0 (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? 221 finding(s).
Are imports declared and package/API names verified? 10 finding(s).
Are wrappers, guards, and repeated structures necessary? 219 finding(s).
Which changes need focused human review? 237 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 237 distinct pattern matches across 7 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/DebugbarTest.php | 42 | public function testItInjectsOnEmptyResponse() | CODE |
| LOW | tests/DebugbarTest.php | 51 | public function testItInjectsOnNullyResponse() | CODE |
| LOW | tests/DebugbarTest.php | 78 | public function testItDoesntInjectOnJsonLookingString() | CODE |
| LOW | tests/DebugbarTest.php | 87 | public function testItDoesntInjectsOnHxRequestWithHxTarget() | CODE |
| LOW | tests/DebugbarTest.php | 99 | public function testItInjectsOnHxRequestWithoutHxTarget() | CODE |
| LOW⚡ | tests/DebugbarTest.php | 110 | public function testItStoresRequestCorrelationIdFromHeader() | CODE |
| LOW⚡ | tests/DebugbarTest.php | 119 | public function testItSanitizesRequestCorrelationId() | CODE |
| LOW⚡ | tests/DebugbarTest.php | 128 | public function testItTruncatesRequestCorrelationId() | CODE |
| LOW⚡ | tests/DebugbarTest.php | 137 | public function testItOmitsRequestCorrelationIdWhenAbsent() | CODE |
| LOW⚡ | tests/DebugbarTest.php | 144 | public function testIsStorageOpenReturnsFalseForEmptyClientIp() | CODE |
| LOW | tests/DebugbarTest.php | 180 | public function testIsStorageOpenOnlyAllowsLocalAndPrivateIpsByDefault(string $ip, bool $expected) | CODE |
| LOW | tests/DebugbarTest.php | 193 | 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 | 178 | public function testDatabaseTabIsClickable() | CODE |
| LOW | tests/DebugbarBrowserTest.php | 190 | public function testDatabaseCollectsQueries() | CODE |
| LOW | tests/DebugbarBrowserTest.php | 213 | public function testDatabaseCollectsQueriesWithCustomPrototype() | CODE |
| LOW | tests/DebugbarBrowserTest.php | 240 | public function testDatabaseCollectsQueriesWithSoftLimit() | CODE |
| LOW | tests/DebugbarBrowserTest.php | 256 | 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 | 39 | public function testProviderRegistersCollectorWhenAiIsInstalled() | CODE |
| LOW | tests/DataCollector/AiCollectorTest.php | 47 | public function testItRecordsAnAgentRunWithFoldedToolCallsAndUsage() | CODE |
| LOW | tests/DataCollector/AiCollectorTest.php | 87 | public function testToolBufferIsConsumedPerInvocation() | CODE |
| LOW | tests/DataCollector/AiCollectorTest.php | 111 | public function testItCollectsTokenUsageThroughAgentEvents(string $eventClass, int $inputTokens, int $outputTokens, | CODE |
| LOW | tests/DataCollector/AiCollectorTest.php | 156 | public function testItOmitsBodiesWhenValuesAreDisabled() | CODE |
| LOW | tests/DataCollector/AiCollectorTest.php | 186 | 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/InertiaCollectorTest.php | 14 | public function testNestedInertiaPropsAreNotTruncated(): void | 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 |
| 153 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/InertiaCollectorTest.php | 27 | 'name' => 'John Doe', | CODE |
| LOW | tests/DataCollector/InertiaCollectorTest.php | 36 | 'name' => 'Jane Doe', | CODE |
| LOW | tests/DataCollector/InertiaCollectorTest.php | 49 | $this->assertStringContainsString('John Doe', $params['users']); | CODE |
| LOW | tests/DataCollector/InertiaCollectorTest.php | 54 | $this->assertStringContainsString('Jane Doe', $params['object']); | CODE |
| LOW | tests/DataCollector/GateCollectorTest.php | 25 | 'name' => 'John Doe', | CODE |
| LOW | tests/DataCollector/GateCollectorTest.php | 90 | '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 |