facebookexperimental / reverie
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 606 units with 6,288 lines of code in units (27.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (106 lines of code)
    • 11 simple units (475 lines of code)
    • 593 very simple units (5,707 lines of code)
0% | 0% | 1% | 7% | 90%
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
rs0% | 0% | 1% | 7% | 90%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
reverie-process/src0% | 0% | 6% | 0% | 93%
reverie-ptrace/src0% | 0% | 1% | 10% | 88%
reverie-examples0% | 0% | 0% | 46% | 53%
reverie-util/src0% | 0% | 0% | 43% | 56%
reverie-syscalls/src0% | 0% | 0% | 0% | 100%
reverie/src0% | 0% | 0% | 0% | 100%
reverie-examples/strace0% | 0% | 0% | 0% | 100%
reverie-examples/chrome-trace0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
71 15 1
35 11 2
25 10 2
43 9 1
59 8 1
16 7 2
30 7 1
51 6 1
47 6 0
47 6 1
34 6 1
103 6 1
20 6 2
43 5 1
24 5 0
21 5 2
20 5 1
36 5 2
17 5 3
53 5 1
63 5 4
51 5 1
13 5 1
24 4 2
12 4 2
17 4 1
6 4 2
23 4 3
19 4 3
15 4 2
48 4 0
11 4 1
21 4 0
23 4 4
105 4 2
13 4 1
29 4 1
17 4 4
33 4 4
21 4 2
20 3 2
16 3 0
10 3 0
10 3 0
7 3 0
17 3 1
9 3 2
5 3 1
14 3 0
56 3 0