microsoft / AcademicContent
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 521 units with 5,958 lines of code in units (55.2% of code).
    • 1 very complex units (156 lines of code)
    • 3 complex units (299 lines of code)
    • 25 medium complex units (828 lines of code)
    • 39 simple units (982 lines of code)
    • 453 very simple units (3,693 lines of code)
2% | 5% | 13% | 16% | 61%
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% | 5% | 14% | 16% | 61%
cs0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Events and Hacks/Tech Talks/ContainerDemo3% | 7% | 16% | 19% | 53%
Educator Resources/Complimentary Course Content/Module20% | 0% | 16% | 2% | 80%
Events and Hacks/Azure University Tour/WebAppHOL0% | 0% | 0% | 20% | 79%
Events and Hacks/Tech Talks/busbot0% | 0% | 0% | 20% | 79%
Labs/AI and Machine Learning/Video Indexer0% | 0% | 0% | 0% | 100%
Events and Hacks/Azure Machine Learning Challenge/Client0% | 0% | 0% | 0% | 100%
Labs/Azure Services/Azure Blockchain Service0% | 0% | 0% | 0% | 100%
Events and Hacks/AI Hackathon/Code and Data0% | 0% | 0% | 0% | 100%
Labs/Azure Services/VM Scaling0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
var lex = function()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
156 66 0
function has()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
125 44 1
var serialize = function()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
114 40 7
function Socket()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
60 37 2
var get = function()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
81 24 1
this._initBody = function()
in Educator Resources/Complimentary Course Content/Module2/code/lesson7/lab/public/js/fetch.js
30 21 1
function decodeString()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
56 21 1
function parse()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
30 19 1
function _hasBinary()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
27 19 1
function Request()
in Educator Resources/Complimentary Course Content/Module2/code/lesson7/lab/public/js/fetch.js
33 18 2
function Request()
in Educator Resources/Complimentary Course Content/Module2/code/lesson8/Lab/public/js/fetch.polyfill.js
33 17 2
(function (global)()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
30 17 1
JSON3.stringify = function()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
27 17 3
function url()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
36 14 2
exports.decodePayload = function()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
42 14 3
(function (global)()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
34 14 1
var quote = function()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
23 14 1
exports.encodePacket = function()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
26 13 4
function Manager()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
32 12 2
Polling.prototype.uri = function()
in Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/result/views/socket.io.js
20 12 0