amazon-connect / amazon-connect-call-quality-monitoring
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 894 units with 10,297 lines of code in units (91.9% of code).
    • 2 very complex units (1,031 lines of code)
    • 4 complex units (352 lines of code)
    • 37 medium complex units (1,649 lines of code)
    • 64 simple units (1,327 lines of code)
    • 787 very simple units (5,938 lines of code)
10% | 3% | 16% | 12% | 57%
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
js10% | 3% | 16% | 13% | 56%
ts0% | 0% | 15% | 0% | 84%
py0% | 0% | 0% | 14% | 85%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
monitoring-stack-cdk/resources/frontend10% | 3% | 16% | 13% | 54%
monitoring-stack-cdk/lib0% | 0% | 22% | 0% | 77%
monitoring-stack-cdk/resources/lambda-functions/sendSoftPhoneMetricsvenv0% | 0% | 0% | 39% | 60%
monitoring-stack-cdk/resources/custom-resources/kibana-config0% | 0% | 0% | 0% | 100%
deployment-stack-cdk/lib0% | 0% | 0% | 0% | 100%
monitoring-stack-cdk/resources/lambda-functions/sendSoftPhoneReportvenv0% | 0% | 0% | 0% | 100%
monitoring-stack-cdk/resources/lambda-functions/sendAPIMetricReportvenv0% | 0% | 0% | 0% | 100%
monitoring-stack-cdk/resources/custom-resources/sar-confirmer0% | 0% | 0% | 0% | 100%
monitoring-stack-cdk/resources/custom-resources/frontend-generator0% | 0% | 0% | 0% | 100%
monitoring-stack-cdk/resources/lambda-functions/generateSQSmessages0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
RTCPeerConnection.prototype.setRemoteDescription = function()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
290 81 1
packetsCount: parseInt()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
741 60 1
RTCPeerConnection.prototype.createOffer = function()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
141 43 0
bytesReceived: parseInt()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
108 32 1
RTCPeerConnection.prototype.addIceCandidate = function()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
75 27 1
var $export = function()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
28 26 3
module.exports = function()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
111 24 2
var shimConstraints_ = function()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
50 24 2
impl = function()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
80 24 0
function transformSdp()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
73 23 2
module.exports = function()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
30 22 7
RTCPeerConnection.prototype.createAnswer = function()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
83 22 0
window.RTCPeerConnection.prototype.createOffer = function()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
48 20 1
value: function _buildMediaConstraints()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
67 20 0
var constraintsToChrome_ = function()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
38 18 1
var constraintsToFF37_ = function()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
43 17 1
value: function()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
69 17 0
function extractMediaStatsFromStats()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
34 17 3
function makeInvokeMethod()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
55 16 3
RTCPeerConnection.prototype.setLocalDescription = function()
in monitoring-stack-cdk/resources/frontend/connect-rtc.js
75 16 1