A PHP extension for Redis
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 86 finding(s).
Are imports declared and package/API names verified? 3 finding(s).
Are wrappers, guards, and repeated structures necessary? 60 finding(s).
Which changes need focused human review? 89 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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/TestSuite.php | 432 | protected function assertEqualsCanonicalizing($expected, $actual, $keep_keys = false): void { | CODE |
| LOW | tests/RedisClusterTest.php | 52 | public function testConnectDatabaseSelect() { $this->markTestSkipped(); } | CODE |
| LOW | tests/RedisClusterTest.php | 53 | public function testReconnectPooledConnection() { | CODE |
| LOW | tests/RedisClusterTest.php | 109 | public function testReconnectNotConnected() { | CODE |
| LOW | tests/RedisClusterTest.php | 376 | public function testDirectedCommandsRejectUncoveredSlot() { | CODE |
| LOW | tests/RedisClusterTest.php | 492 | public function testDirectedFlushUsesMaster() { | CODE |
| LOW | tests/RedisClusterTest.php | 517 | public function testSetTcpKeepaliveOption() { | CODE |
| LOW | tests/RedisClusterTest.php | 581 | public function testReplicaReadonlyResentAfterReconnect() { | CODE |
| LOW | tests/RedisClusterTest.php | 674 | public function testDirectedCommandsInMulti() { | CODE |
| LOW | tests/RedisClusterTest.php | 831 | public function testScanPrefixEmptyPattern() { | CODE |
| LOW | tests/RedisClusterTest.php | 904 | public function testDistributedMultiFailure() { | CODE |
| LOW | tests/RedisClusterTest.php | 954 | public function testDistributedMultiResults() { | CODE |
| LOW | tests/RedisClusterTest.php | 1128 | public function testEvalBulkResponseMulti() { | CODE |
| LOW | tests/RedisClusterTest.php | 1145 | public function testEvalBulkEmptyResponse() { | CODE |
| LOW | tests/RedisClusterTest.php | 1159 | public function testEvalBulkEmptyResponseMulti() { | CODE |
| LOW | tests/RedisTest.php | 3645 | public function testNumericPrefixHashFields() { | CODE |
| LOW | tests/RedisTest.php | 3662 | public function testNumericStringEncoding() { | CODE |
| LOW | tests/RedisTest.php | 3692 | public function testHMGetNumericFieldIdentity() { | CODE |
| LOW | tests/RedisTest.php | 5322 | public function testDifferentTypeSortedSet() { | CODE |
| LOW | tests/RedisTest.php | 5515 | function testIgnoreNumbersReturnTypes() { | CODE |
| LOW | tests/RedisTest.php | 5877 | public function testCompressedSerialization() { | CODE |
| LOW | tests/RedisTest.php | 6692 | public function testReconnectNotConnected() { | CODE |
| LOW | tests/RedisTest.php | 6704 | public function testReconnectDiscardsQueue() { | CODE |
| LOW | tests/RedisTest.php | 6741 | public function testReconnectPooledConnection() { | CODE |
| LOW | tests/RedisTest.php | 7022 | public function testBackoffConstructorOptions() { | CODE |
| LOW | tests/RedisTest.php | 7718 | public function testGeoSearchStoreByPolygon() { | CODE |
| LOW | tests/RedisTest.php | 8922 | protected function assertSessionRunnerResult($runner, bool $expect_success = true): void { | CODE |
| LOW | tests/RedisTest.php | 9283 | public function testConnectDatabaseSelect() { | CODE |
| LOW | tests/RedisTest.php | 9600 | public function testAnonymousClassSerializationFailure() { | CODE |
| LOW | tests/RedisArrayTest.php | 384 | public function testReadUsingFallbackMechanism() { | CODE |
| LOW | tests/RedisArrayTest.php | 400 | public function testReadRedistributedKeys() { | CODE |
| LOW | tests/RedisArrayTest.php | 465 | public function testAllKeysHaveBeenMigrated() { | CODE |
| LOW | docs/index.html | 27 | function ensureCustomClassesAreBuiltIn() { | CODE |
| LOW | docs/index.html | 234 | function highlightMethodParameters() { | CODE |
| LOW | docs/RedisCluster.html | 27 | function ensureCustomClassesAreBuiltIn() { | CODE |
| LOW | docs/RedisCluster.html | 234 | function highlightMethodParameters() { | CODE |
| LOW | docs/Redis.html | 27 | function ensureCustomClassesAreBuiltIn() { | CODE |
| LOW | docs/Redis.html | 234 | function highlightMethodParameters() { | CODE |
| LOW | docs/interfaces.html | 27 | function ensureCustomClassesAreBuiltIn() { | CODE |
| LOW | docs/interfaces.html | 234 | function highlightMethodParameters() { | CODE |
| LOW | docs/[Global_Namespace].html | 27 | function ensureCustomClassesAreBuiltIn() { | CODE |
| LOW | docs/[Global_Namespace].html | 234 | function highlightMethodParameters() { | CODE |
| LOW | docs/RedisException.html | 27 | function ensureCustomClassesAreBuiltIn() { | CODE |
| LOW | docs/RedisException.html | 234 | function highlightMethodParameters() { | CODE |
| LOW | docs/namespaces.html | 27 | function ensureCustomClassesAreBuiltIn() { | CODE |
| LOW | docs/namespaces.html | 234 | function highlightMethodParameters() { | CODE |
| LOW | docs/RedisArray.html | 27 | function ensureCustomClassesAreBuiltIn() { | CODE |
| LOW | docs/RedisArray.html | 234 | function highlightMethodParameters() { | CODE |
| LOW | docs/RedisClusterException.html | 27 | function ensureCustomClassesAreBuiltIn() { | CODE |
| LOW | docs/RedisClusterException.html | 234 | function highlightMethodParameters() { | CODE |
| LOW | docs/RedisSentinel.html | 27 | function ensureCustomClassesAreBuiltIn() { | CODE |
| LOW | docs/RedisSentinel.html | 234 | function highlightMethodParameters() { | CODE |
| LOW | docs/doc-index.html | 27 | function ensureCustomClassesAreBuiltIn() { | CODE |
| LOW | docs/doc-index.html | 234 | function highlightMethodParameters() { | CODE |
| LOW | docs/classes.html | 27 | function ensureCustomClassesAreBuiltIn() { | CODE |
| LOW | docs/classes.html | 234 | function highlightMethodParameters() { | CODE |
| LOW | docs/traits.html | 27 | function ensureCustomClassesAreBuiltIn() { | CODE |
| LOW | docs/traits.html | 234 | function highlightMethodParameters() { | CODE |
| LOW | docs/search.html | 27 | function ensureCustomClassesAreBuiltIn() { | CODE |
| LOW | docs/search.html | 234 | function highlightMethodParameters() { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cluster_library.h | 1 | #ifndef _PHPREDIS_CLUSTER_LIBRARY_H | COMMENT |
| LOW | redis_commands.c | 21 | #include "config.h" | COMMENT |
| LOW | redis_commands.c | 761 | dst[2] = u.b[1]; | COMMENT |
| LOW | library.h | 1 | #ifndef REDIS_LIBRARY_H | COMMENT |
| LOW | redis_cluster.c | 21 | COMMENT | |
| LOW | common.h | 1 | #include "php.h" | COMMENT |
| LOW | common.h | 21 | ZEND_ASSERT(zv != NULL); | COMMENT |
| LOW | common.h | 41 | # define PHPREDIS_LITTLE_ENDIAN | COMMENT |
| LOW | common.h | 61 | # define REDIS_NODISCARD __attribute__((warn_unused_result)) | COMMENT |
| LOW | common.h | 81 | } redis_sock_status; | COMMENT |
| LOW | common.h | 121 | /* PUBSUB subcommands */ | COMMENT |
| LOW | common.h | 141 | #define REDIS_OPT_REPLY_LITERAL 8 | COMMENT |
| LOW | common.h | 161 | REDIS_SERIALIZER_JSON, | COMMENT |
| LOW | common.h | 181 | #define REDIS_BACKOFF_ALGORITHM_EQUAL_JITTER 3 | COMMENT |
| LOW | library.c | 1 | #include "php_redis.h" | COMMENT |
| LOW | library.c | 41 | #endif | COMMENT |
| LOW | library.c | 61 | COMMENT | |
| LOW | redis.c | 21 | #ifdef HAVE_CONFIG_H | COMMENT |
| LOW | redis.c | 41 | #ifdef HAVE_REDIS_PHPSER | COMMENT |
| LOW | redis_session.c | 21 | #include "common.h" | COMMENT |
| LOW | php_compat.h | 1 | #ifndef PHP_REDIS_COMPAT_H | COMMENT |
| LOW | php_compat.h | 81 | #ifndef RETURN_THROWS | COMMENT |
| LOW | php_compat.h | 101 | #endif | COMMENT |
| LOW | docs/Redis.html | 4081 | // Which backoff algorithm to use. 'decorrelated jitter' is | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | docs/js/jquery-3.5.1.slim.min.js | 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):f | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | README.md | 812 | // The write was not persisted or replicated as requested. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/js/highlight.min.js | 317 | }),re=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code", | CODE |
| LOW | doctum-theme/js/highlight.min.js | 317 | }),re=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/make-cluster.sh | 7 | # Usage: | COMMENT |