freertos / Lab-Project-FreeRTOS-SESIP
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 1,482 units with 22,902 lines of code in units (46.1% of code).
    • 0 very complex units (0 lines of code)
    • 4 complex units (488 lines of code)
    • 47 medium complex units (3,737 lines of code)
    • 111 simple units (4,376 lines of code)
    • 1,320 very simple units (14,301 lines of code)
0% | 2% | 16% | 19% | 62%
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% | 2% | 20% | 23% | 52%
py0% | 0% | 0% | 13% | 86%
h0% | 0% | 0% | <1% | 99%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib/nxp/utilities0% | 7% | 39% | 26% | 27%
lib/FreeRTOS/FreeRTOS-Plus-Trace0% | 3% | 5% | 25% | 65%
lib/nxp/drivers0% | 2% | 17% | 19% | 60%
lib/nxp/component0% | 5% | 30% | 23% | 40%
lib/FreeRTOS/platform0% | 0% | 25% | 22% | 52%
source0% | 0% | 19% | 28% | 51%
lib/bootloader0% | 0% | 42% | 0% | 57%
lib/nxp/bootloader0% | 0% | 42% | 0% | 57%
lib/FreeRTOS/provision0% | 0% | 16% | 52% | 31%
lib/nxp/mflash0% | 0% | 23% | 12% | 64%
lib/nxp/device0% | 0% | 25% | 37% | 37%
lib/nxp/phy0% | 0% | 39% | 0% | 60%
tools0% | 0% | 0% | 13% | 86%
lib/nxp/startup0% | 0% | 0% | 18% | 81%
source/user0% | 0% | 0% | 26% | 73%
lib/nxp/CMSIS0% | 0% | 0% | <1% | 99%
lib/nxp/board0% | 0% | 0% | 0% | 100%
lib/nxp/mdio0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
void USART_TransferHandleIRQ()
in lib/nxp/drivers/fsl_usart.c
112 33 2
static uint8_t prvTraceUserEventFormat()
in lib/FreeRTOS/FreeRTOS-Plus-Trace/trcSnapshotRecorder.c
127 27 4
serial_manager_status_t SerialManager_Init()
in lib/nxp/component/serial_manager/serial_manager.c
104 26 2
static uint8_t StrFormatScanfStringHandling()
in lib/nxp/utilities/fsl_str.c
145 26 4
int StrFormatScanf()
in lib/nxp/utilities/fsl_str.c
167 23 3
int StrFormatPrintf()
in lib/nxp/utilities/fsl_str.c
204 22 4
static TlsTransportStatus_t tlsSetup()
in lib/FreeRTOS/platform/freertos/transport/src/tls_freertos_pkcs11.c
158 21 3
status_t ENET_ReadFrame()
in lib/nxp/drivers/fsl_enet.c
141 19 5
97 19 2
static int32_t mflash_drv_sector_update()
in lib/nxp/mflash/lpc54xxx/mflash_drv.c
81 18 4
status_t USART_TransferReceiveNonBlocking()
in lib/nxp/drivers/fsl_usart.c
82 18 4
static void SerialManager_RxCallback()
in lib/nxp/component/serial_manager/serial_manager.c
92 17 3
static bool ENET_Ptp1588ParseFrame()
in lib/nxp/drivers/fsl_enet.c
74 16 3
status_t DbgConsole_Init()
in lib/nxp/utilities/fsl_debug_console.c
115 16 4
int32_t boot_run()
in lib/bootloader/spifi_boot.c
96 15 1
int32_t boot_run()
in lib/nxp/bootloader/spifi_boot.c
96 15 1
status_t USART_ReadBlocking()
in lib/nxp/drivers/fsl_usart.c
66 15 3
static void SerialManager_Task()
in lib/nxp/component/serial_manager/serial_manager.c
76 15 1
void CLOCK_SetupSystemPLLMult()
in lib/nxp/drivers/fsl_clock.c
82 14 2
status_t USART_WriteBlocking()
in lib/nxp/drivers/fsl_usart.c
49 14 3