Repository Analysis

wled/WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP32 over WiFi!

4.4 Likely human-written View on GitHub
4.4
Adjusted Score
4.4
Raw Score
100%
Time Factor
2026-05-30
Last Push
18,148
Stars
C++
Language
117,243
Lines of Code
452
Files
381
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 4MEDIUM 50LOW 327

Pattern Findings

381 matches across 9 categories. Click a row to expand file-level details.

Over-Commented Block313 hits · 303 pts
SeverityFileLineSnippet
LOWrequirements.txt1#
LOWrequirements.txt21colorama==0.4.6
LOWplatformio.ini41 platformio_override.ini
LOWplatformio.ini61# -DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH = v1.4 Higher Bandwidth (default)
LOWplatformio.ini141 #For use of the TTGO T-Display ESP32 Module with integrated TFT display uncomment the following line
LOW.coderabbit.yaml1# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
LOWwled00/fcn_declare.h501 #ifndef ESP8266
LOWwled00/fcn_declare.h521inline size_t getContiguousFreeHeap() { return heap_caps_get_largest_free_block(MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT);
LOWwled00/network.cpp361}
LOWwled00/network.cpp381 #define ARDUINO_EVENT_WIFI_AP_START SYSTEM_EVENT_AP_START
LOWwled00/FX_fcn.cpp1161// WS2812FX class implementation
LOWwled00/NodeStruct.h1#ifndef WLED_NODESTRUCT_H
LOWwled00/NodeStruct.h21//#define NODE_TYPE_ID_ESP32S2 34
LOWwled00/util.cpp1#include "wled.h"
LOWwled00/util.cpp761 return hw_random(diff) + lowerlimit;
LOWwled00/bus_manager.h1#pragma once
LOWwled00/bus_manager.h21#include "asyncDNS.h"
LOWwled00/bus_manager.h41 #define DEBUGOUT Serial
LOWwled00/cfg.cpp1#include "wled.h"
LOWwled00/wled_metadata.cpp1#include "ota_update.h"
LOWwled00/pin_manager.h1#ifndef WLED_PIN_MANAGER_H
LOWwled00/FX.h21#include "colors.h"
LOWwled00/FX.h41#define DEFAULT_BRIGHTNESS (uint8_t)127
LOWwled00/FX.h61#define WLED_FPS 42
LOWwled00/FX.h81
LOWwled00/FX.h101#define FAIR_DATA_PER_SEG (MAX_SEGMENT_DATA / MAX_NUM_SEGMENTS)
LOWwled00/FX.h121#define YELLOW (uint32_t)0xFFFF00
LOWwled00/FX.h141#define FROZEN (uint16_t)0x0010
LOWwled00/FX.h161#define FX_MODE_THEATER_CHASE_RAINBOW 14 // candidate for removal (use Theater)
LOWwled00/FX.h181#define FX_MODE_COLORFUL 34
LOWwled00/FX.h201#define FX_MODE_TRICOLOR_CHASE 54
LOWwled00/FX.h221#define FX_MODE_COLORTWINKLE 74
LOWwled00/FX.h241#define FX_MODE_SINELON_DUAL 93 // candidate for removal (use sinelon)
LOWwled00/FX.h261#define FX_MODE_WASHING_MACHINE 113
LOWwled00/FX.h281#define FX_MODE_PIXELWAVE 129
LOWwled00/FX.h301#define FX_MODE_2DFIRENOISE 149
LOWwled00/FX.h321#define FX_MODE_2DCOLOREDBURSTS 167
LOWwled00/FX.h341
LOWwled00/FX.h361#define FX_MODE_PSSPARKLER 206
LOWwled00/FX.h381#define TRANSITION_SWIPE_LEFT 0x03 // 1D or 2D
LOWwled00/improv.cpp1#include "wled.h"
LOWwled00/ir.cpp21// brightnessSteps: a static array of brightness levels following a geometric
LOWwled00/bus_wrapper.h1#pragma once
LOWwled00/bus_wrapper.h21#define I_8266_DM_NEO_3 3
LOWwled00/bus_wrapper.h41#define I_8266_DM_TM2_3 19
LOWwled00/bus_wrapper.h61#define I_8266_DM_APA106_3 35
LOWwled00/bus_wrapper.h81#define I_32_RN_NEO_3 1
LOWwled00/bus_wrapper.h101//FW1906 GRBCW
LOWwled00/bus_wrapper.h121//LPD8806
LOWwled00/bus_wrapper.h141/*** ESP8266 Neopixel methods ***/
LOWwled00/bus_wrapper.h161#define B_8266_DM_TM1_4 NeoPixelBus<NeoWrgbTm1814Feature, NeoEsp8266DmaTm1814Method>
LOWwled00/bus_wrapper.h181#define B_8266_DM_APA106_3 NeoPixelBus<NeoGrbFeature, NeoEsp8266DmaApa106Method> //3 chan, esp8266, gpio3
LOWwled00/bus_wrapper.h201#define B_8266_DM_SM16825_5 NeoPixelBus<NeoRgbwcSm16825eFeature, NeoEsp8266Dma800KbpsMethod>
LOWwled00/bus_wrapper.h241 typedef NeoEsp32I2s1Tm1829Method X1Tm1829Method;
LOWwled00/bus_wrapper.h261#define B_32_RN_NEO_4 NeoPixelBus<NeoGrbwFeature, NeoEsp32RmtMethod(Sk6812)>
LOWwled00/bus_wrapper.h281#define B_32_RN_UCS_4 NeoPixelBus<NeoRgbwUcs8904Feature, NeoEsp32RmtMethod(Ws2812x)>
LOWwled00/bus_wrapper.h301#define B_32_RN_SM16825_5 NeoPixelBus<NeoRgbcwSm16825eFeature, NeoEsp32RmtMethod(Ws2812x)>
LOWwled00/bus_wrapper.h321#define B_SS_LPO_3 NeoPixelBus<Lpd6803GrbFeature, Lpd6803Method>
LOWwled00/pin_manager.cpp1#include "wled.h"
LOWwled00/pin_manager.cpp221 #endif
253 more matches not shown…
Decorative Section Separators33 hits · 116 pts
SeverityFileLineSnippet
MEDIUMplatformio.ini5# ------------------------------------------------------------------------------
MEDIUMplatformio.ini10# ------------------------------------------------------------------------------
MEDIUMplatformio.ini45# ------------------------------------------------------------------------------
MEDIUMplatformio.ini49# ------------------------------------------------------------------------------
MEDIUMplatformio.ini55# ------------------------------------------------------------------------------
MEDIUMplatformio.ini76# ------------------------------------------------------------------------------
MEDIUMplatformio.ini113# ------------------------------------------------------------------------------
MEDIUMplatformio.ini115# ------------------------------------------------------------------------------
MEDIUMplatformio.ini123# ------------------------------------------------------------------------------
MEDIUMplatformio.ini129# ------------------------------------------------------------------------------
MEDIUMplatformio.ini163# ------------------------------------------------------------------------------
MEDIUMplatformio.ini169# ------------------------------------------------------------------------------
MEDIUMplatformio.ini376# ------------------------------------------------------------------------------
MEDIUMplatformio.ini378# ------------------------------------------------------------------------------
MEDIUMplatformio.ini712# ------------------------------------------------------------------------------
MEDIUMplatformio.ini714# ------------------------------------------------------------------------------
MEDIUMplatformio_override.sample.ini2# ------------------------------------------------------------------------------
MEDIUMplatformio_override.sample.ini4# ------------------------------------------------------------------------------
MEDIUMplatformio_override.sample.ini10#----------
MEDIUMplatformio_override.sample.ini12#----------
MEDIUMplatformio_override.sample.ini199# ------------------------------------------------------------------------------
MEDIUMplatformio_override.sample.ini203# ------------------------------------------------------------------------------
MEDIUMplatformio_override.sample.ini217# ------------------------------------------------------------------------------
MEDIUMplatformio_override.sample.ini219# ------------------------------------------------------------------------------
MEDIUMplatformio_override.sample.ini487# ------------------------------------------------------------------------------
MEDIUMplatformio_override.sample.ini490# ------------------------------------------------------------------------------
MEDIUMplatformio_override.sample.ini510# ------------------------------------------------------------------------------
MEDIUMplatformio_override.sample.ini512# ------------------------------------------------------------------------------
MEDIUMplatformio_override.sample.ini538# ------------------------------------------------------------------------------
MEDIUMplatformio_override.sample.ini540# ------------------------------------------------------------------------------
MEDIUM.coderabbit.yaml59 # ── Security hardening — firmware (trust-boundary-aware) ────────────────
MEDIUM.coderabbit.yaml89 # ── Security hardening — WebUI (always an ingress/output surface) ────────
MEDIUM.coderabbit.yaml177 # ── Secrets / sensitive information scanning ────────────────────────────
AI Slop Vocabulary16 hits · 48 pts
SeverityFileLineSnippet
MEDIUMwled00/udp.cpp174 // to work around that limitation it is mandatory to utilize onDataSent() callback which should reduce number queu
MEDIUMusermods/AHT10_v2/AHT10_v2.cpp245 // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of single
MEDIUM…2_four_line_display_ALT/usermod_v2_four_line_display.h8 #define FLD_ESP32_USE_THREADS // comment out to use 0.13.x behaviour without parallel update task - slower, but more
MEDIUM…2_four_line_display_ALT/usermod_v2_four_line_display.h8 #define FLD_ESP32_USE_THREADS // comment out to use 0.13.x behaviour without parallel update task - slower, but more
MEDIUMusermods/BME280_v2/BME280_v2.cpp421 // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of single
MEDIUMusermods/wizlights/wizlights.cpp39 // Better utilize WLED existing white mixing logic
MEDIUMusermods/EXAMPLE/usermod_v2_example.cpp257 // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of singl
MEDIUMusermods/audioreactive/audio_reactive.cpp1089 // warning!! Absolutely experimental code. Audio on 8266 is still not working. Expects a million follow-on probl
MEDIUMusermods/audioreactive/audio_source.h43// Uncomment the line below to utilize ADC1 _exclusively_ for I2S sound input.
MEDIUMusermods/LD2410_v2/LD2410_v2.cpp171 // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of singl
MEDIUMusermods/Cronixie/Cronixie.cpp285 // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of singl
MEDIUMusermods/deep_sleep/deep_sleep.cpp268 // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of singl
MEDIUMusermods/mpu6050_imu/mpu6050_imu.cpp381 // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of singl
MEDIUMusermods/mpu6050_imu/usermod_gyro_surge.h151 // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of singl
MEDIUM…ermods/usermod_v2_word_clock/usermod_v2_word_clock.cpp456 // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of singl
MEDIUM…2_klipper_percentage/usermod_v2_klipper_percentage.cpp116 // setting them inside readFromConfig() is slightly more robust, handling the rare but plausible use case of single
Synthetic Comment Markers4 hits · 30 pts
SeverityFileLineSnippet
HIGHAGENTS.md255### Attribution for AI-generated code
HIGHwled00/ws.cpp72 // publish state to MQTT as requested in wled#4643 even if only WS response selected
HIGHwled00/udp.cpp811 /*1*/ddpUdp.write(sequenceNumber++ & 0x0F); // sequence may be unnecessary unless we are sending twice (as reque
HIGHwled00/wled_server.cpp454 // publish state to MQTT as requested in wled#4643 even if only WS response selected
Hyper-Verbose Identifiers6 hits · 6 pts
SeverityFileLineSnippet
LOWtools/cdata.js211function isAnyFileInFolderNewerThan(folderPath, time) {
LOWtools/cdata-test.js115 async function runAndCheckIfBuiltFilesExist() {
LOWtools/cdata-test.js120 async function checkIfFileWasNewlyCreated(file) {
LOWwled00/data/index.js1639 function setSelectedEffectPosition() {
LOWwled00/data/pixelforge/omggif.js225function GifWriterOutputLZWCodeStream(buf, p, min_code_size, index_stream) {
LOWwled00/data/pixelforge/omggif.js662function GifReaderLZWOutputIndexStream(code_stream, p, output, output_length) {
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippet
MEDIUMplatformio.ini70# When building on core >= 2.5, you can add the build flag -DBEARSSL_SSL_BASIC in order to build BearSSL with a limite
LOWwled00/util.cpp771 #warning "BOARD_HAS_PSRAM defined, make sure to use -mfix-esp32-psram-cache-issue to prevent issues on rev.1 ESP32 b
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippet
LOWpio-scripts/load_usermods.py143
LOWpio-scripts/validate_modules.py103
LOWusermods/pixels_dice_tray/generate_roll_info.py123
LOWusermods/JSON_IR_remote/ir_json_maker.py59
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippet
LOWpio-scripts/set_metadata.py44 # Check if it's a GitHub URL
LOWpio-scripts/build_ui.py5# Check if Node.js is installed and present in PATH if it failed, abort the build
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippet
LOWpio-scripts/set_metadata.py75 except Exception: