freertos / FreeRTOS-Cellular-Interface
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 440 units with 15,007 lines of code in units (87.1% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (173 lines of code)
    • 75 medium complex units (5,261 lines of code)
    • 117 simple units (5,112 lines of code)
    • 247 very simple units (4,461 lines of code)
0% | 1% | 35% | 34% | 29%
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% | 1% | 35% | 34% | 29%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
modules/hl78020% | 6% | 40% | 23% | 29%
modules/sara_r40% | 0% | 57% | 27% | 15%
source0% | 0% | 21% | 41% | 37%
modules/bg960% | 0% | 33% | 36% | 29%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
173 28 4
116 23 4
110 22 4
static bool _parseExtendedSignalQuality()
in modules/sara_r4/cellular_r4_api.c
95 21 2
static bool _parseSignalQuality()
in modules/bg96/cellular_bg96_api.c
197 20 2
static CellularATError_t parseEidrxToken()
in modules/hl7802/cellular_hl7802_api.c
84 19 4
CellularError_t _Cellular_LibInit()
in source/cellular_common.c
110 18 3
76 18 4
71 18 4
CellularError_t Cellular_DeactivatePdn()
in modules/sara_r4/cellular_r4_api.c
95 17 2
71 17 4
CellularError_t Cellular_SetPdnConfig()
in modules/sara_r4/cellular_r4_api.c
118 17 3
static void _cellular_UrcProcessUusoco()
in modules/sara_r4/cellular_r4_urc_handler.c
82 17 2
CellularError_t Cellular_ModuleEnableUE()
in modules/hl7802/cellular_hl7802.c
112 17 1
static CellularPktStatus_t _parseUrcIndicationCsq()
in modules/bg96/cellular_bg96_urc_handler.c
77 16 2
static void _cellular_UrcProcessKtcpNotif()
in modules/hl7802/cellular_hl7802_urc_handler.c
77 16 2
static _atRespType_t _getMsgType()
in source/cellular_pktio.c
51 15 3
71 15 4
64 15 1
static CellularSimCardLockState_t _getSimLockState()
in modules/bg96/cellular_bg96_api.c
64 15 1