AI Slop Code Risk Monitor

warmcat/libwebsockets

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

canonical libwebsockets.org networking library

0.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for warmcat/libwebsockets, a C project with 5,347 GitHub stars. SynthScan examined 1,025,451 lines of code across 2742 source files, recording 812 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 0.8 (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.8
Adjusted Signal
0.8
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
5.3K
Stars
C
Language
1.0M
Lines of Code
2.7K
Files
812
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 3.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 0.1/100 · LOW

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

PR Review Velocity Impact 4.0/100 · LOW

Which changes need focused human review? 812 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 2MEDIUM 5LOW 805

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 812 distinct pattern matches across 11 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 Block777 hits · 740 pts
SeverityFileLineSnippetContext
LOW.sai.json261 "cmake": "-DLWS_WITH_SECURE_STREAMS=1 -DLWS_WITH_SECURE_STREAMS_PROXY_API=1 -DLWS_WITH_MINIMAL_EXAMPLES=1 -DLWS_WITH_COMMENT
LOW.sai.json401 "cmake": "-DLWS_WITH_SECURE_STREAMS_STATIC_POLICY_ONLY=1 -DLWS_WITH_SECURE_STREAMS_AUTH_SIGV4=1 -DLWS_WITH_SS_DIRECT_COMMENT
LOW.sai.json461 # qpack / jose / cose / ws-pmd targets if it can't see them, soCOMMENT
LOW.sai.json481# "coverity-mbedtls": {COMMENT
LOWCMakeLists.txt1#COMMENT
LOWCMakeLists.txt1481COMMENT
LOWCMakeLists-implied-options.txt1#COMMENT
LOWCMakeLists-implied-options.txt21# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGSCOMMENT
LOWtest-apps/CMakeLists.txt1#COMMENT
LOWtest-apps/CMakeLists.txt21# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGSCOMMENT
LOWtest-apps/test-server.c21#include <libwebsockets.h>COMMENT
LOWtest-apps/test-client.c21#include "lws_config.h"COMMENT
LOWplugin-standalone/protocol_example_standalone.c21 * "example-standalone-protocol", to show how to build protocol pluginsCOMMENT
LOWwin32port/win32helpers/gettimeofday.h1#ifndef _GET_TIME_OF_DAY_HCOMMENT
LOWwin32port/dirent/dirent-win32.h21/*COMMENT
LOWwin32port/dirent/dirent-win32.h41#define _DIRENT_HAVE_D_TYPECOMMENT
LOWwin32port/dirent/dirent-win32.h61/* Character device bit */COMMENT
LOWwin32port/dirent/dirent-win32.h81/* Write permission */COMMENT
LOWwin32port/dirent/dirent-win32.h101/* Link */COMMENT
LOWwin32port/dirent/dirent-win32.h121/* Execute user permission */COMMENT
LOWwin32port/dirent/dirent-win32.h141/* Read others permission */COMMENT
LOWwin32port/dirent/dirent-win32.h161# define FILENAME_MAX MAX_PATHCOMMENT
LOWwin32port/dirent/dirent-win32.h181/*COMMENT
LOWwin32port/dirent/dirent-win32.h201#endifCOMMENT
LOWwin32port/zlib/zutil.h21COMMENT
LOWwin32port/zlib/zutil.h61#elseCOMMENT
LOWwin32port/zlib/zutil.h81# if defined(__TURBOC__) || defined(__BORLANDC__)COMMENT
LOWwin32port/zlib/zutil.h101 fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")COMMENT
LOWwin32port/zlib/zutil.h121# define fdopen(fd,mode) NULL /* No fdopen() */COMMENT
LOWwin32port/zlib/zutil.h141# define fdopen(fd,mode) NULL /* No fdopen() */COMMENT
LOWwin32port/zlib/zutil.h181# ifndef HAVE_VSNPRINTFCOMMENT
LOWwin32port/zlib/zutil.h201# if !defined(vsnprintf) && !defined(NO_vsnprintf)COMMENT
LOWwin32port/zlib/zutil.h221 * The __SC__ check is for Symantec.COMMENT
LOWwin32port/zlib/zutil.h241 void ZLIB_INTERNAL zmemzero OF((Bytef* dest, uInt len));COMMENT
LOWwin32port/zlib/inflate.c81 */COMMENT
LOWwin32port/zlib/crc32.c21COMMENT
LOWwin32port/zlib/crc32.c41# if (ULONG_MAX == 0xffffffffUL)COMMENT
LOWwin32port/zlib/zutil.c61#ifdef DEBUGCOMMENT
LOWwin32port/zlib/zutil.c81#endifCOMMENT
LOWwin32port/zlib/zutil.c101# ifdef NO_snprintfCOMMENT
LOWwin32port/zlib/gzguts.h1/* gzguts.h -- zlib internal header definitions for gz* operationsCOMMENT
LOWwin32port/zlib/gzguts.h21#include <stdio.h>COMMENT
LOWwin32port/zlib/gzguts.h41#endifCOMMENT
LOWwin32port/zlib/zlib.h161COMMENT
LOWwin32port/zlib/zlib.h181#define Z_VERSION_ERROR (-6)COMMENT
LOWwin32port/zlib/zconf.h21# define _length_code z__length_codeCOMMENT
LOWwin32port/zlib/zconf.h41# define deflateInit_ z_deflateInit_COMMENT
LOWwin32port/zlib/zconf.h61# define gzeof z_gzeofCOMMENT
LOWwin32port/zlib/zconf.h81# define gzwrite z_gzwriteCOMMENT
LOWwin32port/zlib/zconf.h101# define inflate_table z_inflate_tableCOMMENT
LOWwin32port/zlib/zconf.h121# define uInt z_uIntCOMMENT
LOWwin32port/zlib/zconf.h141#if defined(_WINDOWS) && !defined(WINDOWS)COMMENT
LOWwin32port/zlib/zconf.h161#ifdef SYS16BITCOMMENT
LOWwin32port/zlib/zconf.h181#if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))COMMENT
LOWwin32port/zlib/zconf.h201/* Some Mac compilers merge all .h files incorrectly: */COMMENT
LOWwin32port/zlib/zconf.h241# define OF(args) argsCOMMENT
LOWwin32port/zlib/zconf.h261# endifCOMMENT
LOWwin32port/zlib/zconf.h281# define ZEXTERN extern __declspec(dllexport)COMMENT
LOWwin32port/zlib/zconf.h301# elseCOMMENT
LOWwin32port/zlib/zconf.h321#endifCOMMENT
717 more matches not shown…
Structural Annotation Overuse8 hits · 14 pts
SeverityFileLineSnippetContext
LOWREADMEs/README.crypto-dnssec.md16### Step 1: Create an Unsigned DNS Zone FileCOMMENT
LOWREADMEs/README.crypto-dnssec.md48### Step 2: Generate the Cryptographic KeysCOMMENT
LOWREADMEs/README.crypto-dnssec.md86### Step 3: Extract DS Information for the RegistrarCOMMENT
LOWREADMEs/README.crypto-dnssec.md103### Step 4: Sign the Zone FileCOMMENT
LOW⚡READMEs/README.plugin-sshd-base.md116### Step 0: Build and install libwebsocketsCOMMENT
LOW⚡READMEs/README.plugin-sshd-base.md123### Step 1: make the code available in your appCOMMENT
LOW⚡READMEs/README.plugin-sshd-base.md133### Step 2: define your `struct lws_ssh_ops`COMMENT
LOWREADMEs/README.plugin-sshd-base.md164### Step 3: enable `lws-ssh-base` protocol to a vhost and configure using pvoCOMMENT
AI Slop Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMplugins/protocol_lws_webrtc_mixer/assets/main.js755 // Update Icon (optional, but color change via CSS is robust)COMMENT
MEDIUMfuzz/run.sh56# The same build also provides fast smoke tests of every harness against itsCOMMENT
LOWfuzz/run.sh106# finding); its default of 20 minutes would just use up the sliceCOMMENT
MEDIUMfuzz/gen-dicts.py124# quic: the harness' op bytes, versions, long header first bytes, frameCOMMENT
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHscripts/coverage-report.py44except OSError:CODE
HIGH…-lowlevel/api-tests/api-test-ws-close/proxy-fixture.py73except OSError:CODE
Fake / Example Data7 hits · 7 pts
SeverityFileLineSnippetContext
LOW…gins/protocol_lws_dht_dnssec_monitor/assets/index.html213 <input type="email" id="acme-email" placeholder="admin@example.com">CODE
LOW…s/protocol_lws_acme_client/protocol_lws_acme_client.md198 "email": "admin@example.com",CODE
LOW…xamples-lowlevel/api-tests/api-test-smtp-client/main.c91 .from = "other@example.org",CODE
LOW…xamples-lowlevel/api-tests/api-test-smtp-client/main.c1269 queue_from_to("other@example.org", "reject@example.net") ||CODE
LOW…xamples-lowlevel/api-tests/api-test-smtp-client/main.c1289 queue_from_to("greylist@example.org", "rcpt@example.net");CODE
LOW…xamples-lowlevel/api-tests/api-test-smtp-client/main.c1305 queue_from_to("always451@example.org", "rcpt@example.net");CODE
LOW…-lowlevel/api-tests/api-test-openhitls-acme-csr/main.c173 elements[LWS_TLS_REQ_ELEMENT_EMAIL] = "admin@example.com";CODE
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMfuzz/gen-dicts.py7# This file is made available under the Creative Commons CC0 1.0COMMENT
MEDIUMfuzz/fuzz-quic/gen-seeds.py7# This file is made available under the Creative Commons CC0 1.0COMMENT
Hyper-Verbose Identifiers4 hits · 4 pts
SeverityFileLineSnippetContext
LOW…gins/protocol_lws_dht_dnssec_monitor/assets/monitor.js819function downloadProvisioningBundle(domain, subdomain) {CODE
LOWplugins/protocol_lws_webrtc_mixer/assets/main.js526async function discoverLocalCapabilities() {CODE
LOWinclude/libwebsockets/lws-ws-ext.h85 * typedef lws_extension_callback_function() - Hooks to allow extensions to operateCOMMENT
LOW…-server/minimal-http-server-hls/mount-origin/player.js1163 function ensureSubTrackHiddenRetry() {CODE
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/coverage-report.py34CODE
LOWscripts/coverage-report.py162CODE
LOWscripts/coverage-report.py222CODE
LOW…-lowlevel/api-tests/api-test-ws-close/proxy-fixture.py236CODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWcontrib/lws_ota-manifest.sh3# Usage:COMMENT
LOWfuzz/run.sh5# Usage:COMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWfuzz/gen-dicts.py15CODE
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…-lowlevel/api-tests/api-test-ws-close/proxy-fixture.py205 except Exception as e:CODE