microsoft / MCW-Migrating-Oracle-to-Azure-SQL-and-PostgreSQL
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 1,095 units with 13,307 lines of code in units (77.8% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (225 lines of code)
    • 18 medium complex units (838 lines of code)
    • 159 simple units (3,834 lines of code)
    • 916 very simple units (8,410 lines of code)
0% | 1% | 6% | 28% | 63%
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% | 1% | 6% | 31% | 59%
cs0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lab-files/starter-project/NorthwindMVC/wwwroot/lib0% | 1% | 6% | 31% | 59%
lab-files/starter-project/NorthwindMVC/Controllers0% | 0% | 0% | 0% | 100%
lab-files/starter-project/NorthwindMVC/Data0% | 0% | 0% | 0% | 100%
lab-files/starter-project/NorthwindMVC0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
_computeLabelItems()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
141 31 1
function generateTicks$1()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
84 30 2
function drawPoint()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
102 19 4
_computeGridLineItems()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
111 18 1
updateElements()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
33 17 4
function _longestText()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
37 16 4
updateElements()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
32 16 4
function _boundSegment()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
41 15 3
parse()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
36 13 2
_calculateBarValuePixels()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
50 13 1
function minMaxDecimation()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
53 13 4
function mergeScaleConfig()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
32 12 2
_getStacks()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
35 12 2
fill: decodeFill()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
50 12 3
handleTickRangeOptions()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
29 12 0
_generate()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
30 12 0
function placeBoxes()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
40 11 4
_computeLabelSizes()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
44 11 2
buildOrUpdateScales()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
59 11 0
buildTicks()
in Hands-on lab/lab-files/starter-project/NorthwindMVC/wwwroot/lib/Chart.js/chart.js
24 11 0