AI Slop Code Risk Monitor

nikic/PHP-Parser

SlopCodeMonitor badge for nikic/PHP-Parser Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

A PHP parser written in PHP

2.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for nikic/PHP-Parser, a PHP project with 17,465 GitHub stars. SynthScan examined 36,063 lines of code across 355 source files, recording 95 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 2.8 (Low 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.

2.8
Adjusted Signal
2.8
Raw Pattern Score
100%
Time Factor
2026-10-27
Last Push
17.5K
Stars
PHP
Language
36.1K
Lines of Code
355
Files
95
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 12.9/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 95 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

Are imports declared and package/API names verified? 0 finding(s).

Agent Over-Engineering Ratio 12.5/100 · LOW

Are wrappers, guards, and repeated structures necessary? 92 finding(s).

PR Review Velocity Impact 12.3/100 · LOW

Which changes need focused human review? 95 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 0LOW 95

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 95 distinct pattern matches across 2 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.

Hyper-Verbose Identifiers92 hits · 96 pts
SeverityFileLineSnippetContext
LOWtest/PhpParser/BuilderFactoryTest.php252 public function testInvalidIdentifierOrExpr(): void {CODE
LOWtest/PhpParser/BuilderHelpersTest.php39 public function testNormalizeStmtInvalidType(): void {CODE
LOWtest/PhpParser/BuilderHelpersTest.php55 public function testNormalizeIdentifierOrExpr(): void {CODE
LOWtest/PhpParser/BuilderHelpersTest.php86 public function testNormalizeNameInvalidType(): void {CODE
LOWtest/PhpParser/BuilderHelpersTest.php113 public function testNormalizeNameOrExpInvalidType(): void {CODE
LOW⚡test/PhpParser/BuilderHelpersTest.php160 public function testNormalizeTypeNullableVoid(): void {CODE
LOW⚡test/PhpParser/BuilderHelpersTest.php166 public function testNormalizeTypeNullableMixed(): void {CODE
LOW⚡test/PhpParser/BuilderHelpersTest.php172 public function testNormalizeTypeNullableNever(): void {CODE
LOWtest/PhpParser/NodeTraverserTest.php215 public function testDontTraverseCurrentAndChildren(): void {CODE
LOWtest/PhpParser/ConstExprEvaluatorTest.php89 public function testUnpackingNonArrayFails(): void {CODE
LOWtest/PhpParser/ConstExprEvaluatorTest.php97 public function testEvaluateFallbackMagicConst(): void {CODE
LOWtest/PhpParser/ConstExprEvaluatorTest.php111 public function testEvaluateFallbackPipeOperator(): void {CODE
LOWtest/PhpParser/ConstExprEvaluatorTest.php145 public static function provideTestEvaluateSilently() {CODE
LOW⚡test/PhpParser/ParserTestAbstract.php14 public function testParserThrowsSyntaxError(): void {CODE
LOW⚡test/PhpParser/ParserTestAbstract.php21 public function testParserThrowsSpecialError(): void {CODE
LOW⚡test/PhpParser/ParserTestAbstract.php28 public function testParserThrowsLexerError(): void {CODE
LOWtest/PhpParser/ParserTestAbstract.php131 public static function provideTestExtraAttributes() {CODE
LOWtest/PhpParser/PrettyPrinterTest.php55 public static function provideTestPrettyPrintFile() {CODE
LOWtest/PhpParser/PrettyPrinterTest.php73 public function testCommentBeforeInlineHTML(): void {CODE
LOWtest/PhpParser/PrettyPrinterTest.php99 public static function provideTestKindAttributes() {CODE
LOWtest/PhpParser/PrettyPrinterTest.php155 public static function provideTestUnnaturalLiterals() {CODE
LOWtest/PhpParser/PrettyPrinterTest.php175 public static function provideTestCustomRawValue() {CODE
LOWtest/PhpParser/PrettyPrinterTest.php200 public function testPrettyPrintWithErrorInClassConstFetch(): void {CODE
LOWtest/PhpParser/PrettyPrinterTest.php213 public function testFormatPreservingPrint($name, $code, $modification, $expected, $modeLine): void {CODE
LOWtest/PhpParser/PrettyPrinterTest.php239 public static function provideTestFormatPreservingPrint() {CODE
LOWtest/PhpParser/PrettyPrinterTest.php270 public static function provideTestRoundTripPrint() {CODE
LOWtest/PhpParser/NameContextTest.php35 public static function provideTestGetPossibleNames() {CODE
LOW…st/PhpParser/NodeVisitor/NodeConnectingVisitorTest.php13 public function testConnectsNodeToItsParentNodeAndItsSiblingNodes(): void {CODE
LOW…/PhpParser/NodeVisitor/ParentConnectingVisitorTest.php11 public function testConnectsChildNodeToParentNode(): void {CODE
LOWtest/PhpParser/NodeVisitor/NameResolverTest.php378 public function testAddDeclarationNamespacedName(): void {CODE
LOWtest/PhpParser/NodeVisitor/NameResolverTest.php413 public function testAddRuntimeResolvedNamespacedName(): void {CODE
LOWtest/PhpParser/NodeVisitor/NameResolverTest.php490 public function testClassNameIsCaseInsensitive(): void {CODE
LOWtest/PhpParser/NodeVisitor/NameResolverTest.php511 public function testSpecialClassNamesAreCaseInsensitive(): void {CODE
LOWtest/PhpParser/Lexer/EmulativeTest.php35 public function testReplaceKeywordsUppercase(string $keyword, int $expectedToken): void {CODE
LOWtest/PhpParser/Lexer/EmulativeTest.php49 public function testNoReplaceKeywordsAfterObjectOperator(string $keyword): void {CODE
LOWtest/PhpParser/Lexer/EmulativeTest.php64 public function testNoReplaceKeywordsAfterObjectOperatorWithSpaces(string $keyword): void {CODE
LOWtest/PhpParser/Lexer/EmulativeTest.php77 public function testNoReplaceKeywordsAfterObjectOperatorWithComment(): void {CODE
LOWtest/PhpParser/Lexer/EmulativeTest.php96 public function testNoReplaceKeywordsAfterNullsafeObjectOperator(string $keyword): void {CODE
LOWtest/PhpParser/Lexer/EmulativeTest.php108 public static function provideTestReplaceKeywords() {CODE
LOWtest/PhpParser/Lexer/EmulativeTest.php159 public function testLeaveStuffAloneInStrings(string $code): void {CODE
LOWtest/PhpParser/Lexer/EmulativeTest.php195 public static function provideTestLexNewFeatures() {CODE
LOWtest/PhpParser/Internal/DifferTest.php60 public static function provideTestDiffWithReplacements() {CODE
LOWtest/PhpParser/Node/ParamTest.php55 public function testPromotedPropertyWithoutVisibilityModifier(): void {CODE
LOWtest/PhpParser/Node/ParamTest.php64 public function testNonPromotedPropertyIsNotPublic(): void {CODE
LOWtest/PhpParser/Node/PropertyHookTest.php54 public function testGetStmtsSetHookFromParser(): void {CODE
LOWtest/PhpParser/Node/PropertyHookTest.php82 public function testGetStmtsSetHookWithoutPropertyName(): void {CODE
LOWtest/PhpParser/Node/NameTest.php77 public function testSliceLengthTooLargeWithOffset(): void {CODE
LOWtest/PhpParser/Node/NameTest.php155 public static function provideTestIsSpecialClassName() {CODE
LOWtest/PhpParser/Node/IdentifierTest.php25 public static function provideTestIsSpecialClassName() {CODE
LOWtest/PhpParser/Node/Stmt/PropertyTest.php33 public function testStaticImplicitlyPublic(): void {CODE
LOW⚡test/PhpParser/Node/Expr/CallableLikeTest.php33 public function testIsPartialFunctionApplication(CallLike $node, bool $isPartialFunctionApplication): void {CODE
LOW⚡test/PhpParser/Node/Expr/CallableLikeTest.php43 public function testGetArgWithPlaceholders(CallLike $node, ?Arg $expected): void {CODE
LOW⚡test/PhpParser/Node/Expr/CallableLikeTest.php47 public static function provideTestIsFirstClassCallable() {CODE
LOWtest/PhpParser/Node/Expr/CallableLikeTest.php65 public static function provideTestIsPartialFunctionApplication() {CODE
LOWtest/PhpParser/Node/Expr/CallableLikeTest.php88 public static function provideTestGetArgWithPlaceholders() {CODE
LOWtest/PhpParser/Node/Scalar/StringTest.php45 public static function provideTestParseEscapeSequences() {CODE
LOWtest/PhpParser/Builder/FunctionTest.php115 public function testInvalidNullableVoidType(): void {CODE
LOWtest/PhpParser/Builder/MethodTest.php156 public function testAddStmtToAbstractMethodError(): void {CODE
LOWtest/PhpParser/Builder/MethodTest.php165 public function testMakeMethodWithStmtsAbstractError(): void {CODE
LOWtest/PhpParser/Builder/TraitUseTest.php44 public function testInvalidAdaptationNode(): void {CODE
32 more matches not shown…
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippetContext
LOWlib/PhpParser/Comment.php121 $text = str_replace("\r\n", "\n", $this->text);COMMENT
LOWlib/PhpParser/Comment.php141 // /*COMMENT
LOWlib/PhpParser/PrettyPrinterAbstract.php1721COMMENT