facebook / openr
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 983 units with 8,619 lines of code in units (18.2% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (58 lines of code)
    • 24 medium complex units (1,069 lines of code)
    • 79 simple units (1,803 lines of code)
    • 879 very simple units (5,689 lines of code)
0% | <1% | 12% | 20% | 66%
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% | <1% | 12% | 20% | 65%
cpp0% | 0% | 0% | 26% | 73%
c0% | 0% | 0% | 33% | 66%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
openr/py0% | 2% | 9% | 10% | 77%
build/fbcode_builder0% | 0% | 13% | 26% | 59%
build0% | 0% | 100% | 0% | 0%
openr/link-monitor0% | 0% | 0% | 88% | 11%
openr/allocators0% | 0% | 0% | 83% | 16%
openr/ctrl-server0% | 0% | 0% | 0% | 100%
openr/platform0% | 0% | 0% | 0% | 100%
openr/decision0% | 0% | 0% | 0% | 100%
openr/common0% | 0% | 0% | 0% | 100%
openr/config0% | 0% | 0% | 0% | 100%
openr/nl0% | 0% | 0% | 0% | 100%
openr/config-store0% | 0% | 0% | 0% | 100%
openr/monitor0% | 0% | 0% | 0% | 100%
openr0% | 0% | 0% | 0% | 100%
openr/kvstore0% | 0% | 0% | 0% | 100%
openr/prefix-manager0% | 0% | 0% | 0% | 100%
openr/policy0% | 0% | 0% | 0% | 100%
openr/messaging0% | 0% | 0% | 0% | 100%
openr/spark0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
58 27 4
76 25 4
67 23 3
62 22 1
40 19 2
73 19 2
37 17 5
41 17 1
55 16 4
44 16 3
41 15 2
21 14 2
42 13 0
128 13 3
31 13 3
31 12 3
50 12 4
9 12 2
34 12 2
35 12 2
38 12 5
31 11 4
31 11 2
23 11 5
29 11 4
24 10 3
23 10 4
29 10 3
43 10 2
26 10 6
25 10 3
15 10 3
47 10 3
60 10 2
31 10 2
29 9 2
27 9 2
41 9 1
34 9 3
19 9 3
46 8 2
17 8 2
25 8 1
16 8 2
23 8 3
18 8 3
27 8 3
14 8 5
17 8 3
17 8 2