microsoft / TiltInteractionForMobileVisualization
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 195 units with 3,643 lines of code in units (60.4% of code).
    • 1 very complex units (395 lines of code)
    • 6 complex units (698 lines of code)
    • 3 medium complex units (279 lines of code)
    • 24 simple units (851 lines of code)
    • 161 very simple units (1,420 lines of code)
10% | 19% | 7% | 23% | 38%
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
js10% | 19% | 7% | 23% | 38%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src17% | 19% | 8% | 24% | 30%
public0% | 18% | 6% | 22% | 51%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
395 85 0
function position()
in src/chart.js
152 45 1
function tiltHandler()
in src/index.js
143 33 1
function connectItem()
in public/bubblesets.js
101 32 3
function displayYear()
in src/chart.js
156 28 1
function doMarch()
in public/bubblesets.js
73 27 2
function rerouteLine()
in public/bubblesets.js
73 26 4
function redraw()
in src/countrySelector.js
87 25 0
100 18 0
this.createOutline = function()
in public/bubblesets.js
92 15 3
function fillPotentialArea()
in public/bubblesets.js
36 10 4
function getRectDistSq()
in public/bubblesets.js
37 10 3
79 10 0
function testContainment()
in public/bubblesets.js
30 9 4
function repeat()
in src/chart.js
40 9 0
function sandbox()
in src/sandbox.js
174 9 0
this.intersects = function()
in public/bubblesets.js
7 8 1
this.cuts = function()
in public/bubblesets.js
10 8 1
18 8 2
function position()
in src/carousel.js
72 8 1