openai / privacy-filter
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 221 units with 3,245 lines of code in units (44.3% of code).
    • 1 very complex units (652 lines of code)
    • 1 complex units (327 lines of code)
    • 5 medium complex units (323 lines of code)
    • 11 simple units (304 lines of code)
    • 203 very simple units (1,639 lines of code)
20% | 10% | 9% | 9% | 50%
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
py20% | 10% | 9% | 9% | 50%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
opf20% | 10% | 9% | 9% | 50%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
652 86 3
327 38 3
143 18 2
35 13 1
61 13 3
49 12 3
35 11 1
43 10 2
23 10 1
47 9 2
42 8 1
44 8 1
24 7 3
10 6 2
12 6 2
37 6 2
11 6 1
11 6 1
9 5 3
18 5 1
11 5 3
14 5 1
7 4 1
8 4 2
10 4 1
8 4 1
15 4 1
40 4 0
9 4 1
11 4 1
14 4 1
10 4 2
11 3 3
6 3 2
6 3 1
7 3 3
11 3 0
7 3 4
13 3 3
2 3 1
9 3 4
4 3 3
7 3 1
7 3 1
20 3 1
7 3 1
11 3 3
7 3 1
11 3 4
11 3 2