aws-solutions / aws-data-lake-solution
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,085 units with 14,262 lines of code in units (69.4% of code).
    • 2 very complex units (623 lines of code)
    • 2 complex units (245 lines of code)
    • 16 medium complex units (848 lines of code)
    • 67 simple units (2,312 lines of code)
    • 998 very simple units (10,234 lines of code)
4% | 1% | 5% | 16% | 71%
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
js4% | 1% | 5% | 16% | 71%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source/api/services/admin21% | 0% | 3% | 23% | 50%
source/console/app/lib5% | 1% | 8% | 13% | 71%
source/api/services/package0% | 11% | 3% | 22% | 61%
source/api/services/cart0% | 0% | 29% | 29% | 40%
source/console/app/package0% | 0% | 22% | 19% | 58%
source/api/services/search0% | 0% | 11% | 22% | 65%
source/resources/access-validator0% | 0% | 35% | 40% | 24%
source/api/authorizer0% | 0% | 0% | 56% | 43%
source/resources/helper/lib0% | 0% | 0% | 10% | 89%
source/console/app/common0% | 0% | 0% | 3% | 96%
source/console/app/admin0% | 0% | 0% | 7% | 92%
source/api/services/profile0% | 0% | 0% | 17% | 82%
source/console/app/search0% | 0% | 0% | 24% | 75%
source/api/services/logging0% | 0% | 0% | 20% | 79%
source/api/services/manifest0% | 0% | 0% | 6% | 93%
source/resources/helper0% | 0% | 0% | 0% | 100%
source/console/app/profile0% | 0% | 0% | 0% | 100%
source/console/app/cart0% | 0% | 0% | 0% | 100%
source/cli/core0% | 0% | 0% | 0% | 100%
source/resources/loader/core0% | 0% | 0% | 0% | 100%
source/resources/loader0% | 0% | 0% | 0% | 100%
source/console/app/dashboard0% | 0% | 0% | 0% | 100%
source/console/app/forgot0% | 0% | 0% | 0% | 100%
deployment/manifest-generator0% | 0% | 0% | 0% | 100%
source/console/app/signin0% | 0% | 0% | 0% | 100%
source/console/app/confirm0% | 0% | 0% | 0% | 100%
source/console/app/main0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function build()
in source/console/app/lib/aws-ui/AWS-UI-Components/components.js
196 120 11
function processRequest()
in source/api/services/admin/lib/index.js
427 85 3
function processRequest()
in source/api/services/package/lib/index.js
206 48 3
function setAttributes()
in source/console/app/lib/aws-ui/AWS-UI-Components/components.js
39 33 5
function m()
in source/console/app/lib/aws-ui/AWS-UI-Components/components.js
34 24 0
m.route = function()
in source/console/app/lib/aws-ui/AWS-UI-Components/components.js
42 19 0
function processRequest()
in source/api/services/cart/lib/index.js
89 17 3
function ajax()
in source/console/app/lib/aws-ui/AWS-UI-Components/components.js
32 17 1
Select.prototype.bindKeys = function()
in source/console/app/lib/aws-ui/AWS-UI-Components/components.js
61 17 0
getManifestImportedDatasetsList()
in source/api/services/package/lib/content-package.js
67 15 4
$scope.createPackage = function()
in source/console/app/package/package.js
65 14 2
let getCartItemDetails = function()
in source/api/services/cart/lib/cart.js
64 13 4
render: function()
in source/console/app/lib/aws-ui/AWS-UI-Components/components.js
28 13 2
(function(root, factory)()
in source/console/app/lib/aws-ui/AWS-UI-Components/components.js
73 13 2
AccessValidator.prototype.validate = function()
in source/resources/access-validator/access-validator.js
47 13 4
xhrOptions.onload = xhrOptions.onerror = function()
in source/console/app/lib/aws-ui/AWS-UI-Components/components.js
19 12 1
var getPackageDetails = function()
in source/console/app/package/package.js
87 12 1
getUserPoolConfigInfo()
in source/api/services/admin/lib/user.js
65 11 2
function processRequest()
in source/api/services/search/lib/index.js
65 11 3
function routeUnobtrusive()
in source/console/app/lib/aws-ui/AWS-UI-Components/components.js
10 11 1