microsoft / CSE-Telehealth-Samples
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 481 units with 3,962 lines of code in units (48.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 8 medium complex units (234 lines of code)
    • 21 simple units (453 lines of code)
    • 452 very simple units (3,275 lines of code)
0% | 0% | 5% | 11% | 82%
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% | 10% | 10% | 79%
cs0% | 0% | 0% | 13% | 86%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
WebPortal/Scripts0% | 0% | 10% | 10% | 79%
TrayListener0% | 0% | 0% | 24% | 75%
API/Controllers0% | 0% | 0% | 23% | 76%
SfB Trusted Application/Controllers0% | 0% | 0% | 42% | 57%
API/Filters0% | 0% | 0% | 26% | 73%
SfB Trusted Application0% | 0% | 0% | 0% | 100%
SfB Trusted Application/Job0% | 0% | 0% | 0% | 100%
WebPortal/Controllers0% | 0% | 0% | 0% | 100%
WebPortal/Models0% | 0% | 0% | 0% | 100%
WebPortal/App_Start0% | 0% | 0% | 0% | 100%
API/Results0% | 0% | 0% | 0% | 100%
API/App_Start0% | 0% | 0% | 0% | 100%
SfB Trusted Application/App_Start0% | 0% | 0% | 0% | 100%
WebPortal0% | 0% | 0% | 0% | 100%
API/ErrorHandler0% | 0% | 0% | 0% | 100%
SfB Trusted Application/ErrorHandler0% | 0% | 0% | 0% | 100%
WebPortal/ErrorHandler0% | 0% | 0% | 0% | 100%
WebPortal/SignalR0% | 0% | 0% | 0% | 100%
API0% | 0% | 0% | 0% | 100%
SfB Trusted Application/Models0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
return t.getTimezone = function()
in WebPortal/Scripts/speedtest.js
42 21 0
function u()
in WebPortal/Scripts/speedtest.js
5 17 1
function meetingConversationAdded()
in WebPortal/Scripts/multivideo.js
77 15 1
function i()
in WebPortal/Scripts/speedtest.js
14 13 1
return t.prototype.setHandler = function()
in WebPortal/Scripts/speedtest.js
15 12 1
function ChangeDevices()
in WebPortal/Scripts/multivideo.js
74 11 1
return t.prototype.setHandler = function()
in WebPortal/Scripts/speedtest.js
2 11 1
return t.prototype.getContent = function()
in WebPortal/Scripts/speedtest.js
5 11 0
function getBrowser()
in WebPortal/Scripts/meeting.js
15 9 0
function h()
in WebPortal/Scripts/speedtest.js
13 9 1
e.onreadystatechange = function()
in WebPortal/Scripts/speedtest.js
8 9 0
function onIsVideoOnChanged()
in WebPortal/Scripts/multivideo.js
23 8 1
function l()
in WebPortal/Scripts/speedtest.js
4 8 4
return n.prototype.selectTab = function()
in WebPortal/Scripts/speedtest.js
3 8 1
function t()
in WebPortal/Scripts/speedtest.js
9 8 1
function i()
in WebPortal/Scripts/speedtest.js
14 8 1
public async Task Put()
in API/Controllers/MeetingController.cs
63 7 1
private void HubConnection_StateChanged()
in TrayListener/MainWindow.xaml.cs
38 7 1
private async void SignIn()
in TrayListener/MainWindow.xaml.cs
39 7 2
f.onreadystatechange = function()
in WebPortal/Scripts/speedtest.js
8 7 0