facebook / time
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 583 units with 8,231 lines of code in units (69.9% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (110 lines of code)
    • 27 medium complex units (1,707 lines of code)
    • 43 simple units (1,369 lines of code)
    • 512 very simple units (5,045 lines of code)
0% | 1% | 20% | 16% | 61%
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
go0% | 1% | 20% | 16% | 61%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ptp/simpleclient0% | 21% | 17% | 13% | 47%
ptp/ptp4u0% | 0% | 29% | 14% | 55%
cmd/ntpcheck0% | 0% | 24% | 8% | 67%
cmd/ziffy0% | 0% | 35% | 15% | 49%
ptp/protocol0% | 0% | 11% | 17% | 70%
leapsectz0% | 0% | 65% | 0% | 34%
ntp/chrony0% | 0% | 25% | 0% | 74%
cmd/ptp4u0% | 0% | 100% | 0% | 0%
cmd/ptpcheck0% | 0% | 13% | 21% | 65%
cmd/pshark0% | 0% | 48% | 0% | 51%
ntp/responder0% | 0% | 12% | 22% | 65%
calnex/export0% | 0% | 77% | 0% | 22%
calnex/cert0% | 0% | 41% | 45% | 12%
calnex/config0% | 0% | 35% | 41% | 23%
cmd/ntpresponder0% | 0% | 0% | 100% | 0%
ntp/control0% | 0% | 0% | 30% | 70%
calnex/api0% | 0% | 0% | 16% | 83%
phc0% | 0% | 0% | 26% | 73%
calnex/firmware0% | 0% | 0% | 82% | 18%
leaphash0% | 0% | 0% | 100% | 0%
calnex/cmd0% | 0% | 0% | 20% | 79%
timestamp0% | 0% | 0% | 10% | 89%
ntp/protocol0% | 0% | 0% | 23% | 76%
ntp/shm0% | 0% | 0% | 0% | 100%
oscillatord0% | 0% | 0% | 0% | 100%
cmd/calnex0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
110 26 1
67 20 1
60 19 1
55 17 1
58 17 1
86 17 1
85 16 0
80 16 2
87 16 0
89 16 1
50 16 4
68 15 1
81 15 1
78 15 1
47 15 4
91 14 3
69 14 2
56 14 1
37 13 1
58 13 1
64 12 2
71 12 1
62 12 1
35 12 1
45 12 1
40 11 1
48 11 1
40 11 4
76 10 0
37 10 1
40 10 1
36 10 1
41 10 4
32 10 1
33 9 1
28 9 1
38 9 1
43 9 1
44 9 1
28 9 1
26 8 1
35 8 1
31 8 1
43 8 1
46 8 1
34 8 1
23 7 1
22 7 1
47 7 1
41 7 1