AI Slop Code Risk Monitor

bytedance/xgplayer

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

A HTML5 video player with a parser that saves traffic

0.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for bytedance/xgplayer, a JavaScript project with 9,309 GitHub stars. SynthScan examined 83,873 lines of code across 520 source files, recording 40 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 0.5 (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.5
Adjusted Signal
0.5
Raw Pattern Score
100%
Time Factor
2026-10-29
Last Push
9.3K
Stars
JavaScript
Language
83.9K
Lines of Code
520
Files
40
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 2.4/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 40 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.5/100 · LOW

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

PR Review Velocity Impact 2.4/100 · LOW

Which changes need focused human review? 40 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 40

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 40 distinct pattern matches across 2 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 Block31 hits · 31 pts
SeverityFileLineSnippetContext
LOWjest.config.js41 coverageProvider: 'v8',COMMENT
LOWjest.config.js61 // A path to a module which exports an async function that is triggered once after all test suitesCOMMENT
LOWjest.config.js101 // Run tests from one or more projectsCOMMENT
LOWjest.config.js121COMMENT
LOWjest.config.js161 '**/packages/xgplayer-subtitles/__tests__/**/*.(spec|test).js',COMMENT
LOWjest.config.js201 'node_modules/(?!crypto-es/.*)'COMMENT
LOWpackages/xgplayer-hls/__tests__/parser.spec.js141COMMENT
LOWpackages/xgplayer-hls/__tests__/parser.spec.js221 })COMMENT
LOWpackages/xgplayer-hls/__tests__/parser.spec.js241 #commentCOMMENT
LOWpackages/xgplayer-mp4-loader/README.md41COMMENT
LOWpackages/xgplayer/src/index.scss1@import "./style/index";COMMENT
LOWpackages/xgplayer/src/index.scss21// @import "./plugins/rotate/index";COMMENT
LOWpackages/xgplayer/src/plugins/controls/index.scss181 .controls-follow {COMMENT
LOWpackages/xgplayer/src/plugins/common/thumbnail.scss1COMMENT
LOWpackages/xgplayer/src/plugins/common/thumbnail.scss21// height: 67px;COMMENT
LOWpackages/xgplayer/src/plugins/mobile/index.js281 const touche = e.touches && e.touches.length > 0 ? e.touches[e.touches.length - 1] : eCOMMENT
LOWpackages/xgplayer/src/plugin/basePlugin.js121 // get: () => {COMMENT
LOWpackages/xgplayer/src/plugin/plugin.js301 returnCOMMENT
LOWpackages/xgplayer/src/style/common.scss381 right: $miniMargin;COMMENT
LOWpackages/xgplayer/src/style/common/svg-url.scss41COMMENT
LOWpackages/xgplayer-music/src/preset.js41 // {COMMENT
LOWpackages/xgplayer-transmuxer/src/codec/vvc.js1// import { avc } from 'xgplayer-helper-codec'COMMENT
LOWpackages/xgplayer-transmuxer/src/mp4/mp4.js841 track.config[7] = (track.sampleRate) & 0xFFCOMMENT
LOWpackages/xgplayer-transmuxer/src/mp4/mp4.js861 // (sampleRate >>> 8) & 0xFF,COMMENT
LOWpackages/xgplayer-dash/src/media/eme.js41 // persistentState: 'required',COMMENT
LOWpackages/xgplayer-dash/src/media/eme.js101 // new XHR({url: licenseServerUri, method: 'POST', data: ev.message}).then((res) => {COMMENT
LOWpackages/xgplayer-dash/src/media/eme.js121 //COMMENT
LOWpackages/xgplayer-shaka/src/index.js161 // // content.push(isNaN(index) ? 'Auto' : element.height + 'P');COMMENT
LOWpackages/xgplayer-shaka/src/index.js181 // } else {COMMENT
LOWpackages/xgplayer-shaka/src/index.js201 // // console.log(li.innerHTML);COMMENT
LOWpackages/xgplayer-shaka/src/index.js221 // self.util.removeClass(ul, 'xgplayer-definition-active')COMMENT
Hyper-Verbose Identifiers9 hits · 9 pts
SeverityFileLineSnippetContext
LOWpackages/xgplayer-hls/__tests__/mse-airplay.spec.js55 function WebKitPlaybackTargetAvailabilityEvent() {}CODE
LOW…s/xgplayer-streaming-shared/src/net/dynamic-timeout.js6export function getSharedDynamicTimeoutIns(dynamicTimeoutConfig) {CODE
LOWpackages/xgplayer-streaming-shared/src/net/helper.js57export function getRangeResponseMismatchReason (requestRange, contentRangeValue, contentLengthValue) {CODE
LOWpackages/xgplayer-cast/__tests__/airplay.spec.js51 window.WebKitPlaybackTargetAvailabilityEvent = function WebKitPlaybackTargetAvailabilityEvent() {}CODE
LOW…ckages/xgplayer-cast/src/platform/chromecast-config.ts6export function normalizeChromecastConfig(input: any): ChromecastConfig {CODE
LOWpackages/xgplayer-cast/src/platform/cast-media.ts164function getMediaElementCandidates(player: CastPlayer) {CODE
LOWpackages/xgplayer-cast/src/platform/cast-media.ts191function getStreamingPluginCandidates(player: CastPlayer) {CODE
LOW…kages/xgplayer-cast/src/platform/cast-handoff-state.ts112export function getConfiguredCastAutoplay(config: CastPlayer) {CODE
LOWpackages/xgplayer-subtitles/src/xss/safeInlineTags.js8export function normalizeSafeInlineTagName (tag) {CODE