freertos / FreeRTOS-Cellular-Interface-Community-Supported-Ports
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 187 units with 6,267 lines of code in units (95.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 27 medium complex units (2,110 lines of code)
    • 52 simple units (2,427 lines of code)
    • 108 very simple units (1,730 lines of code)
0% | 0% | 33% | 38% | 27%
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
c0% | 0% | 33% | 38% | 27%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
sim70x00% | 0% | 37% | 35% | 26%
qgsm0% | 0% | 28% | 42% | 29%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
static bool _parseSignalQuality()
in sim70x0/cellular_sim70x0_api.c
184 24 2
static CellularPktStatus_t socketRecvDataPrefix()
in sim70x0/cellular_sim70x0_api.c
100 21 5
static bool _parseSignalQuality()
in qgsm/cellular_qgsm_api.c
179 20 2
71 18 4
71 18 4
81 17 4
CellularPktStatus_t _Cellular_ParseSimstat()
in sim70x0/cellular_sim70x0_urc_handler.c
88 17 2
static CellularPktStatus_t _parseUrcIndicationCsq()
in qgsm/cellular_qgsm_urc_handler.c
77 16 2
static CellularPktStatus_t _parseUrcIndicationCsq()
in sim70x0/cellular_sim70x0_urc_handler.c
78 16 2
64 15 1
77 15 5
64 15 1
61 15 4
55 14 4
72 14 4
52 13 4
CellularError_t Cellular_ModuleEnableUE()
in sim70x0/cellular_sim70x0.c
101 13 1
55 12 4
static void _Cellular_ProcessSocketState()
in sim70x0/cellular_sim70x0_urc_handler.c
68 12 2
55 12 4