microsoft / PowerBI-visuals-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 376 units with 9,320 lines of code in units (77.9% of code).
    • 4 very complex units (1,895 lines of code)
    • 10 complex units (1,054 lines of code)
    • 30 medium complex units (2,101 lines of code)
    • 27 simple units (1,142 lines of code)
    • 305 very simple units (3,128 lines of code)
20% | 11% | 22% | 12% | 33%
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
ts21% | 10% | 21% | 12% | 33%
js0% | 31% | 41% | 0% | 27%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/core22% | 11% | 21% | 11% | 32%
src/core/lib0% | 20% | 47% | 0% | 31%
src/core/dialogs0% | 0% | 33% | 0% | 66%
src/lib0% | 0% | 22% | 59% | 18%
src0% | 0% | 0% | 40% | 59%
src/core/templates0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function update()
in src/core/configurableTL.ts
656 206 12
function delayedUpdate()
in src/core/configurableTL.ts
418 120 7
787 60 3
selectAllWithParent()
in src/core/main.ts
34 51 1
function determineSize()
in src/core/main.ts
308 45 4
function configureTimelineScaleSegments()
in src/core/configurableTL.ts
143 42 11
function a()
in src/core/lib/gif.js
24 40 2
function earlyUpdate()
in src/core/configurableTL.ts
95 39 7
selectAllWithParent()
in src/core/main.ts
34 38 1
function updateScale()
in src/core/configurableTL.ts
126 37 2
function a()
in src/core/lib/gif.js
21 34 1
function configureLinearAxis()
in src/core/configurableTL.ts
164 32 12
function assignTracks()
in src/core/main.ts
84 29 3
function a()
in src/core/lib/gif.worker.js
55 27 2
function I()
in src/core/lib/gif.worker.js
90 25 0
function changeScene()
in src/core/main.ts
141 25 1
function hasDataViewChanged()
in src/lib/calcUpdateType.ts
36 24 3
192 23 0
function configureSegments()
in src/core/configurableTL.ts
92 22 8
function initialOpacity()
in src/core/configurableTL.ts
32 20 8