anthropics / claude-desktop-buddy
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 242 units with 4,952 lines of code in units (86.9% of code).
    • 1 very complex units (227 lines of code)
    • 2 complex units (281 lines of code)
    • 12 medium complex units (517 lines of code)
    • 18 simple units (432 lines of code)
    • 209 very simple units (3,495 lines of code)
4% | 5% | 10% | 8% | 70%
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
cpp5% | 3% | 8% | 8% | 74%
h0% | 29% | 19% | 7% | 43%
py0% | 0% | 58% | 13% | 27%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src4% | 5% | 9% | 8% | 71%
tools0% | 0% | 58% | 13% | 27%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
227 114 0
137 35 1
144 28 0
27 25 0
93 25 1
60 19 1
29 19 4
54 18 2
40 14 0
49 14 0
33 13 0
28 13 1
49 12 1
21 11 1
34 11 1
45 10 1
17 10 0
44 9 0
16 8 0
33 8 1
31 8 1
19 7 0
12 7 4
20 7 1
15 7 2
10 7 2
14 6 1
17 6 0
38 6 0
8 6 3
31 6 1
31 6 1
31 6 1
20 5 0
15 5 0
7 5 1
14 5 3
22 5 1
12 5 0
26 5 1
23 5 1
26 5 1
23 5 1
26 5 1
23 5 1
26 5 1
23 5 1
26 5 1
23 5 1
26 5 1