AI Slop Code Risk Monitor

jsdom/jsdom

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

A JavaScript implementation of various web standards, for use with Node.js

1.4 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for jsdom/jsdom, a JavaScript project with 21,742 GitHub stars. SynthScan examined 180,046 lines of code across 1172 source files, recording 245 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 1.4 (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.4
Adjusted Signal
1.4
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
21.7K
Stars
JavaScript
Language
180.0K
Lines of Code
1.2K
Files
245
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 6.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.7/100 · LOW

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

Agent Over-Engineering Ratio 5.0/100 · LOW

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

PR Review Velocity Impact 6.9/100 · LOW

Which changes need focused human review? 245 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 1HIGH 0MEDIUM 1LOW 243

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 245 distinct pattern matches across 6 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.

Hyper-Verbose Identifiers197 hits · 184 pts
SeverityFileLineSnippetContext
LOWbenchmark/forms/form-owner.js48 function createExplicitOwnerFixture(CODE
LOWbenchmark/forms/form-owner.js75 function createFormOperationsFixture(controlCount, outsideElementCount, external) {CODE
LOWbenchmark/style/stylesheet-scaling.js99 function createNewCustomStylesheetText() {CODE
LOWtest/web-platform-tests/wpt-server.js136function terminateSubprocessOnError(err) {CODE
LOWtest/web-platform-tests/run-single-wpt.js18function unexpectedPassingTestMessage(expectationsFilename) {CODE
LOWtest/api/options-run-scripts.js174 function createJSDOMWithParsedHandlers() {CODE
LOWtest/api/options-run-scripts.js331 function createJSDOMWithParsedHandlers() {CODE
LOWtest/api/options-run-scripts.js487function testEventHandlersFromTheOutside(runScriptsOptionValue) {CODE
LOWtest/api/css-parsing-errors.js187function cssParsingErrorRecordingVC() {CODE
LOWtest/api/resources-dispatcher.js223function createCapturingDispatcher() {CODE
LOWtest/api/helpers/servers.js41function enablePromisifiedServerDestroy(server) {CODE
LOWtest/api/helpers/resources.js63function resourceLoadingErrorRecordingVC() {CODE
LOWtest/to-port-to-wpts/level3/xpath.js407 function testDescendantDfsAndSelfBase(test, andSelf) {CODE
LOWtest/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js8631function addToPrefiltersOrTransports( structure ) {CODE
LOWtest/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js8663function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {CODE
LOWlib/jsdom/living/css/serialize.js70function serializeArbitraryDeclaration(declaration) {CODE
LOWlib/jsdom/living/css/serialize.js117function serializeAttributeSelector({ value }) {CODE
LOWlib/jsdom/living/css/serialize.js152function serializeBaselinePosition([place]) {CODE
LOWlib/jsdom/living/css/serialize.js317function serializeCalculationFunction({ value }) {CODE
LOWlib/jsdom/living/css/serialize.js365function serializeColorInterpolationMethod([, method]) {CODE
LOWlib/jsdom/living/css/serialize.js716function getDefaultGradientInterpolation(stops) {CODE
LOWlib/jsdom/living/css/serialize.js755function serializeConicGradientSyntax([configuration, , stops]) {CODE
LOWlib/jsdom/living/css/serialize.js791function serializeCustomFunctionDefinition(definition) {CODE
LOWlib/jsdom/living/css/serialize.js923function serializeIdentifierFromPrimitive(value) {CODE
LOWlib/jsdom/living/css/serialize.js968function serializeKeyframeSelector(selector) {CODE
LOWlib/jsdom/living/css/serialize.js1010function serializeLinearGradientSyntax([configuration, , stops]) {CODE
LOWlib/jsdom/living/css/serialize.js1039function serializeNumberFromPrimitive(value) {CODE
LOWlib/jsdom/living/css/serialize.js1136function serializeRadialGradientSyntax([configuration, , stops]) {CODE
LOWlib/jsdom/living/css/serialize.js1216function serializeRelativeControlPoint(point) {CODE
LOWlib/jsdom/living/css/serialize.js1257function scalePercentagesToNumbers(value) {CODE
LOWlib/jsdom/living/css/serialize.js1349function serializeStepEasingFunction({ value }) {CODE
LOWlib/jsdom/living/css/serialize.js1371function serializeStringFromPrimitive(value) {CODE
LOWlib/jsdom/living/css/serialize.js1424function serializeURLFromPrimitive(value) {CODE
LOWlib/jsdom/living/css/serialize.js1452function serializePageSelectorList(selectors) {CODE
LOWlib/jsdom/living/css/serialize.js1845function representAnimationRangeLonghand(range, origin) {CODE
LOWlib/jsdom/living/css/serialize.js1858function representAnimationRangeValue(start, end, initial) {CODE
LOWlib/jsdom/living/css/serialize.js1978function representBackgroundPosition(declarations) {CODE
LOWlib/jsdom/living/css/serialize.js1988function representBackgroundRepeat(declarations) {CODE
LOWlib/jsdom/living/css/serialize.js2071function representCommonLonghandValue(declarations) {CODE
LOWlib/jsdom/living/css/serialize.js2522function representHyphenateLimitChars(limit) {CODE
LOWlib/jsdom/living/css/serialize.js2535function representImageOrientation(orientation) {CODE
LOWlib/jsdom/living/css/serialize.js2738function representOverflowClipMargin(margin) {CODE
LOWlib/jsdom/living/css/serialize.js3039function representTextDecorationSkip(declarations, longhands) {CODE
LOWlib/jsdom/living/css/serialize.js3052function representTextDecorationSkipSelf(lines) {CODE
LOWlib/jsdom/living/css/serialize.js3059function representTextEmphasisPosition(position) {CODE
LOWlib/jsdom/living/css/serialize.js3247function representViewTimelineInset(inset) {CODE
LOWlib/jsdom/living/css/serialize.js3261function representWithoutInitialValues(values, longhands, preserve) {CODE
LOWlib/jsdom/living/css/serialize.js3278function representDeclarationValue({ computed, name, pending, shorthand, source, value }) {CODE
LOWlib/jsdom/living/css/serialize.js3644function serializeDeclarationValue(declaration) {CODE
LOWlib/jsdom/living/css/serialize.js3689function serializeDeclarationBlock(declarations, shorthands, serializeSpecifiedValue) {CODE
LOWlib/jsdom/living/css/CSSImportRule-impl.js11function isMatchingImportConditions(rule, globalObject) {CODE
LOWlib/jsdom/living/css/resolve.js383function collectStyleSheetCandidates(element, sheet, context, candidates) {CODE
LOWlib/jsdom/living/css/resolve.js577function getDeclarationSpecificity(declaration) {CODE
LOWlib/jsdom/living/css/resolve.js791function createSubstitutionContext(property) {CODE
LOWlib/jsdom/living/css/resolve.js820function countInvalidSubstitutions(value, styleComparisonsOnly = false) {CODE
LOWlib/jsdom/living/css/resolve.js1346function getAnimationTimelineInterpolationProgress() {CODE
LOWlib/jsdom/living/css/resolve.js1375function getComputedCalculationFunction(fn, element, property) {CODE
LOWlib/jsdom/living/css/resolve.js1739function getComputedNumericContext(value, property, element) {CODE
LOWlib/jsdom/living/css/resolve.js1830function getComputedFilterFunction(filter, property, element) {CODE
LOWlib/jsdom/living/css/resolve.js1868function getComputedComponentValue(value, property, element) {CODE
137 more matches not shown…
Over-Commented Block32 hits · 30 pts
SeverityFileLineSnippetContext
LOW…upstream/hr-time/performance-tojson-dont-upstream.html21 // assert_equals(typeof(timing.toJSON), 'function');COMMENT
LOW…upstream/hr-time/performance-tojson-dont-upstream.html41 // 'responseEnd',COMMENT
LOW…upstream/hr-time/performance-tojson-dont-upstream.html61 // const navigationJSON = navigation.toJSON();COMMENT
LOWtest/to-port-to-wpts/level3/xpath.js861 // variables, but DOM 3 XPath does not provide any facility to set variables.COMMENT
LOWtest/to-port-to-wpts/level3/xpath.js881 // exports.NIST_coreFunction020 = function(test) {COMMENT
LOWtest/to-port-to-wpts/level3/xpath.js901 // xpath.evaluate("concat($variable1,$variable2,$variable3)", document, document));COMMENT
LOWtest/to-port-to-wpts/level3/xpath.js921 // // set $variable2 = "cut this"COMMENT
LOWtest/to-port-to-wpts/level3/xpath.js941 // const document = (new JSDOM("<doc/>", { contentType: "application/xml" })).window.document;COMMENT
LOWtest/to-port-to-wpts/level3/xpath.js961 //COMMENT
LOWtest/to-port-to-wpts/level3/xpath.js981 // };COMMENT
LOWtest/to-port-to-wpts/level3/xpath.js1681COMMENT
LOWtest/to-port-to-wpts/level3/xpath.js1701 // var child3 = document.createElement("child3");COMMENT
LOWtest/to-port-to-wpts/level3/xpath.js1941 author2.appendChild(bibliography2);COMMENT
LOWtest/to-port-to-wpts/level3/xpath.js1961 // var child2 = document.createElement("child2");COMMENT
LOWtest/to-port-to-wpts/level3/xpath.js2081 domTestHelper.arrayEqual(assert, [child1, child2, child3],COMMENT
LOWtest/to-port-to-wpts/level3/xpath.js2101 // child2.appendChild(text);COMMENT
LOWtest/to-port-to-wpts/level3/xpath.js2141 // exports.NIST_expression026 = function(test) {COMMENT
LOWtest/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js1201 if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) {COMMENT
LOWtest/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js9641 // X-Requested-With headerCOMMENT
LOWlib/jsdom/living/css/serialize.js2061// https://drafts.csswg.org/css-gaps-1/#propdef-row-rule-inset-startCOMMENT
LOWlib/jsdom/living/css/parse/postprocess.js441COMMENT
LOWlib/jsdom/living/css/parse/postprocess.js1641}COMMENT
LOWlib/jsdom/living/css/parse/preprocess.js61}COMMENT
LOWlib/jsdom/living/css/values/pseudos.js261// https://drafts.csswg.org/css-forms-1/#selectordef-picker-iconCOMMENT
LOWlib/jsdom/living/css/properties/shorthands.js141];COMMENT
LOWlib/jsdom/living/nodes/HTMLInputElement-impl.js1001 if (!this._validity) {COMMENT
LOWlib/jsdom/living/nodes/Document-impl.js161 mouseevents: MouseEvent,COMMENT
LOWlib/jsdom/living/nodes/Document-impl.js341COMMENT
LOWlib/jsdom/living/file-api/Blob-impl.js21 this.type = this.type.toLowerCase();COMMENT
LOWlib/jsdom/living/xhr/xhr-sync-worker.js1"use strict";COMMENT
LOWlib/jsdom/living/helpers/create-event-accessor.js1"use strict";COMMENT
LOWlib/jsdom/browser/parser/html.js281}COMMENT
Fake / Example Data10 hits · 15 pts
SeverityFileLineSnippetContext
LOW⚡lib/jsdom/living/css/match/selector.js86 email: ["autocomplete", "placeholder", "readonly", "required"],CODE
LOW⚡lib/jsdom/living/css/match/selector.js91 number: ["autocomplete", "max", "min", "placeholder", "readonly", "required"],CODE
LOW⚡lib/jsdom/living/css/match/selector.js92 password: ["autocomplete", "placeholder", "readonly", "required"],CODE
LOW⚡lib/jsdom/living/css/match/selector.js96 search: ["autocomplete", "placeholder", "readonly", "required"],CODE
LOW⚡lib/jsdom/living/css/match/selector.js98 tel: ["autocomplete", "placeholder", "readonly", "required"],CODE
LOW⚡lib/jsdom/living/css/match/selector.js99 text: ["autocomplete", "placeholder", "readonly", "required"],CODE
LOW⚡lib/jsdom/living/css/match/selector.js101 url: ["autocomplete", "placeholder", "readonly", "required"],CODE
LOW⚡lib/jsdom/living/css/match/selector.js768 inputTypeAttributes[element.type].includes("placeholder") &&CODE
LOW⚡lib/jsdom/living/css/match/selector.js770 element.hasAttributeNS(null, "placeholder")CODE
LOW⚡lib/jsdom/living/css/match/selector.js774 return element.value === "" && element.hasAttributeNS(null, "placeholder");CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALtest/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js8058jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {CODE
TODO Padding4 hits · 6 pts
SeverityFileLineSnippetContext
LOWlib/jsdom/living/nodes/HTMLScriptElement-impl.js117 // TODO: implement modules, and then change the check to `type === null`.COMMENT
LOWlib/jsdom/living/nodes/HTMLScriptElement-impl.js138 // TODO: implement nomodule here, **but only after we support modules**.COMMENT
LOWlib/jsdom/living/nodes/Document-impl.js358 // TODO: implement, with tests for all code paths, the spec's behavior.COMMENT
LOWlib/jsdom/browser/Window.js530 // TODO: implement timer nesting level behavior.COMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtest/to-port-to-wpts/jquery-fixtures/jquery-1.11.0.js10292// understands anonymous AMD modules. A named AMD is safest and most robustCOMMENT