AI Slop Code Risk Monitor

phpredis/phpredis

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

A PHP extension for Redis

0.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for phpredis/phpredis, a C project with 10,224 GitHub stars. SynthScan examined 145,675 lines of code across 101 source files, recording 89 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 0.7 (Low 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.

0.7
Adjusted Signal
0.7
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
10.2K
Stars
C
Language
145.7K
Lines of Code
101
Files
89
Pattern Hits
2026-10-31
Scan Date
0.02
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 3.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.4/100 · LOW

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

Agent Over-Engineering Ratio 2.0/100 · LOW

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

PR Review Velocity Impact 3.5/100 · LOW

Which changes need focused human review? 89 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 1HIGH 1MEDIUM 0LOW 87

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 89 distinct pattern matches across 6 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 Identifiers60 hits · 60 pts
SeverityFileLineSnippetContext
LOWtests/TestSuite.php432 protected function assertEqualsCanonicalizing($expected, $actual, $keep_keys = false): void {CODE
LOWtests/RedisClusterTest.php52 public function testConnectDatabaseSelect() { $this->markTestSkipped(); }CODE
LOWtests/RedisClusterTest.php53 public function testReconnectPooledConnection() {CODE
LOWtests/RedisClusterTest.php109 public function testReconnectNotConnected() {CODE
LOWtests/RedisClusterTest.php376 public function testDirectedCommandsRejectUncoveredSlot() {CODE
LOWtests/RedisClusterTest.php492 public function testDirectedFlushUsesMaster() {CODE
LOWtests/RedisClusterTest.php517 public function testSetTcpKeepaliveOption() {CODE
LOWtests/RedisClusterTest.php581 public function testReplicaReadonlyResentAfterReconnect() {CODE
LOWtests/RedisClusterTest.php674 public function testDirectedCommandsInMulti() {CODE
LOWtests/RedisClusterTest.php831 public function testScanPrefixEmptyPattern() {CODE
LOWtests/RedisClusterTest.php904 public function testDistributedMultiFailure() {CODE
LOWtests/RedisClusterTest.php954 public function testDistributedMultiResults() {CODE
LOWtests/RedisClusterTest.php1128 public function testEvalBulkResponseMulti() {CODE
LOWtests/RedisClusterTest.php1145 public function testEvalBulkEmptyResponse() {CODE
LOWtests/RedisClusterTest.php1159 public function testEvalBulkEmptyResponseMulti() {CODE
LOWtests/RedisTest.php3645 public function testNumericPrefixHashFields() {CODE
LOWtests/RedisTest.php3662 public function testNumericStringEncoding() {CODE
LOWtests/RedisTest.php3692 public function testHMGetNumericFieldIdentity() {CODE
LOWtests/RedisTest.php5322 public function testDifferentTypeSortedSet() {CODE
LOWtests/RedisTest.php5515 function testIgnoreNumbersReturnTypes() {CODE
LOWtests/RedisTest.php5877 public function testCompressedSerialization() {CODE
LOWtests/RedisTest.php6692 public function testReconnectNotConnected() {CODE
LOWtests/RedisTest.php6704 public function testReconnectDiscardsQueue() {CODE
LOWtests/RedisTest.php6741 public function testReconnectPooledConnection() {CODE
LOWtests/RedisTest.php7022 public function testBackoffConstructorOptions() {CODE
LOWtests/RedisTest.php7718 public function testGeoSearchStoreByPolygon() {CODE
LOWtests/RedisTest.php8922 protected function assertSessionRunnerResult($runner, bool $expect_success = true): void {CODE
LOWtests/RedisTest.php9283 public function testConnectDatabaseSelect() {CODE
LOWtests/RedisTest.php9600 public function testAnonymousClassSerializationFailure() {CODE
LOWtests/RedisArrayTest.php384 public function testReadUsingFallbackMechanism() {CODE
LOWtests/RedisArrayTest.php400 public function testReadRedistributedKeys() {CODE
LOWtests/RedisArrayTest.php465 public function testAllKeysHaveBeenMigrated() {CODE
LOWdocs/index.html27 function ensureCustomClassesAreBuiltIn() {CODE
LOWdocs/index.html234 function highlightMethodParameters() {CODE
LOWdocs/RedisCluster.html27 function ensureCustomClassesAreBuiltIn() {CODE
LOWdocs/RedisCluster.html234 function highlightMethodParameters() {CODE
LOWdocs/Redis.html27 function ensureCustomClassesAreBuiltIn() {CODE
LOWdocs/Redis.html234 function highlightMethodParameters() {CODE
LOWdocs/interfaces.html27 function ensureCustomClassesAreBuiltIn() {CODE
LOWdocs/interfaces.html234 function highlightMethodParameters() {CODE
LOWdocs/[Global_Namespace].html27 function ensureCustomClassesAreBuiltIn() {CODE
LOWdocs/[Global_Namespace].html234 function highlightMethodParameters() {CODE
LOWdocs/RedisException.html27 function ensureCustomClassesAreBuiltIn() {CODE
LOWdocs/RedisException.html234 function highlightMethodParameters() {CODE
LOWdocs/namespaces.html27 function ensureCustomClassesAreBuiltIn() {CODE
LOWdocs/namespaces.html234 function highlightMethodParameters() {CODE
LOWdocs/RedisArray.html27 function ensureCustomClassesAreBuiltIn() {CODE
LOWdocs/RedisArray.html234 function highlightMethodParameters() {CODE
LOWdocs/RedisClusterException.html27 function ensureCustomClassesAreBuiltIn() {CODE
LOWdocs/RedisClusterException.html234 function highlightMethodParameters() {CODE
LOWdocs/RedisSentinel.html27 function ensureCustomClassesAreBuiltIn() {CODE
LOWdocs/RedisSentinel.html234 function highlightMethodParameters() {CODE
LOWdocs/doc-index.html27 function ensureCustomClassesAreBuiltIn() {CODE
LOWdocs/doc-index.html234 function highlightMethodParameters() {CODE
LOWdocs/classes.html27 function ensureCustomClassesAreBuiltIn() {CODE
LOWdocs/classes.html234 function highlightMethodParameters() {CODE
LOWdocs/traits.html27 function ensureCustomClassesAreBuiltIn() {CODE
LOWdocs/traits.html234 function highlightMethodParameters() {CODE
LOWdocs/search.html27 function ensureCustomClassesAreBuiltIn() {CODE
LOWdocs/search.html234 function highlightMethodParameters() {CODE
Over-Commented Block24 hits · 24 pts
SeverityFileLineSnippetContext
LOWcluster_library.h1#ifndef _PHPREDIS_CLUSTER_LIBRARY_HCOMMENT
LOWredis_commands.c21#include "config.h"COMMENT
LOWredis_commands.c761 dst[2] = u.b[1];COMMENT
LOWlibrary.h1#ifndef REDIS_LIBRARY_HCOMMENT
LOWredis_cluster.c21COMMENT
LOWcommon.h1#include "php.h"COMMENT
LOWcommon.h21 ZEND_ASSERT(zv != NULL);COMMENT
LOWcommon.h41# define PHPREDIS_LITTLE_ENDIANCOMMENT
LOWcommon.h61# define REDIS_NODISCARD __attribute__((warn_unused_result))COMMENT
LOWcommon.h81} redis_sock_status;COMMENT
LOWcommon.h121/* PUBSUB subcommands */COMMENT
LOWcommon.h141#define REDIS_OPT_REPLY_LITERAL 8COMMENT
LOWcommon.h161 REDIS_SERIALIZER_JSON,COMMENT
LOWcommon.h181#define REDIS_BACKOFF_ALGORITHM_EQUAL_JITTER 3COMMENT
LOWlibrary.c1#include "php_redis.h"COMMENT
LOWlibrary.c41 #endifCOMMENT
LOWlibrary.c61COMMENT
LOWredis.c21#ifdef HAVE_CONFIG_HCOMMENT
LOWredis.c41#ifdef HAVE_REDIS_PHPSERCOMMENT
LOWredis_session.c21#include "common.h"COMMENT
LOWphp_compat.h1#ifndef PHP_REDIS_COMPAT_HCOMMENT
LOWphp_compat.h81#ifndef RETURN_THROWSCOMMENT
LOWphp_compat.h101#endifCOMMENT
LOWdocs/Redis.html4081 // Which backoff algorithm to use. 'decorrelated jitter' isCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALdocs/js/jquery-3.5.1.slim.min.js2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):fCODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHREADME.md812 // The write was not persisted or replicated as requested.COMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdocs/js/highlight.min.js317}),re=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code",CODE
LOWdoctum-theme/js/highlight.min.js317}),re=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code",CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/make-cluster.sh7# Usage:COMMENT