Control WS2812B and many more types of digital RGB LEDs with an ESP32 over WiFi!
This report presents the forensic synthetic code analysis of wled/WLED, a C++ project with 18,611 GitHub stars. SynthScan v2.0 examined 119,213 lines of code across 450 source files, recording 406 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 4.6 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 406 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | requirements.txt | 1 | # | COMMENT |
| LOW | requirements.txt | 21 | colorama==0.4.6 | COMMENT |
| LOW | platformio.ini | 61 | COMMENT | |
| LOW | platformio_override.sample.ini | 521 | # ------------------------------------------------------------------------------ | COMMENT |
| LOW | .coderabbit.yaml | 1 | # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json | COMMENT |
| LOW | wled00/fcn_declare.h | 1 | #pragma once | COMMENT |
| LOW | wled00/fcn_declare.h | 521 | #else | COMMENT |
| LOW | wled00/fcn_declare.h | 541 | inline size_t getFreeHeapSize() { return ESP.getFreeHeap(); } // returns free heap | COMMENT |
| LOW | wled00/network.cpp | 381 | return status; // scan is still running or there was an error | COMMENT |
| LOW | wled00/network.cpp | 401 | #define ARDUINO_EVENT_WIFI_STA_DISCONNECTED SYSTEM_EVENT_STA_DISCONNECTED | COMMENT |
| LOW | wled00/NodeStruct.h | 1 | #ifndef WLED_NODESTRUCT_H | COMMENT |
| LOW | wled00/NodeStruct.h | 21 | //#define NODE_TYPE_ID_ESP32S2 34 | COMMENT |
| LOW | wled00/wled_boards.h | 21 | WLED_HAVE_I2S1_LEDS (for bus_wrapper.h) | COMMENT |
| LOW | wled00/wled_boards.h | 41 | COMMENT | |
| LOW | wled00/wled_boards.h | 61 | #define WLED_HAVE_FAST_int_DIVIDE 1 // integer division is fast (no need to use bitshifts with rounding instead of int | COMMENT |
| LOW | wled00/wled_boards.h | 81 | #define WLED_HAS_PARALLEL_I2S 1 // esp32-S2 supports I2S parallel leds driver (NeoPixelBus) | COMMENT |
| LOW | wled00/wled_boards.h | 101 | #define WLED_HAVE_RTC_MEMORY_HEAP 1 // has byte-accessible fast RTC memory that can be used as heap | COMMENT |
| LOW | wled00/wled_boards.h | 121 | // has no FPU | COMMENT |
| LOW | wled00/wled_boards.h | 141 | COMMENT | |
| LOW | wled00/util.cpp | 1 | #include "wled.h" | COMMENT |
| LOW | wled00/util.cpp | 21 | #endif | COMMENT |
| LOW | wled00/util.cpp | 281 | // Use a recursive mutex type in case our task is the one holding the JSON buffer. | COMMENT |
| LOW | wled00/util.cpp | 781 | } | COMMENT |
| LOW | wled00/util.cpp | 1341 | #endif | COMMENT |
| LOW | wled00/bus_manager.h | 1 | #pragma once | COMMENT |
| LOW | wled00/bus_manager.h | 21 | #include "asyncDNS.h" | COMMENT |
| LOW | wled00/bus_manager.h | 41 | #define DEBUGOUT Serial | COMMENT |
| LOW | wled00/cfg.cpp | 1 | #include "wled.h" | COMMENT |
| LOW | wled00/wled_metadata.cpp | 1 | #include "ota_update.h" | COMMENT |
| LOW | wled00/pin_manager.h | 1 | #ifndef WLED_PIN_MANAGER_H | COMMENT |
| LOW | wled00/FX.h | 21 | #include "colors.h" | COMMENT |
| LOW | wled00/FX.h | 41 | #define DEFAULT_BRIGHTNESS (uint8_t)127 | COMMENT |
| LOW | wled00/FX.h | 61 | #define WLED_FPS 42 | COMMENT |
| LOW | wled00/FX.h | 81 | #endif | COMMENT |
| LOW | wled00/FX.h | 101 | /* How much data bytes each segment should max allocate to leave enough space for other segments, | COMMENT |
| LOW | wled00/FX.h | 121 | #define WHITE (uint32_t)0xFFFFFF | COMMENT |
| LOW | wled00/FX.h | 141 | #define REVERSE_Y_2D (uint16_t)0x0040 | COMMENT |
| LOW | wled00/FX.h | 161 | #define FX_MODE_FADE 12 | COMMENT |
| LOW | wled00/FX.h | 181 | #define FX_MODE_CHASE_FLASH_RANDOM 32 | COMMENT |
| LOW | wled00/FX.h | 201 | #define FX_MODE_RUNNING_DUAL 52 // candidate for removal (use Running) | COMMENT |
| LOW | wled00/FX.h | 221 | #define FX_MODE_NOISE16_3 72 | COMMENT |
| LOW | wled00/FX.h | 241 | #define FX_MODE_BOUNCINGBALLS 91 | COMMENT |
| LOW | wled00/FX.h | 261 | #define FX_MODE_CHUNCHUN 111 | COMMENT |
| LOW | wled00/FX.h | 281 | // WLED-SR effects (SR compatible IDs !!!) | COMMENT |
| LOW | wled00/FX.h | 301 | #define FX_MODE_PERLINMOVE 147 | COMMENT |
| LOW | wled00/FX.h | 321 | #define FX_MODE_2DWAVERLY 165 | COMMENT |
| LOW | wled00/FX.h | 341 | #define FX_MODE_ROCKTAVES 185 | COMMENT |
| LOW | wled00/FX.h | 361 | #define FX_MODE_PSDANCINGSHADOWS 204 | COMMENT |
| LOW | wled00/FX.h | 381 | #define TRANSITION_FAIRY_DUST 0x01 // universal | COMMENT |
| LOW | wled00/improv.cpp | 1 | #include "wled.h" | COMMENT |
| LOW | wled00/ir.cpp | 21 | static uint16_t irTimesRepeated = 0; | COMMENT |
| LOW | wled00/bus_wrapper.h | 1 | #pragma once | COMMENT |
| LOW | wled00/bus_wrapper.h | 21 | #define P_32_VS_CLK 18 | COMMENT |
| LOW | wled00/bus_wrapper.h | 41 | #define I_8266_U0_TM1_4 13 | COMMENT |
| LOW | wled00/bus_wrapper.h | 61 | #define I_8266_U0_FW6_5 29 | COMMENT |
| LOW | wled00/bus_wrapper.h | 81 | #define I_8266_U0_SM16825_5 45 | COMMENT |
| LOW | wled00/bus_wrapper.h | 101 | #define I_32_I2_TM2_3 18 | COMMENT |
| LOW | wled00/bus_wrapper.h | 121 | #define I_32_RN_SM16825_5 45 | COMMENT |
| LOW | wled00/bus_wrapper.h | 141 | #define I_HS_LPO_3 109 | COMMENT |
| LOW | wled00/bus_wrapper.h | 161 | #define B_8266_U0_400_3 NeoPixelBus<NeoGrbFeature, NeoEsp8266Uart0400KbpsMethod> //3 chan, esp8266, gpio1 | COMMENT |
| 276 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | platformio.ini | 5 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | platformio.ini | 10 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | platformio.ini | 52 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | platformio.ini | 56 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | platformio.ini | 62 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | platformio.ini | 83 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | platformio.ini | 125 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | platformio.ini | 127 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | platformio.ini | 135 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | platformio.ini | 141 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | platformio.ini | 157 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | platformio.ini | 163 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | platformio.ini | 506 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | platformio.ini | 508 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | platformio.ini | 632 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | platformio.ini | 634 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | platformio.ini | 1080 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | platformio.ini | 1082 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | platformio_override.sample.ini | 2 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | platformio_override.sample.ini | 4 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | platformio_override.sample.ini | 10 | #---------- | COMMENT |
| MEDIUM⚡ | platformio_override.sample.ini | 12 | #---------- | COMMENT |
| MEDIUM | platformio_override.sample.ini | 203 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | platformio_override.sample.ini | 207 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | platformio_override.sample.ini | 221 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | platformio_override.sample.ini | 223 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | platformio_override.sample.ini | 498 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | platformio_override.sample.ini | 501 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | platformio_override.sample.ini | 521 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | platformio_override.sample.ini | 524 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | platformio_override.sample.ini | 527 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | platformio_override.sample.ini | 529 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | .coderabbit.yaml | 68 | # ── Security hardening — firmware (trust-boundary-aware) ──────────────── | COMMENT |
| MEDIUM | .coderabbit.yaml | 98 | # ── Security hardening — WebUI (always an ingress/output surface) ──────── | COMMENT |
| MEDIUM | .coderabbit.yaml | 186 | # ── Secrets / sensitive information scanning ──────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | usermods/AHT10_v2/AHT10_v2.cpp | 245 | // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of single | COMMENT |
| MEDIUM | …2_four_line_display_ALT/usermod_v2_four_line_display.h | 8 | #define FLD_ESP32_USE_THREADS // comment out to use 0.13.x behaviour without parallel update task - slower, but more | COMMENT |
| MEDIUM | …2_four_line_display_ALT/usermod_v2_four_line_display.h | 8 | #define FLD_ESP32_USE_THREADS // comment out to use 0.13.x behaviour without parallel update task - slower, but more | COMMENT |
| MEDIUM | usermods/BME280_v2/BME280_v2.cpp | 421 | // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of single | COMMENT |
| MEDIUM | usermods/wizlights/wizlights.cpp | 39 | // Better utilize WLED existing white mixing logic | COMMENT |
| MEDIUM | usermods/EXAMPLE/usermod_v2_example.cpp | 257 | // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of singl | COMMENT |
| MEDIUM | usermods/audioreactive/audio_reactive.cpp | 1129 | // warning!! Absolutely experimental code. Audio on 8266 is still not working. Expects a million follow-on probl | COMMENT |
| MEDIUM | usermods/audioreactive/audio_source.h | 45 | // Uncomment the line below to utilize ADC1 _exclusively_ for I2S sound input. | COMMENT |
| MEDIUM | usermods/LD2410_v2/LD2410_v2.cpp | 171 | // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of singl | COMMENT |
| MEDIUM | usermods/Cronixie/Cronixie.cpp | 285 | // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of singl | COMMENT |
| MEDIUM | usermods/deep_sleep/deep_sleep.cpp | 268 | // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of singl | COMMENT |
| MEDIUM | usermods/mpu6050_imu/mpu6050_imu.cpp | 381 | // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of singl | COMMENT |
| MEDIUM | usermods/mpu6050_imu/usermod_gyro_surge.h | 151 | // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of singl | COMMENT |
| MEDIUM | …ermods/usermod_v2_word_clock/usermod_v2_word_clock.cpp | 456 | // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of singl | COMMENT |
| MEDIUM | …2_klipper_percentage/usermod_v2_klipper_percentage.cpp | 116 | // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of single | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | AGENTS.md | 277 | ### Attribution for AI-generated code | COMMENT |
| HIGH | wled00/ws.cpp | 72 | // publish state to MQTT as requested in wled#4643 even if only WS response selected | COMMENT |
| HIGH | wled00/udp.cpp | 796 | /*1*/ddpUdp.write(sequenceNumber++ & 0x0F); // sequence may be unnecessary unless we are sending twice (as reque | COMMENT |
| HIGH | wled00/wled_server.cpp | 466 | // publish state to MQTT as requested in wled#4643 even if only WS response selected | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/cdata.js | 211 | function isAnyFileInFolderNewerThan(folderPath, time) { | CODE |
| LOW | tools/cdata-test.js | 115 | async function runAndCheckIfBuiltFilesExist() { | CODE |
| LOW | tools/cdata-test.js | 120 | async function checkIfFileWasNewlyCreated(file) { | CODE |
| LOW | wled00/data/index.js | 1669 | function setSelectedEffectPosition() { | CODE |
| LOW | wled00/data/pixelforge/omggif.js | 225 | function GifWriterOutputLZWCodeStream(buf, p, min_code_size, index_stream) { | CODE |
| LOW | wled00/data/pixelforge/omggif.js | 662 | function GifReaderLZWOutputIndexStream(code_stream, p, output, output_length) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | platformio.ini | 77 | # When building on core >= 2.5, you can add the build flag -DBEARSSL_SSL_BASIC in order to build BearSSL with a limite | COMMENT |
| LOW | wled00/util.cpp | 793 | #warning "BOARD_HAS_PSRAM defined, make sure to use -mfix-esp32-psram-cache-issue to prevent issues on rev.1 ESP32 b | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pio-scripts/load_usermods.py | 143 | CODE | |
| LOW | pio-scripts/validate_modules.py | 103 | CODE | |
| LOW | usermods/pixels_dice_tray/generate_roll_info.py | 123 | CODE | |
| LOW | usermods/JSON_IR_remote/ir_json_maker.py | 59 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pio-scripts/set_metadata.py | 44 | # Check if it's a GitHub URL | COMMENT |
| LOW | pio-scripts/build_ui.py | 5 | # Check if Node.js is installed and present in PATH if it failed, abort the build | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pio-scripts/dynarray.py | 69 | # TODO: consider using ESP-IDF linker fragment (https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pio-scripts/set_metadata.py | 75 | except Exception: | CODE |