AI Slop Code RIsk Monitor

predis/predis

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

14.4 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for predis/predis, a PHP project with 7,778 GitHub stars. SynthScan examined 164,256 lines of code across 1324 source files, recording 2467 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-10
Last Push
7.8K
Stars
PHP
Language
164.3K
Lines of Code
1.3K
Files
2.5K
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 51.2/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 2464 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? 2459 finding(s).

PR Review Velocity Impact 52.8/100 · HIGH

Which changes need focused human review? 2467 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 2466

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 2467 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 Identifiers2459 hits · 2350 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.php43 public function testConstructorWithoutArguments(): voidCODE
LOWtests/Predis/ClientTest.php64 public function testConstructorWithNullArgument(): voidCODE
LOWtests/Predis/ClientTest.php85 public function testConstructorWithNullAndNullArguments(): voidCODE
LOWtests/Predis/ClientTest.php106 public function testConstructorWithArrayArgument(): voidCODE
LOWtests/Predis/ClientTest.php121 public function testConstructorThrowsExceptionWithArrayOfParametersArgumentAndMissingOption(): voidCODE
LOWtests/Predis/ClientTest.php137 public function testConstructorWithArrayOfArrayArgumentAndClusterOption(): voidCODE
LOWtests/Predis/ClientTest.php154 public function testConstructorWithStringArgument(): voidCODE
LOWtests/Predis/ClientTest.php169 public function testConstructorWithArrayOfStringArgument(): voidCODE
LOWtests/Predis/ClientTest.php183 public function testConstructorWithArrayOfConnectionsArgument(): voidCODE
LOWtests/Predis/ClientTest.php200 public function testConstructorWithConnectionArgument(): voidCODE
LOWtests/Predis/ClientTest.php221 public function testConstructorWithClusterArgument(): voidCODE
LOWtests/Predis/ClientTest.php238 public function testConstructorWithReplicationArgument(): voidCODE
LOWtests/Predis/ClientTest.php255 public function testConstructorWithCallableArgument(): voidCODE
LOWtests/Predis/ClientTest.php276 public function testConstructorWithCallableConnectionInitializerThrowsExceptionOnInvalidReturnType(): voidCODE
LOWtests/Predis/ClientTest.php298 public function testConstructorWithNullAndArrayArgument(): voidCODE
LOWtests/Predis/ClientTest.php318 public function testConstructorWithArrayAndOptionReplication(): voidCODE
LOWtests/Predis/ClientTest.php335 public function testClusterOptionHasPrecedenceOverReplicationOptionAndAggregateOption(): voidCODE
LOWtests/Predis/ClientTest.php382 public function testReplicationOptionHasPrecedenceOverAggregateOption(): voidCODE
LOWtests/Predis/ClientTest.php419 public function testAggregateOptionDoesNotTriggerAggregationInClient(): voidCODE
LOWtests/Predis/ClientTest.php457 public function testConstructorWithInvalidArgumentType(): voidCODE
LOWtests/Predis/ClientTest.php468 public function testConstructorWithInvalidOptionType(): voidCODE
LOWtests/Predis/ClientTest.php497 public function testIsConnectedChecksConnectionState(): voidCODE
LOWtests/Predis/ClientTest.php511 public function testQuitIsAliasForDisconnect(): voidCODE
LOWtests/Predis/ClientTest.php525 public function testCreatesNewCommandUsingSpecifiedCommandFactory(): voidCODE
LOWtests/Predis/ClientTest.php543 public function testExecuteCommandReturnsParsedResponses(): voidCODE
LOWtests/Predis/ClientTest.php611 public function testExecuteCommandThrowsExceptionOnRedisError(): voidCODE
LOWtests/Predis/ClientTest.php636 public function testExecuteCommandReturnsErrorResponseOnRedisError(): voidCODE
LOWtests/Predis/ClientTest.php660 public function testCallingRedisCommandExecutesInstanceOfCommand(): voidCODE
LOWtests/Predis/ClientTest.php697 public function testCallingRedisCommandThrowsExceptionOnServerError(): voidCODE
LOWtests/Predis/ClientTest.php723 public function testCallingRedisCommandReturnsErrorResponseOnRedisError(): voidCODE
LOWtests/Predis/ClientTest.php777 public function testRawCommandNeverAppliesPrefix(): voidCODE
LOWtests/Predis/ClientTest.php801 public function testRawCommandNeverThrowsExceptions(): voidCODE
LOWtests/Predis/ClientTest.php822 public function testThrowsExceptionOnNonRegisteredRedisCommand(): voidCODE
LOWtests/Predis/ClientTest.php834 public function testGetClientByMethodReturnsInstanceOfSubclass(): voidCODE
LOWtests/Predis/ClientTest.php852 public function testGetClientByMethodSupportsSelectingConnectionById(): voidCODE
LOWtests/Predis/ClientTest.php875 public function testGetClientByMethodThrowsExceptionSelectingConnectionByUnknownId(): voidCODE
LOWtests/Predis/ClientTest.php894 public function testGetClientByMethodSupportsSelectingConnectionByAlias(): voidCODE
LOWtests/Predis/ClientTest.php917 public function testGetClientByMethodSupportsSelectingConnectionByKey(): voidCODE
LOWtests/Predis/ClientTest.php940 public function testGetClientByMethodSupportsSelectingConnectionBySlot(): voidCODE
LOWtests/Predis/ClientTest.php963 public function testGetClientByMethodSupportsSelectingConnectionByRole(): voidCODE
LOWtests/Predis/ClientTest.php986 public function testGetClientByMethodSupportsSelectingConnectionByCommand(): voidCODE
LOWtests/Predis/ClientTest.php1010 public function testGetClientByMethodThrowsExceptionWhenSelectingConnectionByUnknownType(): voidCODE
LOWtests/Predis/ClientTest.php1023 public function testGetClientByMethodThrowsExceptionWhenConnectionDoesNotSupportSelectorType(): voidCODE
LOWtests/Predis/ClientTest.php1036 public function testPipelineWithoutArgumentsReturnsPipeline(): voidCODE
LOWtests/Predis/ClientTest.php1046 public function testPipelineWithArrayReturnsPipeline(): voidCODE
LOWtests/Predis/ClientTest.php1058 public function testPipelineWithCallableExecutesPipeline(): voidCODE
LOWtests/Predis/ClientTest.php1075 public function testPubSubLoopWithoutArgumentsReturnsPubSubConsumer(): voidCODE
LOWtests/Predis/ClientTest.php1085 public function testPubSubLoopWithArrayReturnsPubSubConsumerWithOptions(): voidCODE
2399 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