microsoft / PartsUnlimitedMRP
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 5,039 units with 50,579 lines of code in units (63.3% of code).
    • 5 very complex units (1,217 lines of code)
    • 20 complex units (1,625 lines of code)
    • 161 medium complex units (6,495 lines of code)
    • 386 simple units (8,619 lines of code)
    • 4,467 very simple units (32,623 lines of code)
2% | 3% | 12% | 17% | 64%
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
js2% | 3% | 13% | 17% | 62%
java0% | 0% | 1% | 11% | 87%
groovy0% | 0% | 0% | 66% | 33%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/Clients/Web2% | 3% | 13% | 17% | 62%
src/Backend/OrderService0% | 0% | 1% | 14% | 84%
src/Backend/IntegrationService0% | 0% | 0% | 0% | 100%
Labfiles/DevOps200.1x-PracticesandPrinciples/Mod040% | 0% | 0% | 0% | 100%
Labfiles/DevOps200.1x-PracticesandPrinciples/Mod030% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function concludeRefresh()
in src/Clients/Web/winjs/js/winjs.js
691 233 0
(function ()()
in src/Clients/Web/winjs/js/winjs.js
212 91 1
79 73 1
oneTimeTextBindingAnalyze: function()
in src/Clients/Web/winjs/js/winjs.js
140 70 1
onKeyDown: function SelectionMode_onKeyDown()
in src/Clients/Web/winjs/js/winjs.js
95 56 1
function reservedWordLookup()
in src/Clients/Web/winjs/js/winjs.js
105 49 1
_synchronize: function ListView_synchronize()
in src/Clients/Web/winjs/js/winjs.js
165 46 0
115 43 1
onPointerUp: function ItemEventsHandler_onPointerUp()
in src/Clients/Web/winjs/js/winjs.js
75 41 1
function fetchItemsForAllSlots()
in src/Clients/Web/winjs/js/winjs.js
77 37 0
function processRefreshResults()
in src/Clients/Web/winjs/js/winjs.js
113 34 5
_keyDownHandler: function hub_keyDownHandler()
in src/Clients/Web/winjs/js/winjs.js
47 34 1
85 33 1
98 32 1
this.inserted = function()
in src/Clients/Web/winjs/js/winjs.js
50 30 4
_processBatch: function()
in src/Clients/Web/winjs/js/winjs.js
96 28 0
66 28 1
function refreshRanges()
in src/Clients/Web/winjs/js/winjs.js
45 27 2
dragOver: function _LayoutCommon_dragOver()
in src/Clients/Web/winjs/js/winjs.js
74 27 3
function delivered()
in src/Clients/Web/winjs/js/winjs.js
83 27 1