aws-solutions / multi-region-application-architecture
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 50 units with 807 lines of code in units (29.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (21 lines of code)
    • 3 simple units (67 lines of code)
    • 46 very simple units (719 lines of code)
0% | 0% | 2% | 8% | 89%
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% | 10% | 12% | 76%
ts0% | 0% | 0% | 7% | 92%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source/console/src0% | 0% | 10% | 12% | 76%
source/stack-name-formatter0% | 0% | 0% | 33% | 66%
source/routing-configurer0% | 0% | 0% | 12% | 87%
source/presentation-configurer/source0% | 0% | 0% | 0% | 100%
source/stackset-output-consolidator0% | 0% | 0% | 0% | 100%
source/dynamodb-global-table-configurer/source0% | 0% | 0% | 0% | 100%
source/uuid-generator0% | 0% | 0% | 0% | 100%
source/utils0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
static async getAppState()
in source/console/src/Common.js
21 13 0
constructor()
in source/routing-configurer/state-updater.ts
17 8 1
async function processEvent()
in source/stack-name-formatter/index.ts
26 7 1
async beginUploadImageWorkflow()
in source/console/src/App.js
24 6 0
async function processEvent()
in source/presentation-configurer/source/index.ts
22 5 1
async function processEvent()
in source/uuid-generator/index.ts
22 5 1
async function processEvent()
in source/dynamodb-global-table-configurer/source/index.ts
22 5 1
async function handleCreate()
in source/routing-configurer/state-updater.ts
18 5 1
async function processEvent()
in source/routing-configurer/state-updater.ts
22 5 1
async componentDidMount()
in source/console/src/App.js
49 4 0
async function processEvent()
in source/stackset-output-consolidator/index.ts
19 4 1
async sendAnonymousMetric()
in source/utils/metrics.ts
18 3 1
async function handleCreate()
in source/uuid-generator/index.ts
13 2 1
async componentDidMount()
in source/console/src/Routing.js
42 2 0
render()
in source/console/src/Routing.js
8 2 0
async function handleCreate()
in source/dynamodb-global-table-configurer/source/index.ts
23 2 1
async function updateState()
in source/routing-configurer/state-updater.ts
17 2 3
export async function handleCreate()
in source/stack-name-formatter/index.ts
7 2 1
async function handleCreate()
in source/stackset-output-consolidator/index.ts
30 2 1
export async function handleCreate()
in source/presentation-configurer/source/index.ts
47 1 1