Repository Analysis

predis/predis

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

14.1 Low AI signal View on GitHub

Analysis Overview

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).

14.1
Adjusted Score
14.1
Raw Score
100%
Time Factor
2026-08-01
Last Push
7.8K
Stars
PHP
Language
157.1K
Lines of Code
1.3K
Files
2.3K
Pattern Hits
2026-08-02
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 1LOW 2287

Directory Score Breakdown

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.

Pattern Findings

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.

Hyper-Verbose Identifiers2283 hits · 2210 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
2223 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