microsoft / Nonprofits
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 192 units with 2,155 lines of code in units (16.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 7 medium complex units (347 lines of code)
    • 20 simple units (395 lines of code)
    • 165 very simple units (1,413 lines of code)
0% | 0% | 16% | 18% | 65%
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% | 0% | 18% | 21% | 60%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Damage Assessment Visualizer/js0% | 0% | 18% | 21% | 60%
Damage Assessment Visualizer/utils0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
value: function show()
in Damage Assessment Visualizer/js/noty.js
91 24 0
(function(module, exports, __webpack_require__)()
in Damage Assessment Visualizer/js/noty.js
43 20 3
(function(module, exports, __webpack_require__)()
in Damage Assessment Visualizer/js/noty.js
22 14 3
value: function getPermissionStatus()
in Damage Assessment Visualizer/js/noty.js
24 13 0
value: function requestSubscription()
in Damage Assessment Visualizer/js/noty.js
46 13 0
(function(module, exports, __webpack_require__)()
in Damage Assessment Visualizer/js/noty.js
96 11 3
(function(module, exports, __webpack_require__)()
in Damage Assessment Visualizer/js/noty.js
25 11 3
function invokeCallback()
in Damage Assessment Visualizer/js/noty.js
34 10 4
initialize: function()
in Damage Assessment Visualizer/js/easy-button.js
25 8 4
_buildButton: function()
in Damage Assessment Visualizer/js/easy-button.js
27 8 0
function inArray()
in Damage Assessment Visualizer/js/noty.js
18 8 3
function polyfill$1()
in Damage Assessment Visualizer/js/noty.js
26 8 0
(function(module, exports, __webpack_require__)()
in Damage Assessment Visualizer/js/noty.js
8 7 3
value: function unregisterWorker()
in Damage Assessment Visualizer/js/noty.js
30 7 0
asap()
in Damage Assessment Visualizer/js/noty.js
24 7 1
function handleMaybeThenable()
in Damage Assessment Visualizer/js/noty.js
16 7 3
value: function closeAll()
in Damage Assessment Visualizer/js/noty.js
13 7 0
function runTimeout()
in Damage Assessment Visualizer/js/noty.js
18 7 1
function runClearTimeout()
in Damage Assessment Visualizer/js/noty.js
18 7 1
function addListener()
in Damage Assessment Visualizer/js/noty.js
11 6 3