microsoft / ExpressivePixels
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 974 units with 11,727 lines of code in units (51.6% of code).
    • 4 very complex units (898 lines of code)
    • 7 complex units (751 lines of code)
    • 26 medium complex units (1,272 lines of code)
    • 61 simple units (1,814 lines of code)
    • 876 very simple units (6,992 lines of code)
7% | 6% | 10% | 15% | 59%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
cpp10% | 6% | 10% | 14% | 57%
hpp22% | 3% | 15% | 5% | 53%
c0% | 15% | 5% | 25% | 52%
py0% | 0% | 21% | 11% | 66%
cs0% | 0% | 10% | 12% | 77%
h0% | 0% | 0% | 7% | 92%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Firmware/ExpressivePixelsCore17% | 10% | 14% | 16% | 41%
Firmware/ExpressivePixelsMIDI20% | 2% | 14% | 4% | 56%
Firmware/Segger0% | 16% | 6% | 31% | 46%
Firmware/Platform_NordicSDK0% | 5% | 3% | 19% | 70%
Firmware0% | 0% | 60% | 11% | 28%
Windows/ExpressivePixelsActivator0% | 0% | 10% | 12% | 77%
Firmware/Platform_Arduino0% | 0% | 7% | 7% | 85%
Firmware/RaspberryPi0% | 0% | 9% | 11% | 79%
Firmware/Device_Nordic52840DK_SeggerEmbeddedStudio0% | 0% | 0% | 17% | 82%
Firmware/Arduino0% | 0% | 0% | 0% | 100%
Firmware/Device_Nordic52840DK_SeggerEmbeddedStudio Minimal0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
void CExpressivePixelsApp::ExecuteTTYCommand()
in Firmware/ExpressivePixelsCore/EPXApp.cpp
392 72 0
void CExpressivePixelsApp::value()
in Firmware/ExpressivePixelsCore/EPXApp_JSON.cpp
185 63 1
void JsonStreamingParser::parse()
in Firmware/ExpressivePixelsCore/JsonStreamingParser.cpp
135 58 1
bool MidiInterface::parse()
in Firmware/ExpressivePixelsMIDI/MIDI.hpp
186 51 0
bool CAnimationManager::ProcessFrame()
in Firmware/ExpressivePixelsCore/CAnimationManager.cpp
119 38 2
void MidiInterface::launchCallback()
in Firmware/ExpressivePixelsMIDI/MIDI.hpp
27 38 0
bool CExpressivePixelsStorage::SequenceRead()
in Firmware/ExpressivePixelsCore/EPXApp_CStorage.cpp
108 35 3
void CExpressivePixelsApp::PayloadExecute()
in Firmware/ExpressivePixelsCore/EPXApp_Payload.cpp
191 33 1
int SEGGER_RTT_vprintf()
in Firmware/Segger/SEGGER_RTT_printf.c
120 29 3
static void ble_evt_handler()
in Firmware/Platform_NordicSDK/EPXPlatform_BLE.c
134 28 2
static void _PrintInt()
in Firmware/Segger/SEGGER_RTT_printf.c
52 26 6
void CExpressivePixelsApp::AppProcess()
in Firmware/ExpressivePixelsCore/EPXApp.cpp
65 25 1
void MidiInterface::thruFilter()
in Firmware/ExpressivePixelsMIDI/MIDI.hpp
68 22 1
static void _PrintUnsigned()
in Firmware/Segger/SEGGER_RTT_printf.c
67 21 6
void CExpressivePixelsApp::PayloadParseBinary()
in Firmware/ExpressivePixelsCore/EPXApp_Payload_Binary.cpp
103 20 1
void MidiInterface::disconnectCallbackFromType()
in Firmware/ExpressivePixelsMIDI/MIDI.hpp
26 19 1
bool CExpressivePixelsStorage::SequenceReadTokenTraverse()
in Firmware/ExpressivePixelsCore/EPXApp_CStorage.cpp
57 18 5
void CExpressivePixelsApp::ProcessRendering()
in Firmware/ExpressivePixelsCore/EPXApp.cpp
52 17 0
void CExpressivePixelsApp::byteAsHexValue()
in Firmware/ExpressivePixelsCore/EPXApp_JSON.cpp
43 16 1
void CExpressivePixelsApp::ProcessPowerStateChange()
in Firmware/ExpressivePixelsCore/EPXApp.cpp
33 15 0