reactjs / React.NET
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 548 units with 4,955 lines of code in units (47.5% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (109 lines of code)
    • 4 medium complex units (245 lines of code)
    • 20 simple units (584 lines of code)
    • 522 very simple units (4,017 lines of code)
0% | 2% | 4% | 11% | 81%
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
cs0% | 2% | 5% | 11% | 81%
js0% | 0% | 0% | 33% | 66%
rb0% | 0% | 0% | 73% | 26%
tsx0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/React.Core0% | 3% | 7% | 14% | 74%
src/React.Router0% | 0% | 0% | 29% | 70%
site/jekyll0% | 0% | 0% | 73% | 26%
src/React.AspNet.Middleware0% | 0% | 0% | 0% | 100%
src/React.Template0% | 0% | 0% | 0% | 100%
src/React.Sample.Mvc40% | 0% | 0% | 0% | 100%
src/React.Web0% | 0% | 0% | 0% | 100%
src/React.AspNet0% | 0% | 0% | 0% | 100%
src/React.MSBuild0% | 0% | 0% | 0% | 100%
src/Cassette.React0% | 0% | 0% | 0% | 100%
src/React.Sample.Owin0% | 0% | 0% | 0% | 100%
webhooks0% | 0% | 0% | 0% | 100%
src/React.Owin0% | 0% | 0% | 0% | 100%
src/React.Sample.Cassette0% | 0% | 0% | 0% | 100%
src/React.Sample.ConsoleApp0% | 0% | 0% | 0% | 100%
src/System.Web.Optimization.React0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
58 32 3
51 28 3
89 25 3
26 15 2
54 12 5
76 12 5
25 10 1
59 10 11
53 9 1
19 8 2
29 8 1
38 8 1
8 8 2
13 8 1
38 8 1
16 8 3
40 8 3
31 7 0
23 7 1
26 7 0
42 6 2
18 6 2
25 6 2
23 6 2
19 6 2
39 6 2
16 5 2
31 5 0
24 5 1
17 5 1
17 5 1
13 5 3
12 5 4
14 5 3
17 5 2
13 5 2
30 5 2
17 5 2
41 4 2
12 4 4
16 4 0
7 4 2
7 4 2
16 4 6
14 4 3
9 4 2
9 4 2
11 4 1
19 4 2
8 4 1