aws-samples / serverless-content-syndication-with-aws-step-functions
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 28 units with 531 lines of code in units (84.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 2 simple units (83 lines of code)
    • 26 very simple units (448 lines of code)
0% | 0% | 0% | 15% | 84%
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
ts0% | 0% | 0% | 15% | 84%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/handlers0% | 0% | 0% | 34% | 65%
cdk/lib/partners0% | 0% | 0% | 0% | 100%
cdk/lib0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
56 6 1
27 6 1
private createWorkflow()
in cdk/lib/partners/ACE.ts
24 2 0
84 2 1
8 1 3
6 1 4
constructor()
in cdk/lib/syndication-workflow.ts
11 1 3
private createStateMachine()
in cdk/lib/syndication-workflow.ts
19 1 0
private setupLambdaForS3Events()
in cdk/lib/syndication-workflow.ts
17 1 1
private setupLambdaToHandleFinishedTranscoding()
in cdk/lib/syndication-workflow.ts
16 1 1
constructor()
in cdk/lib/partners/ACE.ts
9 1 5
private isProviderEnabled()
in cdk/lib/partners/ACE.ts
3 1 0
25 1 1
private createPostProcessingTask()
in cdk/lib/partners/ACE.ts
15 1 1
24 1 1
constructor()
in cdk/lib/partners/other.ts
4 1 3
private isProviderEnabled()
in cdk/lib/partners/other.ts
3 1 0
private createWorkflow()
in cdk/lib/partners/other.ts
20 1 0
export async function ProcessMetadata()
in src/handlers/provider-ace.ts
21 1 1
export async function ProcessImages()
in src/handlers/provider-ace.ts
24 1 1