AI Slop Code Risk Monitor

Tencent/MMKV

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

An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, POSIX, and OHOS.

2.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for Tencent/MMKV, a C++ project with 18,767 GitHub stars. SynthScan examined 65,635 lines of code across 424 source files, recording 148 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 2.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.

2.5
Adjusted Signal
2.5
Raw Pattern Score
100%
Time Factor
2026-10-26
Last Push
18.8K
Stars
C++
Language
65.6K
Lines of Code
424
Files
148
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 11.6/100 · LOW

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

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

PR Review Velocity Impact 11.9/100 · LOW

Which changes need focused human review? 148 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 9LOW 139

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 148 distinct pattern matches across 5 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 Block137 hits · 137 pts
SeverityFileLineSnippetContext
LOWPOSIX/CMakeLists.txt1#COMMENT
LOWPOSIX/demo/CMakeLists.txt1#COMMENT
LOWPOSIX/demo/TestRemoveStorage.cpp1// Link the static core so syscall hooks affect only this test executable.COMMENT
LOWPOSIX/demo/TestInterProcessLock.cpp21#include <MMKV/MMKV.h>COMMENT
LOWPOSIX/demo/TestFileCopy.cpp1#undef NDEBUGCOMMENT
LOWPOSIX/demo/demo.cpp21#include <MMKV/MMKV.h>COMMENT
LOWPOSIX/demo/demo.cpp1121// string key = "keyyy";COMMENT
LOWPOSIX/demo/TestSingleKeyIV.cpp1// Exercise single-key overwrites through the public API and inspect theCOMMENT
LOWPOSIX/demo/UnitTest.cpp21#include <MMKV/MMKV.h>COMMENT
LOWPOSIX/golang/CMakeLists.txt1#COMMENT
LOWPOSIX/src/CMakeLists.txt1#COMMENT
LOWCore/MMKVLog.h21#ifndef MMKV_MMKVLOG_HCOMMENT
LOWCore/MMKVLog.h41COMMENT
LOWCore/MMKVLog.h61# endifCOMMENT
LOWCore/MMBuffer.cpp21#define NOMINMAX // undefine max/minCOMMENT
LOWCore/MMKV.h21#ifndef MMKV_MMKV_HCOMMENT
LOWCore/MMKV.h601 // keepSpace: remove all keys but keep the file size not changed, running fasterCOMMENT
LOWCore/MMKV_Android.cpp21#include "MMKV.h"COMMENT
LOWCore/CMakeLists.txt1#COMMENT
LOWCore/MMKV.cpp21#include "CodedInputData.h"COMMENT
LOWCore/MMKV.cpp41#include <cstring>COMMENT
LOWCore/MMKVMetaInfo.hpp101#endifCOMMENT
LOWCore/PBEncodeItem.hpp101#endifCOMMENT
LOWCore/ThreadLock.h21#ifndef MMKV_THREADLOCK_HCOMMENT
LOWCore/MiniPBCoder.cpp21#include "MiniPBCoder.h"COMMENT
LOWCore/MiniPBCoder_OSX.cpp21#include "MiniPBCoder.h"COMMENT
LOWCore/MMKVPredef.h21#ifndef MMKV_SRC_MMKVPREDEF_HCOMMENT
LOWCore/MMKVPredef.h41#endifCOMMENT
LOWCore/MMKVPredef.h61# define MMKV_ANDROIDCOMMENT
LOWCore/MMKVPredef.h81# endifCOMMENT
LOWCore/MMKVPredef.h121# ifndef MMKV_EMBED_ZLIBCOMMENT
LOWCore/MMKVPredef.h281# ifndef likelyCOMMENT
LOWCore/CodedInputDataCrypt.cpp21#include "CodedInputDataCrypt.h"COMMENT
LOWCore/KeyValueHolder.h21#ifndef KeyValueHolder_hppCOMMENT
LOWCore/MMKV_OSX.cpp21#include "MMKVPredef.h"COMMENT
LOWCore/MemoryFile_Linux.cpp21#include "MemoryFile.h"COMMENT
LOWCore/ScopedLock.hpp61#include <type_traits>COMMENT
LOWCore/MMKV_IO.cpp21COMMENT
LOWCore/MMKV_IO.cpp41#include <ctime>COMMENT
LOWCore/MiniPBCoder.h21#ifndef MMKV_MINIPBCODER_HCOMMENT
LOWCore/MemoryFile.cpp21#include "MemoryFile.h"COMMENT
LOWCore/fakeinclude/MMKVCore/ThreadLock.h21#include "../../ThreadLock.h"COMMENT
LOWCore/fakeinclude/MMKVCore/ScopedLock.hpp21#include "../../ScopedLock.hpp"COMMENT
LOWCore/crc32/CMakeLists.txt1#COMMENT
LOWCore/crc32/crc32_armv8.cpp41static inline uint32_t _crc32Wrap(uint32_t crc, const uint8_t *buf, size_t len) {COMMENT
LOWCore/crc32/Checksum.h61// getauxval(AT_HWCAP) in OHOS returns wrong value, we just assume all OHOS device have crc32 instrCOMMENT
LOWCore/crc32/zlib/zconf.h1/* zconf.h -- configuration of the zlib compression libraryCOMMENT
LOWCore/crc32/zlib/zconf.h21#define WINDOWSCOMMENT
LOWCore/crc32/zlib/zconf.h41#define MAXSEG_64KCOMMENT
LOWCore/crc32/zlib/zconf.h61#define STDCCOMMENT
LOWCore/crc32/zlib/zconf.h81#define z_const constCOMMENT
LOWCore/crc32/zlib/zconf.h141COMMENT
LOWCore/crc32/zlib/zconf.h161#define FAR _farCOMMENT
LOWCore/crc32/zlib/zconf.h181#ifdef ZLIB_DLLCOMMENT
LOWCore/crc32/zlib/zconf.h201#define ZEXPORT WINAPICOMMENT
LOWCore/crc32/zlib/zconf.h221COMMENT
LOWCore/crc32/zlib/zconf.h261#endifCOMMENT
LOWCore/crc32/zlib/zconf.h281#define Z_HAVE_UNISTD_HCOMMENT
LOWCore/crc32/zlib/zconf.h301#ifndef Z_SOLOCOMMENT
LOWCore/crc32/zlib/zconf.h321#include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */COMMENT
77 more matches not shown…
Self-Referential Comments7 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMflutter/mmkv_ios/pubspec.yaml28# The following section is specific to Flutter.COMMENT
MEDIUMflutter/mmkv_android/pubspec.yaml28# The following section is specific to Flutter.COMMENT
MEDIUMflutter/mmkv/pubspec.yaml43# The following section is specific to Flutter.COMMENT
MEDIUMflutter/mmkv/example/pubspec.yaml38# The following section is specific to Flutter.COMMENT
MEDIUMflutter/mmkv_ohos/pubspec.yaml32# The following section is specific to Flutter packages.COMMENT
MEDIUMflutter/mmkv_win32/pubspec.yaml27# The following section is specific to Flutter packages.COMMENT
MEDIUMflutter/mmkv_linux/pubspec.yaml27# The following section is specific to Flutter packages.COMMENT
Excessive Try-Catch Wrapping2 hits · 3 pts
SeverityFileLineSnippetContext
LOWScript/dumpJavaSignature.py129 except Exception as e:CODE
MEDIUMScript/dumpJavaSignature.py144 print(f"Error: {e}")CODE
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMflutter/mmkv/example/pubspec.yaml42 # included with your application, so that you can use the icons inCOMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…y/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts27async function addAbilityMonitorCallback(err: any) {CODE