AI Slop Code Risk Monitor

DS-Homebrew/TWiLightMenu

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

DSi Menu replacement for DS/DSi/3DS/2DS

1.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for DS-Homebrew/TWiLightMenu, a C++ project with 4,136 GitHub stars. SynthScan examined 244,627 lines of code across 1364 source files, recording 458 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 1.9 (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.9
Adjusted Signal
1.9
Raw Pattern Score
100%
Time Factor
2026-11-01
Last Push
4.1K
Stars
C++
Language
244.6K
Lines of Code
1.4K
Files
458
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.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 0.4/100 · LOW

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

PR Review Velocity Impact 9.1/100 · LOW

Which changes need focused human review? 458 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 5LOW 453

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 458 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.

Over-Commented Block444 hits · 444 pts
SeverityFileLineSnippetContext
LOWpatch_ndsheader_dsiware.py1# -*- coding: utf8 -*-COMMENT
LOWsettings/bootloader/source/arm9clear.arm.c1#define ARM9COMMENT
LOWsettings/bootloader/source/disc_io.h41COMMENT
LOWsettings/bootloader/source/sdmmc.h1#ifndef __SDMMC_H__COMMENT
LOWsettings/bootloader/source/sdmmc.h21#define REG_SDRESP1 0x0eCOMMENT
LOWsettings/bootloader/source/sdmmc.h41#define REG_SDRESET 0xe0COMMENT
LOWsettings/bootloader/source/sdmmc.h61#define TMIO_STAT0_SIGSTATE_A 0x0400COMMENT
LOWsettings/bootloader/source/sdmmc.h81#define SDMC_ERR_FIFO_OVF 0x00000010COMMENT
LOWsettings/bootloader/source/dmaTwl.h21#define NDMAGCNT_YIELD_CYCLES_16 (5 << 16)COMMENT
LOWsettings/bootloader/source/dmaTwl.h41#define REG_NDMA0FDATA (*(vu32*)0x04004118)COMMENT
LOWsettings/bootloader/source/dmaTwl.h61#define REG_NDMA3DAD (*(vu32*)0x0400415C)COMMENT
LOWsettings/bootloader/source/dmaTwl.h81#define NDMACNT_SRC_MODE_DECREMENT (1 << 13)COMMENT
LOWsettings/bootloader/source/dmaTwl.h101#define NDMACNT_PHYSICAL_COUNT_16384 (14 << 16)COMMENT
LOWsettings/bootloader/source/dmaTwl.h121COMMENT
LOWsettings/bootloader/source/dmaTwl.h141COMMENT
LOWsettings/bootloader/source/fat.c41COMMENT
LOWsettings/bootloader/source/fat.c61//-----------------------------------------------------------------COMMENT
LOWsettings/bootloader/source/boot.c41#include <nds/timers.h>COMMENT
LOWsettings/arm9/include/userpal.h1COMMENT
LOWsettings/arm9/source/language.cpp1#include <nds.h>COMMENT
LOWsettings/arm9/source/twlFlashcard.cpp1#include <nds.h>COMMENT
LOWsettings/arm9/source/settingspage.h1#include <variant>COMMENT
LOWsettings/arm9/source/main.cpp1#include <nds.h>COMMENT
LOWsettings/arm9/source/main.cpp21#include "common/fileCopy.h"COMMENT
LOWsettings/arm9/source/settingsgui.cpp1#include "settingsgui.h"COMMENT
LOWsettings/arm9/source/graphics/fontHandler.cpp1#include "fontHandler.h"COMMENT
LOWsettings/arm9/source/graphics/graphics.cpp1#include "graphics.h"COMMENT
LOWslot1launch/bootloaderAlt/source/card.h41#define REG_CARD_COMMAND ((vu8*)0x040001A8)COMMENT
LOWslot1launch/bootloaderAlt/source/card.h61#define SPI_EEPROM_RDP 0xab // Release from deep power downCOMMENT
LOWslot1launch/bootloaderAlt/source/card.h81COMMENT
LOWslot1launch/bootloaderAlt/source/main.arm7.c21 but WITHOUT ANY WARRANTY; without even the implied warranty ofCOMMENT
LOWslot1launch/bootloaderAlt/source/main.arm7.c41#include <string.h>COMMENT
LOWslot1launch/bootloaderAlt/source/main.arm9.c21 but WITHOUT ANY WARRANTY; without even the implied warranty ofCOMMENT
LOWslot1launch/bootloaderAlt/source/blocks_codec.h1// SPDX-License-Identifier: ZlibCOMMENT
LOWslot1launch/bootloaderAlt/source/blocks_codec.h81#define CDC_CONTROL_CLOCK_PLL_IN_BCLK (1 << 2)COMMENT
LOWslot1launch/bootloaderAlt/source/blocks_codec.h101#define CDC_TOUCHCNT_SAR_ADC_CLOCK_DIV_MASK (3 << 3)COMMENT
LOWslot1launch/bootloaderAlt/source/blocks_codec.h121#define CDC_TOUCHCNT_SAR_ADC_SCAN_PORT (11 << 2)COMMENT
LOWslot1launch/bootloaderAlt/source/blocks_codec.h141#define CDC_TOUCHCNT_SENSE_TIME_3US (2)COMMENT
LOWslot1launch/bootloaderAlt/source/blocks_codec.h161#define CDC_TOUCHCNT_PANEL_VOLTAGE_STABILIZATION_TIME_100US (5)COMMENT
LOWslot1launch/bootloaderAlt/source/blocks_codec.h181#define CDC_TOUCHCNT_DEBOUNCE_TIME_0US (0)COMMENT
LOWslot1launch/bootloaderAlt/source/common.h21COMMENT
LOWslot1launch/bootloaderAlt/source/common.h41#define ERR_HEAD_CRC 0x16COMMENT
LOWslot1launch/bootloader/source/card.h41#define REG_CARD_COMMAND ((vu8*)0x040001A8)COMMENT
LOWslot1launch/bootloader/source/card.h61#define SPI_EEPROM_RDP 0xab // Release from deep power downCOMMENT
LOWslot1launch/bootloader/source/card.h81COMMENT
LOWslot1launch/bootloader/source/dmaTwl.h21#define NDMAGCNT_YIELD_CYCLES_16 (5 << 16)COMMENT
LOWslot1launch/bootloader/source/dmaTwl.h41#define REG_NDMA0FDATA (*(vu32*)0x04004118)COMMENT
LOWslot1launch/bootloader/source/dmaTwl.h61#define REG_NDMA3DAD (*(vu32*)0x0400415C)COMMENT
LOWslot1launch/bootloader/source/dmaTwl.h81#define NDMACNT_SRC_MODE_DECREMENT (1 << 13)COMMENT
LOWslot1launch/bootloader/source/dmaTwl.h101#define NDMACNT_PHYSICAL_COUNT_16384 (14 << 16)COMMENT
LOWslot1launch/bootloader/source/dmaTwl.h121COMMENT
LOWslot1launch/bootloader/source/dmaTwl.h141COMMENT
LOWslot1launch/bootloader/source/main.arm7.c21 but WITHOUT ANY WARRANTY; without even the implied warranty ofCOMMENT
LOWslot1launch/bootloader/source/main.arm7.c41COMMENT
LOWslot1launch/bootloader/source/main.arm9.c21 but WITHOUT ANY WARRANTY; without even the implied warranty ofCOMMENT
LOWslot1launch/bootloader/source/blocks_codec.h1// SPDX-License-Identifier: ZlibCOMMENT
LOWslot1launch/bootloader/source/blocks_codec.h81#define CDC_CONTROL_CLOCK_PLL_IN_BCLK (1 << 2)COMMENT
LOWslot1launch/bootloader/source/blocks_codec.h101#define CDC_TOUCHCNT_SAR_ADC_CLOCK_DIV_MASK (3 << 3)COMMENT
LOWslot1launch/bootloader/source/blocks_codec.h121#define CDC_TOUCHCNT_SAR_ADC_SCAN_PORT (11 << 2)COMMENT
LOWslot1launch/bootloader/source/blocks_codec.h141#define CDC_TOUCHCNT_SENSE_TIME_3US (2)COMMENT
384 more matches not shown…
Decorative Section Separators4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUM7zfile/Virtual Console (3DS, Full)/snemul.cfg190# --------------------------------------COMMENT
MEDIUM7zfile/Virtual Console (3DS, Full)/snemul.cfg192# --------------------------------------COMMENT
MEDIUM7zfile/Virtual Console (DSi or Flashcard)/snemul.cfg190# --------------------------------------COMMENT
MEDIUM7zfile/Virtual Console (DSi or Flashcard)/snemul.cfg192# --------------------------------------COMMENT
Excessive Try-Catch Wrapping6 hits · 7 pts
SeverityFileLineSnippetContext
LOWpatch_ndsheader_dsiware.py83 except Exception as e:CODE
MEDIUMpatch_ndsheader_dsiware.py65def calculate(self, input_data=None):CODE
LOWbooter_fc/flashcart_specifics/dldinoap/dldinoap.py26 except Exception:CODE
LOWbooter_fc/flashcart_specifics/dldinoap/dldinoap.py49 except Exception:CODE
LOWbooter_fc/flashcart_specifics/r4isdhc/r4isdhc.py43 except Exception:CODE
LOWbooter_fc/flashcart_specifics/r4isdhc/r4isdhc.py54 except Exception:CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWresources/pack.py30# Write fileCOMMENT
LOWresources/pack.py39 # Write file listCOMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpatch_ndsheader_dsiware.py13CODE
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOWuniversal/source/lodepng/lodepng.cpp72lodepng source code. Don't forget to remove "static" if you copypaste themCODE