Conditional Complexity Overall
  • There are 1,083 units with 21,932 lines of code in units (81.5% of code).
    • 6 very complex units (848 lines of code)
    • 30 complex units (2,928 lines of code)
    • 174 medium complex units (8,173 lines of code)
    • 200 simple units (4,710 lines of code)
    • 673 very simple units (5,273 lines of code)
3% | 13% | 37% | 21% | 24%
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
go4% | 13% | 38% | 18% | 24%
js20% | 17% | 4% | 26% | 30%
py0% | 12% | 30% | 38% | 18%
cjs0% | 0% | 0% | 86% | 14%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
internal4% | 13% | 39% | 17% | 25%
pkg4% | 13% | 36% | 21% | 24%
scripts0% | 11% | 30% | 38% | 19%
.github0% | 13% | 27% | 44% | 14%
cmd0% | 0% | 88% | 0% | 11%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
231 69 6
144 55 7
146 55 3
138 54 1
114 53 2
75 51 1
174 49 4
163 49 4
150 48 3
158 46 1
101 43 3
58 42 5
85 42 1
110 42 2
106 41 2
109 40 1
73 39 6
54 39 4
108 38 3
130 37 3
95 37 1
78 36 4
46 35 3
44 34 3
74 34 4
97 33 2
73 32 1
63 29 1
87 29 2
282 29 0
56 28 1
64 27 3
99 27 4
65 26 3
51 26 3
75 26 3
51 25 4
71 25 3
84 25 1
61 25 2
63 24 4
96 24 4
32 23 1
56 23 4
73 23 1
96 23 1
70 23 4
73 23 1
68 23 3
58 23 1
About This Analysis
  • 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...