aws-solutions / real-time-insights-account-activity
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 71 units with 1,071 lines of code in units (13.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (224 lines of code)
    • 5 simple units (189 lines of code)
    • 62 very simple units (658 lines of code)
0% | 0% | 20% | 17% | 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
js0% | 0% | 17% | 19% | 62%
py0% | 0% | 49% | 0% | 50%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source/web_site/js0% | 0% | 19% | 30% | 49%
source/update_ddb_from_stream0% | 0% | 49% | 0% | 50%
source/helper/lib0% | 0% | 17% | 0% | 82%
source/helper0% | 0% | 0% | 0% | 100%
deployment/manifest-generator0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def lambda_handler()
in source/update_ddb_from_stream/update_ddb_from_stream.py
61 16 2
var updateDashboard = function()
in source/web_site/js/dash.js
79 15 0
$()
in source/web_site/js/dash.js
42 15 1
let uploadFile = function()
in source/helper/lib/website-helper.js
42 11 5
var updateLineChart = function()
in source/web_site/js/dash.js
54 9 4
var fastUpdateLineChart = function()
in source/web_site/js/dash.js
40 8 5
var fastUpdate = function()
in source/web_site/js/dash.js
39 8 0
var updateHorizontalBarChart = function()
in source/web_site/js/dash.js
23 7 5
var normalizeValues = function()
in source/web_site/js/dash.js
33 7 3
42 5 2
$()
in source/web_site/js/dash.js
17 5 1
let downloadWebisteManifest = function()
in source/helper/lib/website-helper.js
22 4 4
def put_record_with_retry()
in source/update_ddb_from_stream/update_ddb_from_stream.py
15 4 6
def merge_record_values()
in source/update_ddb_from_stream/update_ddb_from_stream.py
5 4 2
function getQSParameterByName()
in source/web_site/js/dash.js
11 4 2
let getFileList = function()
in deployment/manifest-generator/app.js
16 4 1
downloadWebisteManifest()
in source/helper/lib/website-helper.js
13 3 5
function getCongitoConfigParameterByName()
in source/web_site/js/dash.js
9 3 1
var dynamicColors = function()
in source/web_site/js/dash.js
7 3 1
function updateData()
in source/web_site/js/dash.js
16 3 5