aws-samples / ac-contactflowapi
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 42 units with 800 lines of code in units (40.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (146 lines of code)
    • 2 simple units (156 lines of code)
    • 37 very simple units (498 lines of code)
0% | 0% | 18% | 19% | 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
js0% | 0% | 18% | 19% | 62%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
website-creator/js0% | 0% | 15% | 23% | 61%
website-creator0% | 0% | 32% | 0% | 67%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function checkAllMandatoryFields()
in website-creator/js/connectflows.js
16 21 0
async function handlePushFlowWindow()
in website-creator/js/connectflows.js
86 18 2
async function uploadToS3()
in website-creator/website-helper.js
44 13 5
function setupAll()
in website-creator/js/connectflows.js
136 8 0
function getNameFromFlow()
in website-creator/js/connectflows.js
20 6 2
function backupContactFlows()
in website-creator/js/connectflows.js
19 4 1
function fillContactFlowTables()
in website-creator/js/connectflows.js
30 4 1
async function updateFlowDetails()
in website-creator/js/connectflows.js
19 4 0
async function changeContactFlowName()
in website-creator/js/connectflows.js
28 4 0
async function describeInstance()
in website-creator/js/connectflows.js
27 3 5
async function updateContactFlowDetails()
in website-creator/js/connectflows.js
22 3 0
function getCookie()
in website-creator/js/connectflows.js
14 3 1
websiteHelper.prototype.copyWebSiteAssets = function()
in website-creator/website-helper.js
22 3 2
$()
in website-creator/js/connectflows.js
11 2 1
$()
in website-creator/js/connectflows.js
6 2 1
$()
in website-creator/js/connectflows.js
6 2 1
function checkClearAll()
in website-creator/js/connectflows.js
11 2 2
async function getContactFlows()
in website-creator/js/connectflows.js
18 2 0
async function getContactFlows2()
in website-creator/js/connectflows.js
16 2 0
function handleWindow()
in website-creator/js/connectflows.js
6 2 2