anthropics / apitools
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 631 units with 6,258 lines of code in units (85.1% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (64 lines of code)
    • 25 medium complex units (924 lines of code)
    • 74 simple units (1,530 lines of code)
    • 531 very simple units (3,740 lines of code)
0% | 1% | 14% | 24% | 59%
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% | 14% | 24% | 59%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
apitools0% | 1% | 14% | 24% | 59%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
64 27 3
50 20 3
40 18 4
29 18 1
71 17 5
61 17 3
35 17 2
44 16 1
50 16 3
30 16 7
29 15 6
33 14 3
38 14 6
53 13 2
46 13 6
53 13 5
34 12 4
32 12 12
23 12 2
26 12 2
30 11 3
22 11 3
23 11 4
28 11 4
25 11 4
19 11 5
52 10 5
11 10 2
19 10 1
24 10 1
18 10 3
18 10 4
19 10 3
31 10 3
43 9 1
30 9 3
21 9 3
30 9 3
10 9 3
25 9 2
14 9 2
24 9 2
16 9 2
15 9 2
18 9 1
33 9 16
18 8 3
32 8 3
50 8 12
32 8 3