anthropics / knowledge-work-plugins
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 179 units with 3,934 lines of code in units (41.7% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (185 lines of code)
    • 28 medium complex units (1,350 lines of code)
    • 42 simple units (1,104 lines of code)
    • 107 very simple units (1,295 lines of code)
0% | 4% | 34% | 28% | 32%
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% | 4% | 34% | 28% | 32%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
bio-research0% | 4% | 33% | 28% | 33%
data0% | 0% | 58% | 22% | 19%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
117 45 1
68 30 2
81 23 1
133 21 0
48 19 1
93 19 0
44 19 2
27 18 3
29 18 2
40 18 4
66 17 2
14 16 3
35 15 1
49 15 2
66 15 0
64 14 1
40 13 1
31 13 1
55 13 0
37 12 2
24 12 1
27 12 3
32 12 2
31 12 2
41 11 1
90 11 2
20 11 3
58 11 0
23 11 1
52 11 3
29 10 1
59 10 0
25 10 1
24 10 2
20 10 2
14 9 1
35 9 1
19 9 1
20 9 1
56 9 0
25 8 0
14 8 1
11 8 2
17 8 1
21 8 0
34 8 3
25 8 1
28 8 3
19 7 0
31 7 1