AI Slop Code Risk Monitor

ZLMediaKit/ZLMediaKit

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

WebRTC/RTSP/RTMP/HTTP/HLS/HTTP-FLV/WebSocket-FLV/HTTP-TS/HTTP-fMP4/WebSocket-TS/WebSocket-fMP4/GB28181/SRT/STUN/TURN server and client framework based on C++11

2.0 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for ZLMediaKit/ZLMediaKit, a C++ project with 17,665 GitHub stars. SynthScan examined 158,870 lines of code across 529 source files, recording 296 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 2.0 (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.

2.0
Adjusted Signal
2.0
Raw Pattern Score
100%
Time Factor
2026-10-25
Last Push
17.7K
Stars
C++
Language
158.9K
Lines of Code
529
Files
296
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 8.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

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

Agent Over-Engineering Ratio 1.6/100 · LOW

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

PR Review Velocity Impact 9.6/100 · LOW

Which changes need focused human review? 296 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 1MEDIUM 10LOW 285

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 296 distinct pattern matches across 12 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 Block245 hits · 234 pts
SeverityFileLineSnippetContext
LOWZLMVersion.h.ini1#ifndef __GIT_VERSION_H__COMMENT
LOWCMakeLists.txt1# MIT LicenseCOMMENT
LOWgolang/zlmediakit/mk_common.go121}COMMENT
LOWext-codec/VP9Rtp.cpp61 hasScalabilityStructure ? 'V' : ' ',COMMENT
LOWext-codec/VP9Rtp.cpp81// P,F: | P_DIFF |N| (CONDITIONALLY REQUIRED) - up to 3 timesCOMMENT
LOWext-codec/CMakeLists.txt1# MIT LicenseCOMMENT
LOWext-codec/H264Rtp.cpp281COMMENT
LOWext-codec/H264.cpp321 // Find the next frameCOMMENT
LOWext-codec/MP2A.cpp21COMMENT
LOWtests/test_ps.cpp1#include "Common/config.h"COMMENT
LOWtests/CMakeLists.txt1# MIT LicenseCOMMENT
LOWtests/CMakeLists.txt21# SOFTWARE.COMMENT
LOWtests/test_rtp_pcap.cpp1#include "Common/config.h"COMMENT
LOWtests/test_sortor.cpp161 // 模拟乱序,count是连续倒序次数,最多连续乱序8次 [AUTO-TRANSLATED:76bd8e43]COMMENT
LOWtests/test_pusherMp4.cpp141 // You can use the mp4 file generated by test_serverCOMMENT
LOWtests/test_bench_push.cpp1/*COMMENT
LOWtests/test_server.cpp21COMMENT
LOWtests/test_server.cpp241 loadIniConfig();COMMENT
LOWtests/test_server.cpp261 // hls address: http://127.0.0.1/live/0/hls.m3u8COMMENT
LOWtests/test_httpClient.cpp81 ///////////////////////////////http get///////////////////////COMMENT
LOWserver/pyinvoker.cpp1#if defined(ENABLE_PYTHON)COMMENT
LOWserver/Process.cpp21COMMENT
LOWserver/Process.cpp301 // windows下目前没有比较好的手段往子进程发送SIGTERM或信号 [AUTO-TRANSLATED:cd32ad25]COMMENT
LOWserver/CMakeLists.txt1# MIT LicenseCOMMENT
LOWserver/WebApi.cpp21COMMENT
LOWserver/WebApi.cpp41#include "FFmpegSource.h"COMMENT
LOWserver/WebApi.cpp61#include "../webrtc/WebRtcSignalingSession.h"COMMENT
LOWserver/WebHook.cpp761 * kBroadcastHttpAccess event trigger mechanismCOMMENT
LOWserver/VideoStack.cpp1#if defined(ENABLE_VIDEOSTACK) && defined(ENABLE_X264) && defined(ENABLE_FFMPEG)COMMENT
LOWserver/System.cpp21#include <Windows.h>COMMENT
LOWserver/pyinvoker.h1COMMENT
LOWserver/ShellParser.h21// - Whitespace splitting (space, tab, newline)COMMENT
LOWserver/main.cpp21#include "Common/config.h"COMMENT
LOWserver/main.cpp441 // https服务器,端口默认443 [AUTO-TRANSLATED:24999616]COMMENT
LOWserver/WebApi.h181};COMMENT
LOWsrt/SrtTransport.hpp1#ifndef ZLMEDIAKIT_SRT_TRANSPORT_HCOMMENT
LOWsrt/CMakeLists.txt1# MIT LicenseCOMMENT
LOWsrt/SrtTransport.cpp1#include "Util/onceToken.h"COMMENT
LOWsrt/Common.hpp1#ifndef ZLMEDIAKIT_SRT_COMMON_HCOMMENT
LOW.github/workflows/docker_py.yml81 # transparency data even for private images, pass --force to cosign below.COMMENT
LOW.github/workflows/docker.yml81 # https://github.com/sigstore/cosignCOMMENT
LOWapi/CMakeLists.txt1# MIT LicenseCOMMENT
LOWapi/include/mk_events_objects.h21///////////////////////////////////////////RecordInfo/////////////////////////////////////////////COMMENT
LOWapi/include/mk_events_objects.h41// Folder pathCOMMENT
LOWapi/include/mk_events_objects.h61#define mk_mp4_info_get_file_size mk_record_info_get_file_sizeCOMMENT
LOWapi/include/mk_events_objects.h81// Parser::Url(), get the HTTP access url (excluding the parameters after ?)COMMENT
LOWapi/include/mk_events_objects.h121COMMENT
LOWapi/include/mk_transcode.h21COMMENT
LOWapi/include/mk_transcode.h281#ifdef __cplusplusCOMMENT
LOWapi/include/mk_mediakit.h21#include "mk_events.h"COMMENT
LOWapi/include/mk_tcp.h61COMMENT
LOWapi/include/mk_common.h21#if defined(_WIN32) && defined(_MSC_VER)COMMENT
LOWapi/include/mk_common.h41#endifCOMMENT
LOWapi/include/mk_common.h61COMMENT
LOWapi/include/mk_common.h81 // File log save days, set to 0 to disable log fileCOMMENT
LOWapi/include/mk_util.h241 */COMMENT
LOWapi/include/mk_frame.h21// cppCOMMENT
LOWapi/source/mk_webrtc.cpp21#include "Thread/WorkThreadPool.h"COMMENT
LOWapi/source/mk_recorder.cpp121 // 默认解复用mp4不生成mp4 [AUTO-TRANSLATED:11f2dcee]COMMENT
LOWapi/tests/CMakeLists.txt1# MIT LicenseCOMMENT
185 more matches not shown…
Hyper-Verbose Identifiers27 hits · 28 pts
SeverityFileLineSnippetContext
LOWtests/integration/test_av1_rtmp_startup.py22 def test_both_ports_are_distinct_and_reserved(self):CODE
LOWtests/integration/test_av1_rtmp_startup.py30 def test_failed_bind_retries_with_fresh_config(self):CODE
LOWtests/integration/test_av1_rtmp_startup.py56 def test_failed_readiness_stops_process_before_retry(self):CODE
LOWtests/integration/test_av1_rtmp_startup.py69 def test_startup_failure_is_bounded(self):CODE
LOWwww/ZLMRTCClient.js870 function shimSenderReceiverGetStats(window) {CODE
LOWwww/ZLMRTCClient.js978 function shimAddTrackRemoveTrackWithNative(window) {CODE
LOWwww/ZLMRTCClient.js2409 function isActionAllowedInSignalingState(action, type, signalingState) {CODE
LOWwww/ZLMRTCClient.js2459 function addTrackToStreamAndFireEvent(track, stream) {CODE
LOWwww/ZLMRTCClient.js2465 function removeTrackFromStreamAndFireEvent(track, stream) {CODE
LOWwww/ZLMRTCClient.js4887 function shimTrackEventTransceiver(window) {CODE
LOWwww/ZLMRTCClient.js5327 function shimAddIceCandidateNullOrEmpty(window, browserDetails) {CODE
LOWwww/ZLMRTCClient.js5632 function isVideoConstrainsForScreenCast(constraints) {CODE
LOWwww/ZLMRTCClient.js7184 function throwIfCancellationRequested(config) {CODE
LOWwww/ZLMRTCClient.js7500 this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {CODE
LOW⚡www/swagger/swagger-ui.js1!function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"fuCODE
LOW⚡www/swagger/swagger-ui-es-bundle-core.js2import*as e from"base64-js";import*as t from"ieee754";import*as r from"react";import*as n from"redux";import*as a from"iCODE
LOWwww/swagger/swagger-ui-standalone-preset.js2!function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"fuCODE
LOWwww/webrtc/ZLMRTCClient.js870 function shimSenderReceiverGetStats(window) {CODE
LOWwww/webrtc/ZLMRTCClient.js978 function shimAddTrackRemoveTrackWithNative(window) {CODE
LOWwww/webrtc/ZLMRTCClient.js2409 function isActionAllowedInSignalingState(action, type, signalingState) {CODE
LOWwww/webrtc/ZLMRTCClient.js2459 function addTrackToStreamAndFireEvent(track, stream) {CODE
LOWwww/webrtc/ZLMRTCClient.js2465 function removeTrackFromStreamAndFireEvent(track, stream) {CODE
LOWwww/webrtc/ZLMRTCClient.js4887 function shimTrackEventTransceiver(window) {CODE
LOWwww/webrtc/ZLMRTCClient.js5327 function shimAddIceCandidateNullOrEmpty(window, browserDetails) {CODE
LOWwww/webrtc/ZLMRTCClient.js5632 function isVideoConstrainsForScreenCast(constraints) {CODE
LOWwww/webrtc/ZLMRTCClient.js7184 function throwIfCancellationRequested(config) {CODE
LOWwww/webrtc/ZLMRTCClient.js7500 this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {CODE
Decorative Section Separators6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMCMakeLists.txt520# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt522# ----------------------------------------------------------------------------COMMENT
MEDIUMserver/WebApi.cpp236// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMserver/WebApi.cpp239// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/Http/HttpBody.cpp403// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/Http/HttpBody.cpp405// ─────────────────────────────────────────────────────────────────────────────COMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMwww/ZLMRTCClient.js4513 // This is an ugly hack, but at the same time is way more robust thanCOMMENT
MEDIUMwww/webrtc/ZLMRTCClient.js4513 // This is an ugly hack, but at the same time is way more robust thanCOMMENT
Fake / Example Data4 hits · 6 pts
SeverityFileLineSnippetContext
LOW⚡www/swagger/swagger-ui.js1!function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"fuCODE
LOW⚡www/swagger/swagger-ui.js1!function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"fuCODE
LOW⚡www/swagger/swagger-ui-es-bundle-core.js2import*as e from"base64-js";import*as t from"ieee754";import*as r from"react";import*as n from"redux";import*as a from"iCODE
LOW⚡www/swagger/swagger-ui-es-bundle-core.js2import*as e from"base64-js";import*as t from"ieee754";import*as r from"react";import*as n from"redux";import*as a from"iCODE
Slop Phrases2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMconf/config.ini737# Assuming your pull source format is not H264, H265, or AAC, you can use direct proxy mode to support RTSP proxying.COMMENT
MEDIUMsrc/Rtcp/RtcpFCI.h38// The number of lost macroblocks, in scan order as discussed above.COMMENT
Deep Nesting5 hits · 5 pts
SeverityFileLineSnippetContext
LOWtools/openapi/generates.py70CODE
LOWtools/openapi/generates.py102CODE
LOWtests/integration/test_av1_rtmp_startup.py22CODE
LOWtests/integration/av1_rtmp_metadata.py32CODE
LOWtests/integration/av1_rtmp_metadata.py71CODE
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtests/integration/av1_rtmp_metadata.py53except (OSError, ValueError):CODE
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWwebrtc/DtlsTransport.cpp420 // NOTE: This function returns 0 on success.COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWconf/config.ini540# Set this to 0 to improve compatibility with legacy RTSP devices that do not support `stap-a`.COMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtools/openapi/generates.py123def update_options(version: str, secret: str) -> None:CODE
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/integration/av1_rtmp_metadata.py183 except Exception:CODE