PHP errors for cool kids
This report presents the forensic synthetic code analysis of filp/whoops, a PHP project with 13,234 GitHub stars. SynthScan v2.0 examined 9,158 lines of code across 71 source files, recording 57 pattern matches distributed across 3 syntactic categories. The overall adjusted score of 6.4 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).
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.
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 57 distinct pattern matches across 3 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/Whoops/RunTest.php | 22 | public function testImplementsRunInterface() | CODE |
| LOW | tests/Whoops/RunTest.php | 27 | public function testConstantsAreAccessibleFromTheClass() | CODE |
| LOW | tests/Whoops/RunTest.php | 114 | public function testPushClosureBecomesHandler() | CODE |
| LOW | tests/Whoops/RunTest.php | 434 | public function testErrorWrappedInException() | CODE |
| LOW | tests/Whoops/RunTest.php | 504 | public function testSendHttpCodeWrongCode() | CODE |
| LOW | tests/Whoops/RunTest.php | 524 | public function testSendExitCodeDefaultCode() | CODE |
| LOW | tests/Whoops/RunTest.php | 533 | public function testSendExitCodeWrongCode() | CODE |
| LOW | tests/Whoops/RunTest.php | 578 | public function testShutdownHandlerDoesNotRunIfUnregistered() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 128 | public function testAddTraceFunctionArgsToOutput() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 158 | public function testGetSetTraceFunctionArgsOutputLimit() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 207 | public function testReturnsWithoutFramesOutput() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 230 | public function testReturnsWithoutPreviousExceptions() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 253 | public function testReturnsWithPreviousExceptions() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 288 | public function testReturnsWithFramesOutput() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 322 | public function testReturnsWithFramesAndArgsOutput() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 369 | public function testReturnsWithFramesAndLimitedArgsOutput() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 408 | public function testReturnsWithLoggerOnlyOutput() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 424 | public function testGetFrameArgsOutputUsesDumper() | CODE |
| LOW | tests/Whoops/Handler/PrettyPageHandlerTest.php | 85 | public function testSetInvalidResourcesPath() | CODE |
| LOW | tests/Whoops/Handler/PrettyPageHandlerTest.php | 134 | public function testSetCallbackDataTables() | CODE |
| LOW | tests/Whoops/Handler/JsonResponseHandlerTest.php | 34 | private function getJsonResponseFromHandler($withTrace = false, $jsonApi = false) | CODE |
| LOW | tests/Whoops/Util/MiscTest.php | 24 | public function provideTranslateException() | CODE |
| LOW | tests/Whoops/Util/TemplateHelperTest.php | 56 | public function testEscapeButPreserveUris() | CODE |
| LOW | tests/Whoops/Exception/FrameTest.php | 112 | public function testGetFileContentsWhenFrameIsNotRelatedToSpecificFile($fakeFilename) | CODE |
| LOW | tests/Whoops/Exception/FrameCollectionTest.php | 54 | private function getFrameCollectionInstance($frames = null) | CODE |
| LOW | tests/Whoops/Exception/FrameCollectionTest.php | 193 | public function testCollectionIsSerializable() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 67 | public function testReturnsCorrectExceptionName() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 79 | public function testExceptionIsStoredAndReturned() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 90 | public function testGetFramesReturnsCollection() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 101 | public function testGetFramesWithFiltersReturnsCollection() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 119 | public function testGetFramesWithFiltersReturnsEmptyCollection() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 151 | public function testNegativeHasPreviousException() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 162 | public function testGetPreviousExceptionsReturnsListOfExceptions() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 179 | public function testGetPreviousExceptionsReturnsEmptyListIfThereAreNoPreviousExceptions() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 191 | public function testGetPreviousExceptionMessages() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 209 | public function testGetPreviousExceptionCodes() | CODE |
| LOW | src/Whoops/Handler/PlainTextHandler.php | 144 | public function addTraceFunctionArgsToOutput($addTraceFunctionArgsToOutput = null) | CODE |
| LOW | src/Whoops/Handler/PlainTextHandler.php | 165 | public function setTraceFunctionArgsOutputLimit($traceFunctionArgsOutputLimit) | CODE |
| LOW | src/Whoops/Handler/PlainTextHandler.php | 198 | public function getTraceFunctionArgsOutputLimit() | CODE |
| LOW | src/Whoops/Handler/XmlResponseHandler.php | 17 | class XmlResponseHandler extends Handler | CODE |
| LOW | src/Whoops/Handler/JsonResponseHandler.php | 16 | class JsonResponseHandler extends Handler | CODE |
| LOW | src/Whoops/Inspector/InspectorInterface.php | 29 | public function getPreviousExceptionMessages(); | CODE |
| LOW | src/Whoops/Inspector/InspectorInterface.php | 34 | public function getPreviousExceptionCodes(); | CODE |
| LOW | src/Whoops/Inspector/InspectorInterface.php | 54 | public function getPreviousExceptionInspector(); | CODE |
| LOW | src/Whoops/Exception/Formatter.php | 21 | public static function formatExceptionAsDataArray(InspectorInterface $inspector, $shouldAddTrace, array $frameFilter | CODE |
| LOW | src/Whoops/Exception/Inspector.php | 77 | public function getPreviousExceptionMessages() | CODE |
| LOW | src/Whoops/Exception/Inspector.php | 88 | public function getPreviousExceptionCodes() | CODE |
| LOW | src/Whoops/Exception/Inspector.php | 143 | public function getPreviousExceptionInspector() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/API Documentation.md | 61 | #=> Whoops\Run | COMMENT |
| LOW | docs/API Documentation.md | 81 | #=> bool | COMMENT |
| LOW | docs/API Documentation.md | 181 | // Returns the number of frames in the collection | COMMENT |
| LOW | docs/API Documentation.md | 221 | // within a class/instance. | COMMENT |
| LOW | docs/API Documentation.md | 241 | // given range of line numbers. i.e: Frame::getFileLines(0, 3) | COMMENT |
| LOW | docs/API Documentation.md | 341 | // Adds a key=>value table of arbitrary data, labeled by $label, to | COMMENT |
| LOW | docs/API Documentation.md | 361 | PrettyPageHandler::setPageTitle(string $title) | COMMENT |
| LOW | docs/API Documentation.md | 401 | // rest of the application. Useful if, for example, you integrate | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/Whoops/Handler/PrettyPageHandler.php | 189 | // @todo: Make this more robust | COMMENT |