wit-ai / wit-unity
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 473 units with 5,807 lines of code in units (68.3% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (157 lines of code)
    • 11 medium complex units (790 lines of code)
    • 38 simple units (1,040 lines of code)
    • 423 very simple units (3,820 lines of code)
0% | 2% | 13% | 17% | 65%
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
cs0% | 2% | 13% | 17% | 65%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Scripts/Runtime/Lib0% | 30% | 0% | 24% | 45%
Scripts/Runtime0% | 0% | 25% | 18% | 56%
Scripts/Editor/CallbackHandlers0% | 0% | 54% | 17% | 28%
Scripts/Editor/Utility0% | 0% | 30% | 3% | 65%
Scripts/Editor/Data0% | 0% | 12% | 13% | 74%
Scripts/Editor/Windows0% | 0% | 10% | 27% | 62%
Scripts/Runtime/CallbackHandlers0% | 0% | 0% | 77% | 22%
Scripts/Editor0% | 0% | 0% | 9% | 90%
Scripts/Editor/Inspectors0% | 0% | 0% | 59% | 40%
Scripts/Runtime/Data0% | 0% | 0% | 2% | 97%
Scripts/Runtime/Settings0% | 0% | 0% | 0% | 100%
Scripts/Runtime/Utilities0% | 0% | 0% | 0% | 100%
Scripts/Runtime/ResponseManager0% | 0% | 0% | 0% | 100%
Scripts/Editor/Lib0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
157 42 1
75 22 3
80 22 0
136 21 1
98 17 1
105 15 3
38 14 0
54 14 0
57 12 4
45 11 3
58 11 0
44 11 4
43 10 1
51 10 1
41 10 0
33 10 0
29 9 1
31 9 1
35 9 1
44 9 3
15 9 3
21 8 2
23 8 2
21 8 2
31 8 0
21 8 2
33 7 1
36 7 2
15 7 0
44 7 0
44 7 3
19 7 2
24 6 1
13 6 1
13 6 1
25 6 3
14 6 3
23 6 4
16 6 4
28 6 1
32 6 1
32 6 2
35 6 1
20 6 2
27 6 4
19 6 4
23 6 2
34 6 2
17 6 2
15 6 2