reactjs / az.reactjs.org
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 70 units with 1,493 lines of code in units (22.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 3 simple units (136 lines of code)
    • 67 very simple units (1,357 lines of code)
0% | 0% | 0% | 9% | 90%
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
js0% | 0% | 0% | 9% | 90%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/templates0% | 0% | 0% | 34% | 65%
src/components0% | 0% | 0% | 3% | 96%
src0% | 0% | 0% | 14% | 85%
src/pages0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
src/utils0% | 0% | 0% | 0% | 100%
gatsby0% | 0% | 0% | 0% | 100%
static/js0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
plugins/gatsby-remark-header-custom-ids0% | 0% | 0% | 0% | 100%
plugins/gatsby-transformer-versions-yaml0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
97 8 0
19 7 1
20 6 1
11 5 2
186 5 0
148 5 0
12 4 0
13 4 2
16 4 0
10 3 1
10 3 1
14 3 1
13 3 2
18 3 1
13 3 3
10 3 1
7 3 0
13 3 1
54 3 0
14 3 3
40 3 0
6 2 3
7 2 1
11 2 0
4 2 2
5 2 2
5 2 1
16 2 0
19 2 2
4 2 1
12 2 0
62 2 0
39 2 0
7 2 2
14 2 1
22 2 2
5 2 1
3 1 1
10 1 1
17 1 1
3 1 1
38 1 0
5 1 2
3 1 1
3 1 1
2 1 2
4 1 2
13 1 2
5 1 2
3 1 0