AI Slop Code Risk Monitor

phpstan/phpstan

SlopCodeMonitor badge for phpstan/phpstan Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

PHP Static Analysis Tool - discover bugs in your code without running it!

0.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for phpstan/phpstan, a PHP project with 14,145 GitHub stars. SynthScan examined 142,686 lines of code across 1661 source files, recording 63 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 0.6 (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.

0.6
Adjusted Signal
0.6
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
14.1K
Stars
PHP
Language
142.7K
Lines of Code
1.7K
Files
63
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 2.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.4/100 · LOW

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

Agent Over-Engineering Ratio 0.8/100 · LOW

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

PR Review Velocity Impact 2.4/100 · LOW

Which changes need focused human review? 63 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 3LOW 60

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

Hyper-Verbose Identifiers22 hits · 22 pts
SeverityFileLineSnippetContext
LOWwebsite/.eleventy.js72async function renderLineChartPlaceholder(script, fontFace, chartHtml, width) {CODE
LOWwebsite/errors/nullCoalesce.unnecessary.md12function alwaysDefinedNullableParam(?string $name): ?stringCODE
LOWwebsite/errors/nullCoalesce.unnecessary.md33 function alwaysDefinedNullableParam(?string $name): ?stringCODE
LOWwebsite/errors/nullCoalesce.unnecessary.md53 function alwaysDefinedNullableParam(?string $name): stringCODE
LOWwebsite/errors/impure.functionCall.md13function computeAndLog(int $value): intCODE
LOWwebsite/errors/impure.functionCall.md49 function computeAndLog(int $value): intCODE
LOW…oping-extensions/additional-constructors-extensions.md30 public function getAdditionalConstructors(ClassReflection $classReflection): array;CODE
LOW…oping-extensions/additional-constructors-extensions.md48 public function getAdditionalConstructors(ClassReflection $classReflection): arrayCODE
LOWwebsite/src/developing-extensions/closure-extensions.md25 public function getTypeTypeFromMethodCall(CODE
LOWwebsite/src/developing-extensions/closure-extensions.md71 public function getClosureThisTypeFromMethodCall(CODE
LOW…developing-extensions/dynamic-throw-type-extensions.md25 public function getThrowTypeFromMethodCall(CODE
LOW…developing-extensions/dynamic-throw-type-extensions.md64public function getThrowTypeFromMethodCall(CODE
LOW…developing-extensions/parameter-out-type-extensions.md27 public function getParameterOutTypeFromMethodCall(CODE
LOW…developing-extensions/parameter-out-type-extensions.md70 public function getParameterOutTypeFromMethodCall(CODE
LOW…c/developing-extensions/class-reflection-extensions.md54 public function canChangeTypeAfterAssignment(): bool;CODE
LOW…c/developing-extensions/restricted-usage-extensions.md86 public function isRestrictedClassNameUsage(CODE
LOW…c/developing-extensions/restricted-usage-extensions.md137 public function isRestrictedPropertyUsage(CODE
LOW…c/developing-extensions/restricted-usage-extensions.md169 public function isRestrictedClassConstantUsage(CODE
LOW…c/developing-extensions/restricted-usage-extensions.md199 public function isRestrictedFunctionUsage(CODE
LOW…bsite/src/_posts/preprocessing-ast-for-custom-rules.md75private function isUnhandledMatchErrorCaught(Node $node): boolCODE
LOW…bsite/src/_posts/preprocessing-ast-for-custom-rules.md113private function isUnhandledMatchErrorCaught(Node $node): boolCODE
LOWwebsite/src/writing-php-code/phpdocs-basics.md130function acceptCallableAndCallLater(callable $cb): voidCODE
Structural Annotation Overuse10 hits · 20 pts
SeverityFileLineSnippetContext
LOW.claude/skills/run-on-3v4l/SKILL.md14## Step 1: Research the 3v4l.org submission formCOMMENT
LOW⚡.claude/skills/run-on-3v4l/SKILL.md27## Step 2: Prepare executable PHP codeCOMMENT
LOW⚡.claude/skills/run-on-3v4l/SKILL.md35## Step 3: Submit to 3v4l.orgCOMMENT
LOW⚡.claude/skills/run-on-3v4l/SKILL.md39## Step 4: Fetch resultsCOMMENT
LOW⚡.claude/skills/run-on-3v4l/SKILL.md49## Step 5: Present resultsCOMMENT
LOW⚡.claude/skills/analyse-with-phpstan/SKILL.md14## Step 1: Prepare the codeCOMMENT
LOW⚡.claude/skills/analyse-with-phpstan/SKILL.md18## Step 2: Determine settingsCOMMENT
LOW⚡.claude/skills/analyse-with-phpstan/SKILL.md28## Step 3: Call the playground APICOMMENT
LOW.claude/skills/analyse-with-phpstan/SKILL.md47## Step 4: Parse the responseCOMMENT
LOW.claude/skills/analyse-with-phpstan/SKILL.md57## Step 5: Present results as markdownCOMMENT
Over-Commented Block20 hits · 20 pts
SeverityFileLineSnippetContext
LOWdocker/pgo-build.sh1#!/bin/shCOMMENT
LOWwebsite/infra/lib/website-stack.ts21 readonly testDomain: string;COMMENT
LOWwebsite/infra/functions/phpstan-org-edge.js1// CloudFront Function (runtime cloudfront-js-2.0), viewer-request.COMMENT
LOWwebsite/scripts/build-wasm.sh1#!/usr/bin/env bashCOMMENT
LOWwebsite/src/js/XRayData.ts1// "AST X-Ray" payload produced by the playground runner (playground-runner/xray.php).COMMENT
LOWwebsite/src/js/notFound.ts1// The 404 page is standalone (it does not use the site layout/nav), so itCOMMENT
LOWwebsite/src/js/phpantom/lspClient.ts1import {LSPClient, serverCompletion, signatureHelp} from '@codemirror/lsp-client';COMMENT
LOWwebsite/src/js/phpantom/worker.ts1// Web Worker hosting the PHPantom language server (compiled to wasm32-wasip1)COMMENT
LOWwebsite/src/js/editor/occurrences.ts1import {Decoration, DecorationSet, EditorView, ViewPlugin, ViewUpdate, keymap} from '@codemirror/view';COMMENT
LOWwebsite/src/js/editor/xray.ts1import {EditorView, layer, RectangleMarker, LayerMarker, ViewPlugin, ViewUpdate, showTooltip, Tooltip} from '@codemirrorCOMMENT
LOWwebsite/src/js/editor/docBlock.ts61};COMMENT
LOW.github/actionlint.yaml1self-hosted-runner:COMMENT
LOW.github/workflows/docker-nightly.yml1# From:COMMENT
LOW.github/workflows/integration-tests.yml481 ref: 4.2.2COMMENT
LOW.github/workflows/integration-tests.yml621# repo: reactphp/promiseCOMMENT
LOWplayground-runner/bref.php21 'service_exception_handler' => static function (): void {COMMENT
LOWe2e/symfony-event/config/routes.yaml1#index:COMMENT
LOWe2e/symfony-event/config/packages/cache.yaml1framework:COMMENT
LOWe2e/undiscoverable-symbols-3/config/routes.yaml1#index:COMMENT
LOWe2e/undiscoverable-symbols-3/config/packages/cache.yaml1framework:COMMENT
Fake / Example Data8 hits · 11 pts
SeverityFileLineSnippetContext
LOWwebsite/errors/propertyGetHook.noRead.md17 return "John Doe";CODE
LOWwebsite/errors/propertyGetHook.noRead.md50- return "John Doe";CODE
LOWwebsite/errors/propertyGetHook.noRead.md76- return "John Doe";CODE
LOW…c/_posts/remembering-and-forgetting-returned-values.md165 $person->setName('John Doe');CODE
LOW⚡…why-is-instanceof-type-wrong-and-getting-deprecated.md54Another example of a deprecated check is `instanceof ConstantStringType` which represents a literal string like `'lorem CODE
LOW⚡…why-is-instanceof-type-wrong-and-getting-deprecated.md61// do something with $type->getValue() (which is 'lorem ipsum')COMMENT
LOW⚡…why-is-instanceof-type-wrong-and-getting-deprecated.md64PHPStan 1.10 wants you to use `Type::getConstantStrings(): list<ConstantStringType>`. It's plural because it wants you tCODE
LOW⚡…why-is-instanceof-type-wrong-and-getting-deprecated.md64PHPStan 1.10 wants you to use `Type::getConstantStrings(): list<ConstantStringType>`. It's plural because it wants you tCODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMe2e/symfony-event/config/services.yaml1# This file is the entry point to configure your own services.COMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMwebsite/package-lock.json6847 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM…oping-extensions/additional-constructors-extensions.md5When [`checkUninitializedProperties`](/config-reference#checkuninitializedproperties) is enabled, PHPStan reports properCODE