Conditional Complexity Overall
  • There are 475 units with 7,367 lines of code in units (14.3% of code).
    • 0 very complex units (0 lines of code)
    • 8 complex units (821 lines of code)
    • 27 medium complex units (1,206 lines of code)
    • 70 simple units (1,855 lines of code)
    • 370 very simple units (3,485 lines of code)
0% | 11% | 16% | 25% | 47%
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% | 11% | 17% | 24% | 46%
ts0% | 0% | 0% | 34% | 65%
c0% | 0% | 0% | 44% | 55%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
claude_agent_sdk0% | 22% | 14% | 29% | 34%
scripts0% | 41% | 26% | 21% | 11%
tool_use0% | 12% | 11% | 31% | 44%
capabilities0% | 3% | 11% | 24% | 60%
skills0% | 0% | 16% | 15% | 67%
.claude0% | 0% | 34% | 31% | 34%
managed_agents0% | 0% | 15% | 16% | 68%
.github0% | 0% | 52% | 26% | 20%
evals0% | 0% | 0% | 59% | 40%
patterns0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
129 46 1
86 36 1
73 33 1
59 31 1
117 31 3
219 29 0
46 28 4
92 28 1
72 25 1
40 25 1
60 24 3
52 24 1
79 22 3
60 20 0
36 19 4
24 17 2
48 17 3
39 16 3
30 16 1
52 16 1
62 15 1
61 15 3
15 14 3
65 13 4
17 13 2
17 12 2
29 12 3
31 11 2
27 11 2
19 11 1
50 11 2
44 11 1
29 11 1
106 11 0
42 11 3
172 10 2
60 10 0
54 10 0
45 10 3
44 10 3
11 10 1
13 10 1
50 10 0
18 10 0
36 10 1
24 10 0
24 9 2
28 9 2
44 9 0
27 9 1
About This Analysis
  • 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...