instagram / IGListKit
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 129 units with 1,080 lines of code in units (8.3% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (330 lines of code)
    • 2 medium complex units (44 lines of code)
    • 2 simple units (42 lines of code)
    • 123 very simple units (664 lines of code)
0% | 30% | 4% | 3% | 61%
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
mm0% | 59% | 0% | 0% | 40%
m0% | 0% | 27% | 25% | 46%
ts0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
swift0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Source/IGListDiffKit0% | 77% | 0% | 0% | 22%
spm/Sources/IGListDiffKit0% | 82% | 0% | 0% | 17%
spm/Sources/IGListKit0% | 0% | 12% | 12% | 74%
Source/IGListKit/Internal0% | 0% | 29% | 28% | 42%
remodel-plugin/src/plugins0% | 0% | 0% | 0% | 100%
Source/IGListKit0% | 0% | 0% | 0% | 100%
Source/IGListSwiftKit0% | 0% | 0% | 0% | 100%
spm/Sources/IGListDiffKit/include0% | 0% | 0% | 0% | 100%
spm/Sources/IGListKit/include0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
165 26 6
165 26 6
22 18 1
22 18 1
21 6 5
21 6 5
10 5 2
10 5 2
15 4 1
15 4 1
6 3 2
6 3 2
6 3 2
6 3 2
6 3 2
6 3 2
6 3 2
6 3 2
6 3 2
6 3 2
6 3 2
6 3 2
6 3 2
6 3 2
3 2 0
9 2 5
8 2 4
6 2 3
3 2 0
9 2 5
8 2 4
6 2 3
18 2 1
16 2 3
8 2 2
8 1 4
6 1 2
3 1 2
4 1 2
5 1 1
3 1 0
3 1 0
3 1 0
6 1 2
5 1 1
7 1 1
3 1 1
5 1 2
3 1 2
5 1 2