amazon-connect / ai-powered-speech-analytics-for-amazon-connect
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 1,631 units with 17,689 lines of code in units (66.4% of code).
    • 4 very complex units (1,266 lines of code)
    • 4 complex units (235 lines of code)
    • 59 medium complex units (2,431 lines of code)
    • 131 simple units (2,686 lines of code)
    • 1,433 very simple units (11,071 lines of code)
7% | 1% | 13% | 15% | 62%
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
js7% | 1% | 13% | 15% | 61%
java0% | 0% | 11% | 11% | 76%
py0% | 0% | 0% | 100% | 0%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source/web_site7% | 1% | 14% | 15% | 61%
source/kvs_transcribe_streaming_lambda0% | 0% | 11% | 11% | 76%
source/helper0% | 0% | 13% | 0% | 86%
source/ws_realtime_transcribe_OnDDBInsert0% | 0% | 0% | 59% | 40%
source/start_codebuild0% | 0% | 0% | 100% | 0%
source/transcribing_fargate_trigger0% | 0% | 0% | 100% | 0%
source/ws_realtime_transcribe_OnMessage0% | 0% | 0% | 0% | 100%
source/contact_init0% | 0% | 0% | 0% | 100%
source/process_contact0% | 0% | 0% | 0% | 100%
source/ws_realtime_transcribe_Default0% | 0% | 0% | 0% | 100%
source/ws_realtime_transcribe_OnDisconnect0% | 0% | 0% | 0% | 100%
source/ws_realtime_transcribe_OnConnect0% | 0% | 0% | 0% | 100%
source/kvs_trigger0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
(function (global)()
in source/web_site/js/connectCCP.js
712 211 1
Url.prototype.resolveObject = function()
in source/web_site/js/connectCCP.js
195 101 1
visit: function()
in source/web_site/js/connectCCP.js
209 61 2
Url.prototype.parse = function()
in source/web_site/js/connectCCP.js
150 58 3
XMLNode.prototype.element = function()
in source/web_site/js/connectCCP.js
63 37 3
function formatValue()
in source/web_site/js/connectCCP.js
80 31 3
sprintf.format = function()
in source/web_site/js/connectCCP.js
48 31 2
Url.prototype.format = function()
in source/web_site/js/connectCCP.js
44 30 0
function utf8Slice()
in source/web_site/js/connectCCP.js
63 24 3
XMLElement.prototype.toString = function()
in source/web_site/js/connectCCP.js
56 24 2
function byteLength()
in source/web_site/js/connectCCP.js
40 22 2
function slowToString()
in source/web_site/js/connectCCP.js
46 22 3
function utf8ToBytes()
in source/web_site/js/connectCCP.js
60 22 2
led: function()
in source/web_site/js/connectCCP.js
78 22 2
function baseIsEqualDeep()
in source/web_site/js/connectCCP.js
50 22 7
(function (global)()
in source/web_site/js/connectCCP.js
65 22 1
error: function error()
in source/web_site/js/connectCCP.js
29 21 2
DomXmlParser.prototype.parse = function()
in source/web_site/js/connectCCP.js
64 21 2
nud: function()
in source/web_site/js/connectCCP.js
74 21 1
function bidirectionalIndexOf()
in source/web_site/js/connectCCP.js
44 20 5