An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, POSIX, and OHOS.
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 146 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 3 finding(s).
Which changes need focused human review? 148 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | POSIX/CMakeLists.txt | 1 | # | COMMENT |
| LOW | POSIX/demo/CMakeLists.txt | 1 | # | COMMENT |
| LOW | POSIX/demo/TestRemoveStorage.cpp | 1 | // Link the static core so syscall hooks affect only this test executable. | COMMENT |
| LOW | POSIX/demo/TestInterProcessLock.cpp | 21 | #include <MMKV/MMKV.h> | COMMENT |
| LOW | POSIX/demo/TestFileCopy.cpp | 1 | #undef NDEBUG | COMMENT |
| LOW | POSIX/demo/demo.cpp | 21 | #include <MMKV/MMKV.h> | COMMENT |
| LOW | POSIX/demo/demo.cpp | 1121 | // string key = "keyyy"; | COMMENT |
| LOW | POSIX/demo/TestSingleKeyIV.cpp | 1 | // Exercise single-key overwrites through the public API and inspect the | COMMENT |
| LOW | POSIX/demo/UnitTest.cpp | 21 | #include <MMKV/MMKV.h> | COMMENT |
| LOW | POSIX/golang/CMakeLists.txt | 1 | # | COMMENT |
| LOW | POSIX/src/CMakeLists.txt | 1 | # | COMMENT |
| LOW | Core/MMKVLog.h | 21 | #ifndef MMKV_MMKVLOG_H | COMMENT |
| LOW | Core/MMKVLog.h | 41 | COMMENT | |
| LOW | Core/MMKVLog.h | 61 | # endif | COMMENT |
| LOW | Core/MMBuffer.cpp | 21 | #define NOMINMAX // undefine max/min | COMMENT |
| LOW | Core/MMKV.h | 21 | #ifndef MMKV_MMKV_H | COMMENT |
| LOW | Core/MMKV.h | 601 | // keepSpace: remove all keys but keep the file size not changed, running faster | COMMENT |
| LOW | Core/MMKV_Android.cpp | 21 | #include "MMKV.h" | COMMENT |
| LOW | Core/CMakeLists.txt | 1 | # | COMMENT |
| LOW | Core/MMKV.cpp | 21 | #include "CodedInputData.h" | COMMENT |
| LOW | Core/MMKV.cpp | 41 | #include <cstring> | COMMENT |
| LOW | Core/MMKVMetaInfo.hpp | 101 | #endif | COMMENT |
| LOW | Core/PBEncodeItem.hpp | 101 | #endif | COMMENT |
| LOW | Core/ThreadLock.h | 21 | #ifndef MMKV_THREADLOCK_H | COMMENT |
| LOW | Core/MiniPBCoder.cpp | 21 | #include "MiniPBCoder.h" | COMMENT |
| LOW | Core/MiniPBCoder_OSX.cpp | 21 | #include "MiniPBCoder.h" | COMMENT |
| LOW | Core/MMKVPredef.h | 21 | #ifndef MMKV_SRC_MMKVPREDEF_H | COMMENT |
| LOW | Core/MMKVPredef.h | 41 | #endif | COMMENT |
| LOW | Core/MMKVPredef.h | 61 | # define MMKV_ANDROID | COMMENT |
| LOW | Core/MMKVPredef.h | 81 | # endif | COMMENT |
| LOW | Core/MMKVPredef.h | 121 | # ifndef MMKV_EMBED_ZLIB | COMMENT |
| LOW | Core/MMKVPredef.h | 281 | # ifndef likely | COMMENT |
| LOW | Core/CodedInputDataCrypt.cpp | 21 | #include "CodedInputDataCrypt.h" | COMMENT |
| LOW | Core/KeyValueHolder.h | 21 | #ifndef KeyValueHolder_hpp | COMMENT |
| LOW | Core/MMKV_OSX.cpp | 21 | #include "MMKVPredef.h" | COMMENT |
| LOW | Core/MemoryFile_Linux.cpp | 21 | #include "MemoryFile.h" | COMMENT |
| LOW | Core/ScopedLock.hpp | 61 | #include <type_traits> | COMMENT |
| LOW | Core/MMKV_IO.cpp | 21 | COMMENT | |
| LOW | Core/MMKV_IO.cpp | 41 | #include <ctime> | COMMENT |
| LOW | Core/MiniPBCoder.h | 21 | #ifndef MMKV_MINIPBCODER_H | COMMENT |
| LOW | Core/MemoryFile.cpp | 21 | #include "MemoryFile.h" | COMMENT |
| LOW | Core/fakeinclude/MMKVCore/ThreadLock.h | 21 | #include "../../ThreadLock.h" | COMMENT |
| LOW | Core/fakeinclude/MMKVCore/ScopedLock.hpp | 21 | #include "../../ScopedLock.hpp" | COMMENT |
| LOW | Core/crc32/CMakeLists.txt | 1 | # | COMMENT |
| LOW | Core/crc32/crc32_armv8.cpp | 41 | static inline uint32_t _crc32Wrap(uint32_t crc, const uint8_t *buf, size_t len) { | COMMENT |
| LOW | Core/crc32/Checksum.h | 61 | // getauxval(AT_HWCAP) in OHOS returns wrong value, we just assume all OHOS device have crc32 instr | COMMENT |
| LOW | Core/crc32/zlib/zconf.h | 1 | /* zconf.h -- configuration of the zlib compression library | COMMENT |
| LOW | Core/crc32/zlib/zconf.h | 21 | #define WINDOWS | COMMENT |
| LOW | Core/crc32/zlib/zconf.h | 41 | #define MAXSEG_64K | COMMENT |
| LOW | Core/crc32/zlib/zconf.h | 61 | #define STDC | COMMENT |
| LOW | Core/crc32/zlib/zconf.h | 81 | #define z_const const | COMMENT |
| LOW | Core/crc32/zlib/zconf.h | 141 | COMMENT | |
| LOW | Core/crc32/zlib/zconf.h | 161 | #define FAR _far | COMMENT |
| LOW | Core/crc32/zlib/zconf.h | 181 | #ifdef ZLIB_DLL | COMMENT |
| LOW | Core/crc32/zlib/zconf.h | 201 | #define ZEXPORT WINAPI | COMMENT |
| LOW | Core/crc32/zlib/zconf.h | 221 | COMMENT | |
| LOW | Core/crc32/zlib/zconf.h | 261 | #endif | COMMENT |
| LOW | Core/crc32/zlib/zconf.h | 281 | #define Z_HAVE_UNISTD_H | COMMENT |
| LOW | Core/crc32/zlib/zconf.h | 301 | #ifndef Z_SOLO | COMMENT |
| LOW | Core/crc32/zlib/zconf.h | 321 | #include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */ | COMMENT |
| 77 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | flutter/mmkv_ios/pubspec.yaml | 28 | # The following section is specific to Flutter. | COMMENT |
| MEDIUM | flutter/mmkv_android/pubspec.yaml | 28 | # The following section is specific to Flutter. | COMMENT |
| MEDIUM | flutter/mmkv/pubspec.yaml | 43 | # The following section is specific to Flutter. | COMMENT |
| MEDIUM | flutter/mmkv/example/pubspec.yaml | 38 | # The following section is specific to Flutter. | COMMENT |
| MEDIUM | flutter/mmkv_ohos/pubspec.yaml | 32 | # The following section is specific to Flutter packages. | COMMENT |
| MEDIUM | flutter/mmkv_win32/pubspec.yaml | 27 | # The following section is specific to Flutter packages. | COMMENT |
| MEDIUM | flutter/mmkv_linux/pubspec.yaml | 27 | # The following section is specific to Flutter packages. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Script/dumpJavaSignature.py | 129 | except Exception as e: | CODE |
| MEDIUM | Script/dumpJavaSignature.py | 144 | print(f"Error: {e}") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | flutter/mmkv/example/pubspec.yaml | 42 | # included with your application, so that you can use the icons in | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …y/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts | 27 | async function addAbilityMonitorCallback(err: any) { | CODE |