microsoft / timelinestoryteller
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 310 units with 9,225 lines of code in units (38.2% of code).
    • 4 very complex units (1,939 lines of code)
    • 7 complex units (975 lines of code)
    • 27 medium complex units (1,952 lines of code)
    • 22 simple units (1,046 lines of code)
    • 250 very simple units (3,313 lines of code)
21% | 10% | 21% | 11% | 35%
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
js21% | 10% | 21% | 11% | 35%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src22% | 11% | 21% | 11% | 32%
src/lib0% | 0% | 36% | 11% | 52%
src/dialogs0% | 0% | 28% | 0% | 71%
src/spec0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
src/templates0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function update()
in src/configurableTL.js
656 206 12
function delayedUpdate()
in src/configurableTL.js
418 120 7
831 67 3
selectAllWithParent()
in src/main.js
34 51 1
325 45 4
147 42 11
function earlyUpdate()
in src/configurableTL.js
95 39 7
selectAllWithParent()
in src/main.js
34 38 1
function updateScale()
in src/configurableTL.js
126 37 2
function configureLinearAxis()
in src/configurableTL.js
164 32 12
84 29 3
141 25 1
192 23 0
function configureSegments()
in src/configurableTL.js
92 22 8
function initialOpacity()
in src/configurableTL.js
32 20 8
83 18 15
31 17 2
104 17 2
55 16 14
selectWithParent()
in src/main.js
24 16 0