AI Slop Code Risk Monitor

shadowsocks/shadowsocks-c

SlopCodeMonitor badge for shadowsocks/shadowsocks-c Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
5.3 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for shadowsocks/shadowsocks-c. SynthScan examined 51,494 lines of code across 249 source files, recording 204 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 5.3 (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.

5.3
Adjusted Signal
5.3
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
51.5K
Lines of Code
249
Files
204
Pattern Hits
2026-10-31
Scan Date
0.06
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 17.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

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

Agent Over-Engineering Ratio 8.8/100 · LOW

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

PR Review Velocity Impact 23.9/100 · LOW

Which changes need focused human review? 204 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 0HIGH 14MEDIUM 4LOW 186

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 204 distinct pattern matches across 9 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.

Over-Commented Block122 hits · 122 pts
SeverityFileLineSnippetContext
LOW.uncrustify.cfg21# IndentingCOMMENT
LOW.uncrustify.cfg681COMMENT
LOW.uncrustify.cfg1041# Change simple unbraced for statements into a one-linerCOMMENT
LOW.uncrustify.cfg1341# Example:COMMENT
LOW.uncrustify.cfg1361#COMMENT
LOWdocker/mingw/apt.sh1#!/bin/bashCOMMENT
LOWdocker/mingw/prepare.sh1#!/bin/bashCOMMENT
LOWdocker/mingw/deps.sh1#!/bin/bashCOMMENT
LOWdocker/mingw/build.sh1#!/bin/bashCOMMENT
LOWtests/test_crypto_cpp.cpp1// SPDX-License-Identifier: GPL-3.0-or-laterCOMMENT
LOWtests/test_heap_guard_cpp.cpp1/* SPDX-License-Identifier: GPL-3.0-or-later */COMMENT
LOWtests/test_crypto_aead2022_cpp.cpp1/* SPDX-License-Identifier: GPL-3.0-or-later */COMMENT
LOWtests/test_helpers.h1#ifndef SS_TEST_HELPERS_HCOMMENT
LOWtests/test_process_cpp.cpp1// SPDX-License-Identifier: GPL-3.0-or-laterCOMMENT
LOWtests/test_deb_build.sh1#!/bin/bashCOMMENT
LOWtests/test_aead2022_cpp.cpp1// SPDX-License-Identifier: GPL-3.0-or-laterCOMMENT
LOWtests/test.py1#!/usr/bin/pythonCOMMENT
LOWtests/test_jconf_cpp.cpp1/* SPDX-License-Identifier: GPL-3.0-or-later */COMMENT
LOWtests/udp_session_eviction_client.c1/* Live UDP relay regression based on Akhil Koul (@akoul)'s private report.COMMENT
LOWtests/test_local_api_cpp.cpp1/* SPDX-License-Identifier: GPL-3.0-or-later */COMMENT
LOWtests/test_redir_qemu.sh1#!/bin/bashCOMMENT
LOWtests/test_crypto_aead_cpp.cpp1/* SPDX-License-Identifier: GPL-3.0-or-later */COMMENT
LOWtests/test_resolver_cpp.cpp1/* SPDX-License-Identifier: GPL-3.0-or-later */COMMENT
LOWtests/qemu/guest-init.sh1#!/bin/bashCOMMENT
LOWtests/reference/crypto.h21 */COMMENT
LOWtests/reference/crypto.h41typedef crypto_aead_aes256gcm_state aes256gcm_ctx;COMMENT
LOWtests/reference/crypto.h61COMMENT
LOWtests/reference/crypto.h81#define SS2022_MAX_PADDING 900COMMENT
LOWtests/reference/aead.cpp21 */COMMENT
LOWtests/reference/cache.cpp21 */COMMENT
LOWtests/reference/aead.h21 */COMMENT
LOWtests/reference/crypto.cpp21 */COMMENT
LOWtests/reference/aead2022_udp.cpp41#include "aead_internal.h"COMMENT
LOWtests/reference/aead2022.cpp21 *COMMENT
LOWtests/reference/aead2022.cpp41#define SS2022_HDR_TYPE_SERVER 1COMMENT
LOWthird_party/mbedtls_config.h1/* SPDX-License-Identifier: GPL-3.0-or-later */COMMENT
LOWthird_party/mbedtls_config.h21#define MBEDTLS_PLATFORM_CCOMMENT
LOWthird_party/bloom/murmur2/MurmurHash2.c1//-----------------------------------------------------------------------------COMMENT
LOWsrc/utils.h21 */COMMENT
LOWsrc/jconf.cpp21COMMENT
LOWsrc/utils.cpp21 */COMMENT
LOWsrc/utils.cpp41#include <sys/stat.h>COMMENT
LOWsrc/utils.cpp741#endifCOMMENT
LOWsrc/process.cpp1/* SPDX-License-Identifier: GPL-3.0-or-later */COMMENT
LOWsrc/process.cpp21#include <time.h>COMMENT
LOWsrc/netutils.h21 */COMMENT
LOWsrc/netutils.h41#include <netdb.h>COMMENT
LOWsrc/winsock.cpp21 */COMMENT
LOWsrc/local.cpp21 */COMMENT
LOWsrc/local.cpp41#endifCOMMENT
LOWsrc/local.cpp61#include "jconf.h"COMMENT
LOWsrc/android.c21 */COMMENT
LOWsrc/jconf.h21COMMENT
LOWsrc/acl.cpp21 */COMMENT
LOWsrc/redir.cpp21 * <http://www.gnu.org/licenses/>.COMMENT
LOWsrc/redir.cpp41#include <linux/netfilter_ipv4.h>COMMENT
LOWsrc/redir.cpp61COMMENT
LOWsrc/manager.cpp21 */COMMENT
LOWsrc/manager.cpp41#include <dirent.h>COMMENT
LOWsrc/manager.cpp61#define SET_INTERFACECOMMENT
62 more matches not shown…
Empty Error Handlers13 hits · 65 pts
SeverityFileLineSnippetContext
HIGHtests/sip003_fixture.py20except OSError:CODE
HIGHtests/sip003_fixture.py33except OSError:CODE
HIGHtests/test_server_acl.py97except ConnectionResetError:CODE
HIGHtests/test.py149except OSError:CODE
HIGHtests/interop.py25except (OSError, TimeoutError):CODE
HIGHtests/interop.py271except ProcessLookupError:CODE
HIGHtests/stress_test.py56except (IOError, OSError, ValueError):CODE
HIGHtests/stress_test.py99except (socket.timeout, OSError):CODE
HIGHtests/stress_test.py241except OSError:CODE
HIGHtests/stress_test.py143except Exception:CODE
HIGHtests/test_limits.py56except (OSError, AssertionError):CODE
HIGHtests/experiments/transport.py100except (OSError, ValueError, asyncio.IncompleteReadError, asyncio.LimitOverrunError, TimeoutError):CODE
HIGHtests/experiments/route_server.py28except (OSError, TimeoutError):CODE
Deep Nesting31 hits · 31 pts
SeverityFileLineSnippetContext
LOWtests/tunnel_interop.py29CODE
LOWtests/tunnel_interop.py46CODE
LOWtests/docker_smoke.py19CODE
LOWtests/docker_smoke.py49CODE
LOWtests/async_dns_interop.py12CODE
LOWtests/measure_udp.py15CODE
LOWtests/interop.py96CODE
LOWtests/interop.py154CODE
LOWtests/interop.py183CODE
LOWtests/test_half_close.py33CODE
LOWtests/stress_test.py39CODE
LOWtests/stress_test.py147CODE
LOWtests/stress_test.py287CODE
LOWtests/test_limits.py18CODE
LOWtests/test_manager.py64CODE
LOWtests/test_manager.py101CODE
LOWtests/check_printable_pcap.py15CODE
LOWtests/test_cli.py32CODE
LOWtests/test_cli.py141CODE
LOWtests/printable_salt_experiment.py145CODE
LOWtests/experiments/benchmark.py34CODE
LOWtests/experiments/transport.py80CODE
LOWtests/experiments/route_server.py74CODE
LOWtests/experiments/route_screen.py28CODE
LOWtests/experiments/test_transport.py14CODE
LOWtests/experiments/test_supervisor.py19CODE
LOWtests/experiments/local_interop.py28CODE
LOWtests/experiments/analyze.py17CODE
LOWscripts/check_cli_docs.py109CODE
LOWscripts/check_no_heap.py53CODE
LOWscripts/source_archive.py16CODE
Hyper-Verbose Identifiers22 hits · 27 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_cli_docs.py33 def test_current_documentation_matches_all_variants(self):CODE
LOW⚡tests/test_cli_docs.py43 def test_new_option_requires_documentation(self):CODE
LOW⚡tests/test_cli_docs.py48 def test_argument_arity_is_checked(self):CODE
LOW⚡tests/test_cli_docs.py54 def test_unknown_parser_syntax_fails_closed(self):CODE
LOW⚡tests/test_cli_docs.py60 def test_nonliteral_short_options_fail_closed(self):CODE
LOW⚡tests/test_cli_docs.py65 def test_shell_options_require_documentation(self):CODE
LOW⚡tests/test_cli_docs.py70 def test_missing_snippet_is_rejected(self):CODE
LOW⚡tests/test_cli_docs.py75 def test_duplicate_option_is_rejected(self):CODE
LOW⚡tests/test_cli_docs.py80 def test_manual_must_include_parser_options(self):CODE
LOW⚡tests/test_cli_docs.py85 def test_missing_rendered_flag_is_rejected(self):CODE
LOWtests/test_cli.py55 def test_printable_salt_is_local_only_and_rejects_other_ciphers(self):CODE
LOWtests/test_cli.py91 def test_removed_stream_ciphers_are_rejected(self):CODE
LOWtests/test_cli.py99 def test_long_aliases_accept_their_arguments(self):CODE
LOWtests/test_cli.py123 def test_usage_errors_are_stderr_exit_two_without_secrets(self):CODE
LOWtests/test_cli.py141 def test_transport_and_address_family_override_configuration(self):CODE
LOWtests/test_cli.py177 def test_server_endpoint_arguments(self):CODE
LOWtests/test_cli.py198 def test_numeric_option_validation(self):CODE
LOWtests/experiments/test_transport.py35 async def test_invalid_and_truncated(self):CODE
LOWtests/experiments/test_transport.py50 async def test_empty_client_does_not_connect_upstream(self):CODE
LOWtests/experiments/test_transport.py67 async def test_tls_half_close_and_certificate_verification(self):CODE
LOWtests/experiments/test_transport.py102 async def test_half_close_and_concurrent_relay(self):CODE
LOWscripts/check_no_heap.py53def strip_comments_and_strings(text):CODE
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMdocker/mingw/apt.sh5# This file is part of the shadowsocks-libev.COMMENT
MEDIUMdocker/mingw/prepare.sh5# This file is part of the shadowsocks-libev.COMMENT
MEDIUMdocker/mingw/deps.sh5# This file is part of the shadowsocks-libev.COMMENT
MEDIUMdocker/mingw/build.sh5# This file is part of the shadowsocks-libev.COMMENT
Unused Imports6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/test.py18CODE
LOWtests/test.py18CODE
LOWtests/test.py18CODE
LOWtests/test.py18CODE
LOWtests/stress_test.py13CODE
LOWtests/test_limits.py6CODE
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtests/reference/cache.cpp70 std::size_t capacity = 0; // as requested; eviction thresholdCODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/test_redir_qemu.sh260 # Check if QEMU is still runningCOMMENT
LOWscripts/ss-setup.sh510 # Check if TCP Fast Open is available (Linux only)COMMENT
Excessive Try-Catch Wrapping3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/stress_test.py139 except Exception:CODE
LOWtests/stress_test.py143 except Exception:CODE
LOWtests/stress_test.py257 except Exception as e:CODE