A flexible and feature-complete Redis/Valkey client for PHP.
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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 2464 finding(s).
Are imports declared and package/API names verified? 3 finding(s).
Are wrappers, guards, and repeated structures necessary? 2459 finding(s).
Which changes need focused human review? 2467 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/Predis/CommunicationExceptionTest.php | 24 | public function testExceptionReturnsInnerConnection(): void | CODE |
| LOW | tests/Predis/CommunicationExceptionTest.php | 49 | public function testShouldResetConnectionIsTrue(): void | CODE |
| LOW | tests/Predis/CommunicationExceptionTest.php | 60 | public function testCommunicationExceptionHandling(): void | CODE |
| LOW | tests/Predis/CommunicationExceptionTest.php | 82 | public function testCommunicationExceptionHandlingWhenShouldResetConnectionIsFalse(): void | CODE |
| LOW | tests/Predis/SSLTest.php | 27 | public function testExecuteCommandOverSSLConnection() | CODE |
| LOW | tests/Predis/SSLTest.php | 46 | public function testExecuteCommandOverSSLConnectionFailsOnIncorrectCertificate() | CODE |
| LOW | tests/Predis/SSLTest.php | 65 | public function testExecuteCommandOverSSLConnectionWithoutSSLConfig() | CODE |
| LOW | tests/Predis/SSLTest.php | 83 | public function testClusterExecuteCommandOverSSLConnection() | CODE |
| LOW | tests/Predis/SSLTest.php | 107 | public function testClusterExecuteCommandOverSSLConnectionFailsOnIncorrectCertificate() | CODE |
| LOW | tests/Predis/SSLTest.php | 130 | public function testClusterExecuteCommandOverSSLConnectionWithoutSSLConfig() | CODE |
| LOW | tests/Predis/SSLTest.php | 149 | public function testAuthWithSSLCertificateWithCNSpecified() | CODE |
| LOW | tests/Predis/SSLTest.php | 175 | public function testClusterAuthWithSSLCertificateWithCNSpecified() | CODE |
| LOW | tests/Predis/ClientTest.php | 43 | public function testConstructorWithoutArguments(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 64 | public function testConstructorWithNullArgument(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 85 | public function testConstructorWithNullAndNullArguments(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 106 | public function testConstructorWithArrayArgument(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 121 | public function testConstructorThrowsExceptionWithArrayOfParametersArgumentAndMissingOption(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 137 | public function testConstructorWithArrayOfArrayArgumentAndClusterOption(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 154 | public function testConstructorWithStringArgument(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 169 | public function testConstructorWithArrayOfStringArgument(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 183 | public function testConstructorWithArrayOfConnectionsArgument(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 200 | public function testConstructorWithConnectionArgument(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 221 | public function testConstructorWithClusterArgument(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 238 | public function testConstructorWithReplicationArgument(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 255 | public function testConstructorWithCallableArgument(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 276 | public function testConstructorWithCallableConnectionInitializerThrowsExceptionOnInvalidReturnType(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 298 | public function testConstructorWithNullAndArrayArgument(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 318 | public function testConstructorWithArrayAndOptionReplication(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 335 | public function testClusterOptionHasPrecedenceOverReplicationOptionAndAggregateOption(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 382 | public function testReplicationOptionHasPrecedenceOverAggregateOption(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 419 | public function testAggregateOptionDoesNotTriggerAggregationInClient(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 457 | public function testConstructorWithInvalidArgumentType(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 468 | public function testConstructorWithInvalidOptionType(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 497 | public function testIsConnectedChecksConnectionState(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 511 | public function testQuitIsAliasForDisconnect(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 525 | public function testCreatesNewCommandUsingSpecifiedCommandFactory(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 543 | public function testExecuteCommandReturnsParsedResponses(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 611 | public function testExecuteCommandThrowsExceptionOnRedisError(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 636 | public function testExecuteCommandReturnsErrorResponseOnRedisError(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 660 | public function testCallingRedisCommandExecutesInstanceOfCommand(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 697 | public function testCallingRedisCommandThrowsExceptionOnServerError(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 723 | public function testCallingRedisCommandReturnsErrorResponseOnRedisError(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 777 | public function testRawCommandNeverAppliesPrefix(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 801 | public function testRawCommandNeverThrowsExceptions(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 822 | public function testThrowsExceptionOnNonRegisteredRedisCommand(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 834 | public function testGetClientByMethodReturnsInstanceOfSubclass(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 852 | public function testGetClientByMethodSupportsSelectingConnectionById(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 875 | public function testGetClientByMethodThrowsExceptionSelectingConnectionByUnknownId(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 894 | public function testGetClientByMethodSupportsSelectingConnectionByAlias(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 917 | public function testGetClientByMethodSupportsSelectingConnectionByKey(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 940 | public function testGetClientByMethodSupportsSelectingConnectionBySlot(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 963 | public function testGetClientByMethodSupportsSelectingConnectionByRole(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 986 | public function testGetClientByMethodSupportsSelectingConnectionByCommand(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 1010 | public function testGetClientByMethodThrowsExceptionWhenSelectingConnectionByUnknownType(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 1023 | public function testGetClientByMethodThrowsExceptionWhenConnectionDoesNotSupportSelectorType(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 1036 | public function testPipelineWithoutArgumentsReturnsPipeline(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 1046 | public function testPipelineWithArrayReturnsPipeline(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 1058 | public function testPipelineWithCallableExecutesPipeline(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 1075 | public function testPubSubLoopWithoutArgumentsReturnsPubSubConsumer(): void | CODE |
| LOW | tests/Predis/ClientTest.php | 1085 | public function testPubSubLoopWithArrayReturnsPubSubConsumerWithOptions(): void | CODE |
| 2399 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/Predis/Command/Redis/COMMAND_Test.php | 121 | COMMENT | |
| LOW | tests/Predis/Consumer/PubSub/ConsumerTest.php | 421 | [NodeConnectionInterface::class, SubscriptionContext::CONTEXT_NON_SHARDED], | COMMENT |
| LOW | tests/Predis/Consumer/PubSub/DispatcherLoopTest.php | 21 | class DispatcherLoopTest extends PredisTestCase | COMMENT |
| LOW | examples/redis_collections_iterators.php | 21 | // - SCAN (iterates over the keyspace) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/lua_scripting_abstraction.php | 18 | // be used to leverage an higher level abstraction for Lua scripting that makes | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/Predis/Command/Redis/HIMPORT_Test.php | 738 | $redis->createCommand('himport', ['SET', $key, 'shared', 'placeholder']) | CODE |
| LOW | tests/Predis/Command/Redis/HIMPORT_Test.php | 765 | $redis->createCommand('himport', ['SET', $key, 'shared', 'placeholder']) | CODE |
| LOW | tests/Predis/Command/Redis/HIMPORT_Test.php | 837 | $redis->createCommand('himport', ['SET', $key, 'shared', 'placeholder']) | CODE |