freertos / FreeRTOS
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 605 units with 15,258 lines of code in units (64.3% of code).
    • 0 very complex units (0 lines of code)
    • 4 complex units (475 lines of code)
    • 50 medium complex units (3,661 lines of code)
    • 115 simple units (4,840 lines of code)
    • 436 very simple units (6,282 lines of code)
0% | 3% | 23% | 31% | 41%
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% | 3% | 24% | 32% | 39%
py0% | 0% | 0% | 10% | 89%
h0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
FreeRTOS-Plus/Source/Reliance-Edge0% | 4% | 31% | 33% | 30%
FreeRTOS-Plus/Source/FreeRTOS-Plus-Trace0% | 3% | 5% | 25% | 65%
FreeRTOS-Plus/Source/Application-Protocols0% | 0% | 32% | 41% | 26%
FreeRTOS-Plus/Source/FreeRTOS-Plus-CLI0% | 0% | 41% | 0% | 58%
tools/aws_config_quick_start0% | 0% | 0% | 10% | 89%
FreeRTOS-Plus/Source/Utilities0% | 0% | 0% | 18% | 81%
tools/aws_config_offline/js0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
static REDSTATUS FildesOpen()
in FreeRTOS-Plus/Source/Reliance-Edge/posix/posix.c
142 32 4
REDSTATUS RedDirEntryRename()
in FreeRTOS-Plus/Source/Reliance-Edge/core/driver/dir.c
110 30 6
static uint8_t prvTraceUserEventFormat()
in FreeRTOS-Plus/Source/FreeRTOS-Plus-Trace/trcSnapshotRecorder.c
127 27 4
REDSTATUS RedInodeDataWrite()
in FreeRTOS-Plus/Source/Reliance-Edge/core/driver/inodedata.c
96 26 4
REDSTATUS RedDirEntryLookup()
in FreeRTOS-Plus/Source/Reliance-Edge/core/driver/dir.c
105 24 4
static REDSTATUS TruncDindir()
in FreeRTOS-Plus/Source/Reliance-Edge/core/driver/inodedata.c
77 24 2
static TlsTransportStatus_t tlsSetup()
in FreeRTOS-Plus/Source/Application-Protocols/network_transport/using_mbedtls_pkcs11/using_mbedtls_pkcs11.c
173 23 3
REDSTATUS RedVolFormat()
in FreeRTOS-Plus/Source/Reliance-Edge/core/driver/format.c
132 22 1
REDSTATUS RedCoreInit()
in FreeRTOS-Plus/Source/Reliance-Edge/core/driver/core.c
137 22 1
REDSTATUS RedBufferGet()
in FreeRTOS-Plus/Source/Reliance-Edge/core/driver/buffer.c
105 22 3
static REDSTATUS BranchBlockCost()
in FreeRTOS-Plus/Source/Reliance-Edge/core/driver/inodedata.c
84 21 3
BaseType_t Sockets_Connect()
in FreeRTOS-Plus/Source/Application-Protocols/network_transport/sockets_wrapper/cellular/sockets_wrapper.c
132 21 5
static REDSTATUS BranchBlock()
in FreeRTOS-Plus/Source/Reliance-Edge/core/driver/inodedata.c
90 19 3
static REDSTATUS Shrink()
in FreeRTOS-Plus/Source/Reliance-Edge/core/driver/inodedata.c
69 18 2
int32_t red_open()
in FreeRTOS-Plus/Source/Reliance-Edge/posix/posix.c
44 17 2
REDSTATUS RedVolMountMetaroot()
in FreeRTOS-Plus/Source/Reliance-Edge/core/driver/volume.c
83 17 1
static REDSTATUS WriteAligned()
in FreeRTOS-Plus/Source/Reliance-Edge/core/driver/inodedata.c
68 17 4
REDSTATUS RedImapBlockSet()
in FreeRTOS-Plus/Source/Reliance-Edge/core/driver/imap.c
67 17 2
static CK_RV initializeClientKeys()
in FreeRTOS-Plus/Source/Application-Protocols/network_transport/using_mbedtls_pkcs11/using_mbedtls_pkcs11.c
101 16 2
REDSTATUS RedPathSplit()
in FreeRTOS-Plus/Source/Reliance-Edge/posix/path.c
78 15 3