AI Slop Code Risk Monitor

swoole/swoole-src

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

🚀 Coroutine-based concurrency library for PHP

1.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for swoole/swoole-src, a C++ project with 18,933 GitHub stars. SynthScan examined 187,294 lines of code across 807 source files, recording 324 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 1.6 (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.

1.6
Adjusted Signal
1.6
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
18.9K
Stars
C++
Language
187.3K
Lines of Code
807
Files
324
Pattern Hits
2026-10-31
Scan Date
0.00
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 7.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 0.3/100 · LOW

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

PR Review Velocity Impact 8.3/100 · LOW

Which changes need focused human review? 324 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 0MEDIUM 0LOW 324

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 324 distinct pattern matches across 3 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 Block311 hits · 278 pts
SeverityFileLineSnippetContext
LOWphp_swoole.h21extern "C" {COMMENT
LOWtools/templates/version.tpl.h21#define SWOOLE_MAJOR_VERSION <?=$next->major."\n" ?>COMMENT
LOWinclude/swoole_atomic.h81COMMENT
LOWinclude/swoole_atomic.h101#define sw_spinlock_release(lock) __sync_lock_release(lock)COMMENT
LOWinclude/swoole_server.h21#include "swoole_timer.h"COMMENT
LOWinclude/swoole_util.h21#include <cstdarg>COMMENT
LOWinclude/swoole_socket.h21#include "swoole_ssl.h"COMMENT
LOWinclude/swoole_socket.h41#endifCOMMENT
LOWinclude/swoole_asm_context.h41#endifCOMMENT
LOWinclude/swoole_win32.h21COMMENT
LOWinclude/swoole_win32.h41// macros would be re-defined and corrupt Swoole's enum values.COMMENT
LOWinclude/swoole_win32.h61#undef SW_STACKOVERFLOWCOMMENT
LOWinclude/swoole_win32.h81#include <process.h>COMMENT
LOWinclude/swoole_win32.h101// PHP's zend_config.w32.h already defines these, so guard with #ifndefCOMMENT
LOWinclude/swoole_win32.h121COMMENT
LOWinclude/swoole_win32.h141#endifCOMMENT
LOWinclude/swoole_win32.h201#endifCOMMENT
LOWinclude/swoole_win32.h221#define SIGKILL 9COMMENT
LOWinclude/swoole_win32.h241// ============================================================================COMMENT
LOWinclude/swoole_win32.h261#endifCOMMENT
LOWinclude/swoole_win32.h281// ============================================================================COMMENT
LOWinclude/swoole_win32.h301#endifCOMMENT
LOWinclude/swoole_win32.h321#endifCOMMENT
LOWinclude/swoole_win32.h341#define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORTCOMMENT
LOWinclude/swoole_win32.h361#define F_GETFL 0COMMENT
LOWinclude/swoole_win32.h381#define F_RDLCK 0COMMENT
LOWinclude/swoole_win32.h401// PHP's php_filestat.h also defines these on Windows (without #ifndef guards).COMMENT
LOWinclude/swoole_win32.h421#ifndef S_IWGRPCOMMENT
LOWinclude/swoole_win32.h441COMMENT
LOWinclude/swoole_win32.h461 rlim_t rlim_cur;COMMENT
LOWinclude/swoole_win32.h481#ifndef LOCK_NBCOMMENT
LOWinclude/swoole_win32.h501#ifndef F_OKCOMMENT
LOWinclude/swoole_win32.h541#ifndef AF_UNIXCOMMENT
LOWinclude/swoole_win32.h621#define SHUT_RD SD_RECEIVECOMMENT
LOWinclude/swoole_win32.h641#ifndef MSG_DONTWAITCOMMENT
LOWinclude/swoole_win32.h661#endifCOMMENT
LOWinclude/swoole_win32.h681#define EPFNOSUPPORT WSAEPFNOSUPPORTCOMMENT
LOWinclude/swoole_win32.h701COMMENT
LOWinclude/swoole_win32.h721#define ENOPROTOOPT WSAENOPROTOOPTCOMMENT
LOWinclude/swoole_win32.h741#define EADDRNOTAVAIL WSAEADDRNOTAVAILCOMMENT
LOWinclude/swoole_win32.h761#define sw_strdup _strdupCOMMENT
LOWinclude/swoole_win32.h781// Windows uses VirtualAlloc/VirtualProtect instead, but these constantsCOMMENT
LOWinclude/swoole_win32.h861// nanosleep() replacementCOMMENT
LOWinclude/swoole_win32.h881// Use #undef to avoid C4005 warning when php.h also defines lstatCOMMENT
LOWinclude/swoole_win32.h901// The actual implementation should use C++11 <thread>/<mutex> orCOMMENT
LOWinclude/swoole_file_hook.h21COMMENT
LOWinclude/swoole_file_hook.h41#endifCOMMENT
LOWinclude/swoole_file_hook.h61#define fread(ptr, size, nmemb, stream) swoole_coroutine_fread(ptr, size, nmemb, stream)COMMENT
LOWinclude/swoole.h21#include "config.h"COMMENT
LOWinclude/swoole.h41#include "swoole_posix.h"COMMENT
LOWinclude/swoole.h61#include <list>COMMENT
LOWinclude/swoole.h81#elseCOMMENT
LOWinclude/swoole.h101#define SW_END_LINE "--------------------------END-----------------------------"COMMENT
LOWinclude/swoole.h121#define SW_COLOR_RED 1COMMENT
LOWinclude/swoole.h141COMMENT
LOWinclude/swoole_coroutine_context.h21COMMENT
LOWinclude/swoole_process_pool.h21#include "swoole_lock.h"COMMENT
LOWinclude/swoole_protocol.h101};COMMENT
LOWinclude/swoole_websocket.h21#define SW_WEBSOCKET_SEC_KEY_LEN 16COMMENT
LOWinclude/swoole_config.h21#if defined(__GNUC__) && (__GNUC__ < 3 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8))COMMENT
251 more matches not shown…
Hyper-Verbose Identifiers12 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/include/lib/src/ProcessManager.php217 private function terminateChildAfterReadinessFailure(): voidCODE
LOWext-src/php_swoole_library.h8115 " protected static function convertHeaderNameToParamName(string $name)\n"CODE
LOWext-src/php_swoole_library.h8120 " protected static function convertParamNameToHeaderName(string $name)\n"CODE
LOWext-src/php_swoole_library.h11028 " public static function handlerGetDefinedFunctions(Server $server, string $msg)\n"CODE
LOWext-src/php_swoole_library.h11049 " public static function handlerGetDeclaredClasses(Server $server, string $msg)\n"CODE
LOWext-src/php_swoole_library.h11068 " public static function handlerGetServerMemoryUsage(Server $server, string $msg)\n"CODE
LOWext-src/php_swoole_library.h11129 " public static function handlerGetStaticPropertyValue(Server $server, string $msg)\n"CODE
LOWext-src/php_swoole_library.h11383 " private static function getProcessMemoryRealUsage(string|int $pid = 'self'): int\n"CODE
LOWext-src/php_swoole_library.h12103 " protected function prepareRegistrationOptions(string $name, string $ip, int $port, array $options, float $interCODE
LOWext-src/php_swoole_library.h12488 " protected function prepareRegistrationOptions(string $name, string $ip, int $port, array $options, float $interCODE
LOWext-src/php_swoole_library.h12709 " protected function prepareRegistrationOptions(string $name, string $ip, int $port, array $options, float $interCODE
LOWext-src/php_swoole_library.h13316 " protected function prepareRegistrationOptions(string $name, string $ip, int $port, array $options, float $interCODE
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/include/macos/phpstorm.py26CODE