anthropics / claude-plugins-official
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 241 units with 4,960 lines of code in units (41.7% of code).
    • 1 very complex units (270 lines of code)
    • 8 complex units (693 lines of code)
    • 30 medium complex units (1,242 lines of code)
    • 57 simple units (1,400 lines of code)
    • 145 very simple units (1,355 lines of code)
5% | 13% | 25% | 28% | 27%
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
py6% | 15% | 24% | 30% | 22%
ts0% | 7% | 25% | 20% | 47%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
plugins7% | 13% | 25% | 30% | 22%
.github0% | 72% | 0% | 10% | 17%
external_plugins0% | 7% | 25% | 20% | 47%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
270 61 1
172 48 1
110 39 0
56 30 1
138 30 0
70 30 1
27 29 1
49 28 7
71 26 1
204 25 1
80 23 1
50 21 2
40 21 2
41 20 4
31 19 2
19 17 1
46 16 1
66 16 3
33 15 3
39 15 3
33 15 1
25 15 2
41 15 1
69 14 0
18 14 3
29 14 0
26 14 3
41 14 2
25 13 1
24 13 1
34 13 1
32 12 2
34 12 3
28 12 2
65 11 0
10 11 1
21 11 3
17 11 2
21 11 2
59 10 1
42 10 2
19 10 1
31 10 1
27 10 1
95 10 0
37 10 4
18 10 2
21 10 1
24 9 1
27 9 1