aws-samples / dotnet-share-auth-cookie-between-monolith-and-modernized-apps
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 633 units with 8,204 lines of code in units (43.4% of code).
    • 1 very complex units (999 lines of code)
    • 1 complex units (89 lines of code)
    • 33 medium complex units (1,369 lines of code)
    • 71 simple units (1,533 lines of code)
    • 527 very simple units (4,214 lines of code)
12% | 1% | 16% | 18% | 51%
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
js13% | 1% | 18% | 20% | 45%
cs0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Legacy.Monolith/Scripts13% | 1% | 18% | 20% | 45%
Modernized.Infrastructure0% | 0% | 0% | 0% | 100%
Legacy.Monolith/Controllers0% | 0% | 0% | 0% | 100%
Modernized.Backend.ServiceA0% | 0% | 0% | 0% | 100%
Modernized.Backend.ServiceB0% | 0% | 0% | 0% | 100%
Modernized.Lambda.Authorizer0% | 0% | 0% | 0% | 100%
Legacy.Monolith/App_Start0% | 0% | 0% | 0% | 100%
Legacy.Monolith/Services0% | 0% | 0% | 0% | 100%
Modernized.Backend.ServiceA/Services0% | 0% | 0% | 0% | 100%
Modernized.Backend.ServiceB/Services0% | 0% | 0% | 0% | 100%
Modernized.Lambda.Authorizer/Services0% | 0% | 0% | 0% | 100%
Legacy.Monolith0% | 0% | 0% | 0% | 100%
Modernized.Backend.ServiceA/Controllers0% | 0% | 0% | 0% | 100%
Modernized.Backend.ServiceB/Controllers0% | 0% | 0% | 0% | 100%
Modernized.Lambda.Authorizer/Error0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
(function (global, factory)()
in Legacy.Monolith/Scripts/bootstrap.bundle.js
999 79 2
function preventOverflow()
in Legacy.Monolith/Scripts/bootstrap.bundle.js
89 35 1
function flip()
in Legacy.Monolith/Scripts/bootstrap.bundle.js
99 25 1
static clearMenus()
in Legacy.Monolith/Scripts/bootstrap.esm.js
32 20 1
function mapToStyles()
in Legacy.Monolith/Scripts/bootstrap.bundle.js
52 20 1
static clearMenus()
in Legacy.Monolith/Scripts/bootstrap.bundle.js
32 20 1
function detectOverflow()
in Legacy.Monolith/Scripts/bootstrap.bundle.js
49 18 2
static dataApiKeydownHandler()
in Legacy.Monolith/Scripts/bootstrap.esm.js
30 17 1
static dataApiKeydownHandler()
in Legacy.Monolith/Scripts/bootstrap.bundle.js
30 17 1
function addHandler()
in Legacy.Monolith/Scripts/bootstrap.esm.js
39 15 5
show()
in Legacy.Monolith/Scripts/bootstrap.esm.js
62 15 0
show()
in Legacy.Monolith/Scripts/bootstrap.esm.js
61 15 0
function addHandler()
in Legacy.Monolith/Scripts/bootstrap.bundle.js
39 15 5
show()
in Legacy.Monolith/Scripts/bootstrap.bundle.js
62 15 0
function getContainingBlock()
in Legacy.Monolith/Scripts/bootstrap.bundle.js
20 15 1
show()
in Legacy.Monolith/Scripts/bootstrap.bundle.js
61 15 0
_addTouchEventListeners()
in Legacy.Monolith/Scripts/bootstrap.esm.js
39 13 0
_slide()
in Legacy.Monolith/Scripts/bootstrap.esm.js
62 13 2
show()
in Legacy.Monolith/Scripts/bootstrap.esm.js
42 13 0
_adjustDialog()
in Legacy.Monolith/Scripts/bootstrap.esm.js
11 13 0