AI Slop Code Risk Monitor

predis/predis

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

A flexible and feature-complete Redis/Valkey client for PHP.

14.4 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for predis/predis, a PHP project with 7,779 GitHub stars. SynthScan examined 164,385 lines of code across 1324 source files, recording 2471 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 14.4 (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.

14.4
Adjusted Signal
14.4
Raw Pattern Score
100%
Time Factor
2026-10-28
Last Push
7.8K
Stars
PHP
Language
164.4K
Lines of Code
1.3K
Files
2.5K
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 51.2/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 51.1/100 · HIGH

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

PR Review Velocity Impact 52.9/100 · HIGH

Which changes need focused human review? 2471 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 1LOW 2470

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 2471 distinct pattern matches across 4 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 Identifiers2463 hits · 2352 pts
SeverityFileLineSnippetContext
LOWtests/Predis/CommunicationExceptionTest.php24 public function testExceptionReturnsInnerConnection(): voidCODE
LOWtests/Predis/CommunicationExceptionTest.php49 public function testShouldResetConnectionIsTrue(): voidCODE
LOWtests/Predis/CommunicationExceptionTest.php60 public function testCommunicationExceptionHandling(): voidCODE
LOWtests/Predis/CommunicationExceptionTest.php82 public function testCommunicationExceptionHandlingWhenShouldResetConnectionIsFalse(): voidCODE
LOWtests/Predis/SSLTest.php27 public function testExecuteCommandOverSSLConnection()CODE
LOWtests/Predis/SSLTest.php46 public function testExecuteCommandOverSSLConnectionFailsOnIncorrectCertificate()CODE
LOWtests/Predis/SSLTest.php65 public function testExecuteCommandOverSSLConnectionWithoutSSLConfig()CODE
LOWtests/Predis/SSLTest.php83 public function testClusterExecuteCommandOverSSLConnection()CODE
LOWtests/Predis/SSLTest.php107 public function testClusterExecuteCommandOverSSLConnectionFailsOnIncorrectCertificate()CODE
LOWtests/Predis/SSLTest.php130 public function testClusterExecuteCommandOverSSLConnectionWithoutSSLConfig()CODE
LOWtests/Predis/SSLTest.php149 public function testAuthWithSSLCertificateWithCNSpecified()CODE
LOWtests/Predis/SSLTest.php175 public function testClusterAuthWithSSLCertificateWithCNSpecified()CODE
LOWtests/Predis/ClientTest.php44 public function testConstructorWithoutArguments(): voidCODE
LOWtests/Predis/ClientTest.php65 public function testConstructorWithNullArgument(): voidCODE
LOWtests/Predis/ClientTest.php86 public function testConstructorWithNullAndNullArguments(): voidCODE
LOWtests/Predis/ClientTest.php107 public function testConstructorWithArrayArgument(): voidCODE
LOWtests/Predis/ClientTest.php122 public function testConstructorThrowsExceptionWithArrayOfParametersArgumentAndMissingOption(): voidCODE
LOWtests/Predis/ClientTest.php138 public function testConstructorWithArrayOfArrayArgumentAndClusterOption(): voidCODE
LOWtests/Predis/ClientTest.php155 public function testConstructorWithStringArgument(): voidCODE
LOWtests/Predis/ClientTest.php170 public function testConstructorWithArrayOfStringArgument(): voidCODE
LOWtests/Predis/ClientTest.php184 public function testConstructorWithArrayOfConnectionsArgument(): voidCODE
LOWtests/Predis/ClientTest.php201 public function testConstructorWithConnectionArgument(): voidCODE
LOWtests/Predis/ClientTest.php222 public function testConstructorWithClusterArgument(): voidCODE
LOWtests/Predis/ClientTest.php239 public function testConstructorWithReplicationArgument(): voidCODE
LOWtests/Predis/ClientTest.php256 public function testConstructorWithCallableArgument(): voidCODE
LOWtests/Predis/ClientTest.php277 public function testConstructorWithCallableConnectionInitializerThrowsExceptionOnInvalidReturnType(): voidCODE
LOWtests/Predis/ClientTest.php299 public function testConstructorWithNullAndArrayArgument(): voidCODE
LOWtests/Predis/ClientTest.php319 public function testConstructorWithArrayAndOptionReplication(): voidCODE
LOWtests/Predis/ClientTest.php336 public function testClusterOptionHasPrecedenceOverReplicationOptionAndAggregateOption(): voidCODE
LOWtests/Predis/ClientTest.php383 public function testReplicationOptionHasPrecedenceOverAggregateOption(): voidCODE
LOWtests/Predis/ClientTest.php420 public function testAggregateOptionDoesNotTriggerAggregationInClient(): voidCODE
LOWtests/Predis/ClientTest.php458 public function testConstructorWithInvalidArgumentType(): voidCODE
LOWtests/Predis/ClientTest.php469 public function testConstructorWithInvalidOptionType(): voidCODE
LOWtests/Predis/ClientTest.php498 public function testIsConnectedChecksConnectionState(): voidCODE
LOWtests/Predis/ClientTest.php512 public function testQuitIsAliasForDisconnect(): voidCODE
LOWtests/Predis/ClientTest.php526 public function testCreatesNewCommandUsingSpecifiedCommandFactory(): voidCODE
LOWtests/Predis/ClientTest.php544 public function testExecuteCommandReturnsParsedResponses(): voidCODE
LOWtests/Predis/ClientTest.php612 public function testExecuteCommandThrowsExceptionOnRedisError(): voidCODE
LOWtests/Predis/ClientTest.php637 public function testExecuteCommandReturnsErrorResponseOnRedisError(): voidCODE
LOWtests/Predis/ClientTest.php661 public function testCallingRedisCommandExecutesInstanceOfCommand(): voidCODE
LOWtests/Predis/ClientTest.php698 public function testCallingRedisCommandThrowsExceptionOnServerError(): voidCODE
LOWtests/Predis/ClientTest.php724 public function testCallingRedisCommandReturnsErrorResponseOnRedisError(): voidCODE
LOWtests/Predis/ClientTest.php778 public function testRawCommandNeverAppliesPrefix(): voidCODE
LOWtests/Predis/ClientTest.php802 public function testRawCommandNeverThrowsExceptions(): voidCODE
LOWtests/Predis/ClientTest.php823 public function testThrowsExceptionOnNonRegisteredRedisCommand(): voidCODE
LOWtests/Predis/ClientTest.php835 public function testGetClientByMethodReturnsInstanceOfSubclass(): voidCODE
LOWtests/Predis/ClientTest.php853 public function testGetClientByMethodSupportsSelectingConnectionById(): voidCODE
LOWtests/Predis/ClientTest.php876 public function testGetClientByMethodThrowsExceptionSelectingConnectionByUnknownId(): voidCODE
LOWtests/Predis/ClientTest.php895 public function testGetClientByMethodSupportsSelectingConnectionByAlias(): voidCODE
LOWtests/Predis/ClientTest.php918 public function testGetClientByMethodSupportsSelectingConnectionByKey(): voidCODE
LOWtests/Predis/ClientTest.php941 public function testGetClientByMethodSupportsSelectingConnectionBySlot(): voidCODE
LOWtests/Predis/ClientTest.php964 public function testGetClientByMethodSupportsSelectingConnectionByRole(): voidCODE
LOWtests/Predis/ClientTest.php987 public function testGetClientByMethodSupportsSelectingConnectionByCommand(): voidCODE
LOWtests/Predis/ClientTest.php1011 public function testGetClientByMethodThrowsExceptionWhenSelectingConnectionByUnknownType(): voidCODE
LOWtests/Predis/ClientTest.php1024 public function testGetClientByMethodThrowsExceptionWhenConnectionDoesNotSupportSelectorType(): voidCODE
LOWtests/Predis/ClientTest.php1037 public function testPipelineWithoutArgumentsReturnsPipeline(): voidCODE
LOWtests/Predis/ClientTest.php1047 public function testPipelineWithArrayReturnsPipeline(): voidCODE
LOWtests/Predis/ClientTest.php1059 public function testPipelineWithCallableExecutesPipeline(): voidCODE
LOWtests/Predis/ClientTest.php1076 public function testPubSubLoopWithoutArgumentsReturnsPubSubConsumer(): voidCODE
LOWtests/Predis/ClientTest.php1086 public function testPubSubLoopWithArrayReturnsPubSubConsumerWithOptions(): voidCODE
2403 more matches not shown…
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/Predis/Command/Redis/COMMAND_Test.php121COMMENT
LOWtests/Predis/Consumer/PubSub/ConsumerTest.php421 [NodeConnectionInterface::class, SubscriptionContext::CONTEXT_NON_SHARDED],COMMENT
LOWtests/Predis/Consumer/PubSub/DispatcherLoopTest.php21class DispatcherLoopTest extends PredisTestCaseCOMMENT
LOWexamples/redis_collections_iterators.php21// - SCAN (iterates over the keyspace)COMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMexamples/lua_scripting_abstraction.php18// be used to leverage an higher level abstraction for Lua scripting that makesCOMMENT
Fake / Example Data3 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/Predis/Command/Redis/HIMPORT_Test.php738 $redis->createCommand('himport', ['SET', $key, 'shared', 'placeholder'])CODE
LOWtests/Predis/Command/Redis/HIMPORT_Test.php765 $redis->createCommand('himport', ['SET', $key, 'shared', 'placeholder'])CODE
LOWtests/Predis/Command/Redis/HIMPORT_Test.php837 $redis->createCommand('himport', ['SET', $key, 'shared', 'placeholder'])CODE