A flexible and feature-complete Redis/Valkey client for PHP.
This report presents the forensic synthetic code analysis of predis/predis, a PHP project with 7,779 GitHub stars. SynthScan v2.0 examined 157,074 lines of code across 1308 source files, recording 2288 pattern matches distributed across 3 syntactic categories. The overall adjusted score of 14.1 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 2288 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| 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 |
| 2223 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 |