facebook / idb
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 697 units with 5,833 lines of code in units (10.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (252 lines of code)
    • 29 simple units (1,073 lines of code)
    • 662 very simple units (4,508 lines of code)
0% | 0% | 4% | 18% | 77%
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
py0% | 0% | 6% | 7% | 85%
mm0% | 0% | 9% | 33% | 57%
m0% | 0% | 0% | 28% | 71%
swift0% | 0% | 0% | 14% | 85%
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
idb0% | 0% | 6% | 7% | 85%
idb_companion0% | 0% | 5% | 29% | 65%
Shims0% | 0% | 0% | 28% | 71%
FBControlCore0% | 0% | 0% | 21% | 78%
FBDeviceControl0% | 0% | 0% | 45% | 54%
FBSimulatorControl0% | 0% | 0% | 0% | 100%
PrivateHeaders0% | 0% | 0% | 0% | 100%
XCTestBootstrap0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
website0% | 0% | 0% | 0% | 100%
Fixtures0% | 0% | 0% | 0% | 100%
fbxctest0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
38 18 1
52 14 2
26 13 4
38 11 1
48 11 3
50 11 2
29 9 1
92 9 4
43 9 2
55 9 2
48 9 0
20 8 1
17 8 1
70 8 2
59 8 2
45 8 3
17 7 4
31 7 3
50 7 2
31 7 3
33 7 2
26 7 1
58 7 2
18 6 1
21 6 1
24 6 1
24 6 2
27 6 2
31 6 2
28 6 3
30 6 3
30 6 3
40 6 3
45 6 1
31 6 0
6 5 1
11 5 2
10 5 2
14 5 3
12 5 1
13 5 1
12 5 2
20 5 4
15 5 1
21 5 3
24 5 3
27 5 3
22 5 2
64 5 2
64 5 2