AI Slop Code Risk Monitor

wp-cli/wp-cli

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

⚙️ WP-CLI framework

3.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for wp-cli/wp-cli, a PHP project with 5,174 GitHub stars. SynthScan examined 44,340 lines of code across 244 source files, recording 120 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 3.5 (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.

3.5
Adjusted Signal
3.5
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
5.2K
Stars
PHP
Language
44.3K
Lines of Code
244
Files
120
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 15.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.9/100 · LOW

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

Agent Over-Engineering Ratio 9.2/100 · LOW

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

PR Review Velocity Impact 14.0/100 · LOW

Which changes need focused human review? 120 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 7LOW 113

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 120 distinct pattern matches across 9 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 Identifiers85 hits · 86 pts
SeverityFileLineSnippetContext
LOW⚡tests/SynopsisValidatorTest.php8 public function testHasGenericIsFalseWithoutGenericToken(): void {CODE
LOW⚡tests/SynopsisValidatorTest.php14 public function testHasGenericIsTrueWithGenericToken(): void {CODE
LOW⚡tests/SynopsisValidatorTest.php20 public function testUnknownAssocWithoutGenericToken(): void {CODE
LOWtests/SynopsisValidatorTest.php38 public function testUnknownAssocIsEmptyWithGenericToken(): void {CODE
LOWtests/SynopsisValidatorTest.php51 public function testUnknownAssocReportsWithIgnoreGeneric(): void {CODE
LOWtests/SynopsisValidatorTest.php67 public function testUnknownAssocIgnoreGenericStillExcludesFlags(): void {CODE
LOWtests/SynopsisParserTest.php110 public function testParseThenRenderMixedCase(): void {CODE
LOWtests/SynopsisParserTest.php153 public function testAllowedValueCharacters(): void {CODE
LOWtests/SynopsisParserTest.php221 public function testParseThenRenderNumeric(): void {CODE
LOWtests/PathTest.php31 public function testPathIsRecognizedAsAbsolute( string $path, bool $expected ): void {CODE
LOWtests/PathTest.php178 public function testReplacePathConstsSources( $source, $expected ): void {CODE
LOWtests/PathTest.php185 public static function dataReplacePathConstsSources(): array {CODE
LOWtests/PathTest.php240 public function testReplacePathConstsWithTokenizer( $source, $expected ): void {CODE
LOWtests/PathTest.php252 public static function dataReplacePathConstsTokenizerSources(): array {CODE
LOWtests/PathTest.php312 public function testReplacePathConstsWithRegex( $source, $expected ): void {CODE
LOWtests/PathTest.php321 public function testReplacePathConstsWithRegexThrowsOnPcreFailure(): void {CODE
LOW⚡tests/UtilsTest.php1243 public function testWriteCsvWithFieldPicking(): void {CODE
LOWtests/UtilsTest.php321 public static function parseStrToArgvStripsQuotesFromAssocValuesData() {CODE
LOWtests/UtilsTest.php347 public function testParseStrToArgvStripsQuotesFromAssocValues( $input, $expected ): void {CODE
LOWtests/UtilsTest.php381 public function testAssocArgsToStringWithSensitiveArgs(): void {CODE
LOWtests/UtilsTest.php422 public function testAssocArgsToStringWithInvalidKeys(): void {CODE
LOWtests/UtilsTest.php501 public function testMakeTempFileInvalidPrefixOrSuffix(): void {CODE
LOWtests/UtilsTest.php550 public function testMakeTempDirInvalidPrefix(): void {CODE
LOWtests/UtilsTest.php584 public function testHttpRequestBadAddress(): void {CODE
LOWtests/UtilsTest.php830 public function testReportBatchOperationResults( $stdout, $stderr, $noun, $verb, $total, $successes, $failures, $skips CODE
LOWtests/UtilsTest.php861 public static function dataReportBatchOperationResults(): array {CODE
LOWtests/UtilsTest.php1190 public function testWriteCsvWithHeadersThatNeedEscaping(): void {CODE
LOWtests/UtilsTest.php1212 public function testWriteCsvWithoutHeaders(): void {CODE
LOWtests/UtilsTest.php1298 public function testValidClassAndMethodPair( $pair, $is_valid ): void {CODE
LOWtests/UtilsTest.php1302 public static function dataValidClassAndMethodPair(): array {CODE
LOWtests/UtilsTest.php1353 public function testEscapeshellargPreserveTilde(): void {CODE
LOWtests/UtilsTest.php1373 public function testHasStdinReturnsFalseForDevNull(): void {CODE
LOWtests/UtilsTest.php1385 public function testHasStdinReturnsTrueForPipedData(): void {CODE
LOWtests/UtilsTest.php1396 public function testGetSuggestionUsesDistance(): void {CODE
LOWtests/UtilsTest.php1407 public function testGetSuggestionAliasMapCanBeDisabled(): void {CODE
LOWtests/UtilsTest.php1416 public function testGetSuggestionAliasMapDisabledKeepsCloseMatches(): void {CODE
LOWtests/UtilsTest.php1467 public function testGetBinaryVersionOutputRunsBinaryOnce(): void {CODE
LOWtests/LoggingTest.php37 public function testLogDebugRegularLogger(): void {CODE
LOWtests/LoggingTest.php63 public function testLogInfoWithoutNewline(): void {CODE
LOWtests/ConfiguratorTest.php39 public function testExtractAssocGlobalLocal(): void {CODE
LOWtests/ConfiguratorTest.php53 public function testExtractAssocDoubleDashInValue(): void {CODE
LOWtests/ConfiguratorTest.php63 public function testExtractAssocDoubleDashDelimiter(): void {CODE
LOWtests/ConfiguratorTest.php77 public function testExtractAssocDoubleDashDelimiterWithGlobalAssoc(): void {CODE
LOWtests/ConfiguratorTest.php93 public function testExtractAssocDoubleDashDelimiterAtStart(): void {CODE
LOWtests/ConfiguratorTest.php106 public function testExtractAssocDoubleDashDelimiterMultipleArgs(): void {CODE
LOWtests/ConfiguratorTest.php145 public function testExtractAssocMultipleValues(): void {CODE
LOWtests/ConfiguratorTest.php160 public function testParseArgsAggregatesMultipleValues(): void {CODE
LOWtests/ConfiguratorTest.php178 public function testParseArgsBooleanFlagsUseLastWins(): void {CODE
LOWtests/ConfiguratorTest.php200 public function testParseArgsStrictModeKeepsUnknownGlobalFlags(): void {CODE
LOWtests/ConfiguratorTest.php238 public function testMergeYmlSelfInheritRecursionGuard(): void {CODE
LOWtests/ConfiguratorTest.php253 public function testMergeYmlCircularInheritRecursionGuard(): void {CODE
LOWtests/ConfiguratorTest.php290 public function testEnvRequireFilesAreMergedIntoConfig(): void {CODE
LOWtests/SchemaValidationTest.php10 public function testExampleYamlFilesValidateAgainstSchema(): void {CODE
LOWtests/LoadRequiredCommandTest.php61 public function testLoadsAllRequiredFilesForRegularCommands(): void {CODE
LOWtests/LoadRequiredCommandTest.php73 public function testLoadsOnlyEnvRequiredFilesForProtectedCommands(): void {CODE
LOWtests/LoadRequiredCommandTest.php88 public function testLoadsNothingForProtectedCommandsWithoutEnvRequiredFiles(): void {CODE
LOWtests/ArgValidationTest.php65 public function testAssocWithOptionalValue(): void {CODE
LOWtests/WindowsArgsTest.php21 public function testWindowsArgumentSplitting( $is_windows, $input_args, $expected_count, $expected_values ): void {CODE
LOW⚡tests/CommandHintsTest.php35 public function testItCollectsHintsFromInstalledPackages(): void {CODE
LOW⚡tests/CommandHintsTest.php42 public function testItCollectsHintsFromTheRootPackage(): void {CODE
25 more matches not shown…
Verbosity Indicators8 hits · 18 pts
SeverityFileLineSnippetContext
LOW⚡bundle/rmccue/requests/src/IdnaEncoder.php86 // Step 1: Check if the text is already ASCIICOMMENT
LOW⚡bundle/rmccue/requests/src/IdnaEncoder.php96 // Step 2: nameprepCOMMENT
LOW⚡bundle/rmccue/requests/src/IdnaEncoder.php99 // Step 3: UseSTD3ASCIIRules is false, continueCOMMENT
LOW⚡bundle/rmccue/requests/src/IdnaEncoder.php100 // Step 4: Check if it's ASCII nowCOMMENT
LOW⚡bundle/rmccue/requests/src/IdnaEncoder.php116 // Step 5: Check ACE prefixCOMMENT
LOW⚡bundle/rmccue/requests/src/IdnaEncoder.php121 // Step 6: Encode with PunycodeCOMMENT
LOW⚡bundle/rmccue/requests/src/IdnaEncoder.php124 // Step 7: Prepend ACE prefixCOMMENT
LOW⚡bundle/rmccue/requests/src/IdnaEncoder.php127 // Step 8: Check sizeCOMMENT
Structural Annotation Overuse8 hits · 18 pts
SeverityFileLineSnippetContext
LOW⚡bundle/rmccue/requests/src/IdnaEncoder.php86 // Step 1: Check if the text is already ASCIICOMMENT
LOW⚡bundle/rmccue/requests/src/IdnaEncoder.php96 // Step 2: nameprepCOMMENT
LOW⚡bundle/rmccue/requests/src/IdnaEncoder.php99 // Step 3: UseSTD3ASCIIRules is false, continueCOMMENT
LOW⚡bundle/rmccue/requests/src/IdnaEncoder.php100 // Step 4: Check if it's ASCII nowCOMMENT
LOW⚡bundle/rmccue/requests/src/IdnaEncoder.php116 // Step 5: Check ACE prefixCOMMENT
LOW⚡bundle/rmccue/requests/src/IdnaEncoder.php121 // Step 6: Encode with PunycodeCOMMENT
LOW⚡bundle/rmccue/requests/src/IdnaEncoder.php124 // Step 7: Prepend ACE prefixCOMMENT
LOW⚡bundle/rmccue/requests/src/IdnaEncoder.php127 // Step 8: Check sizeCOMMENT
Modern AI Meta-Vocabulary6 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md209* [wordpress-plugin-tests](https://github.com/benbalter/wordpress-plugin-tests/) for `wp scaffold plugin-tests`COMMENT
MEDIUMAGENTS.md60The `README.md` file might be generated dynamically from the project's codebase using `wp scaffold package-readme` ([docCODE
MEDIUMAGENTS.md60The `README.md` file might be generated dynamically from the project's codebase using `wp scaffold package-readme` ([docCODE
MEDIUMphp/WP_CLI/Runner.php1538 // plugin scaffold -> scaffold pluginCOMMENT
MEDIUM.github/ISSUE_TEMPLATE/2-FEATURE_REQUEST.md39* `wp scaffold *` https://github.com/wp-cli/scaffold-commandCOMMENT
MEDIUM.github/ISSUE_TEMPLATE/1-BUG_REPORT.md39* `wp scaffold *` https://github.com/wp-cli/scaffold-commandCOMMENT
Fake / Example Data7 hits · 8 pts
SeverityFileLineSnippetContext
LOW⚡tests/UtilsTest.php1235 $this->assertStringContainsString( '"John Doe"', $csv_content );CODE
LOW⚡tests/UtilsTest.php1251 'name' => 'John Doe',CODE
LOW⚡tests/UtilsTest.php1259 'email' => 'user@example.com',CODE
LOWtests/UtilsTest.php1151 'name' => 'John Doe',CODE
LOWtests/UtilsTest.php1180 $this->assertStringContainsString( '"John Doe"', $csv_content );CODE
LOWtests/UtilsTest.php1218 [ 'John Doe', '=SUM(A1:A2)', 'Contains "quotes"' ],CODE
LOWtests/UtilsTest.php1282 $this->assertStringContainsString( '1,"John Doe",john@example.com', $csv_content );CODE
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippetContext
LOWcodecov.yml1# Coverage for this repository is reported from two separate CI uploads:COMMENT
LOWphp/utils.php2521 */COMMENT
LOW.github/actionlint.yml1# Configuration for actionlint, run by the `actionlint` job inCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMutils/auto-composer-update.sh35# Create a dated branch and commit the changesCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWutils/install-requests.sh14 # Check if the version is correct.COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWphp/WP_CLI/Inflector.php421 * ### Usage:COMMENT