aws-samples / aws-ekyc-sample
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 130 units with 3,115 lines of code in units (42.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (156 lines of code)
    • 19 simple units (775 lines of code)
    • 108 very simple units (2,184 lines of code)
0% | 0% | 5% | 24% | 70%
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
cs0% | 0% | 7% | 36% | 56%
ts0% | 0% | 0% | 0% | 100%
tsx0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
packages/ekyc-api/src0% | 0% | 8% | 36% | 55%
packages/Base64Encoder0% | 0% | 0% | 100% | 0%
packages/lambdas/CheckRekognitionProject0% | 0% | 0% | 24% | 75%
packages/lambdas/GroundTruthJobHandler0% | 0% | 0% | 23% | 76%
infra/resources0% | 0% | 0% | 0% | 100%
infra/lib0% | 0% | 0% | 0% | 100%
packages/ui/src0% | 0% | 0% | 0% | 100%
packages/PostDeploymentScripts/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public async Task VerifyImageLiveness()
in packages/ekyc-api/src/ekyc-api/Utils/LivenessChecker.cs
66 20 1
private async Task CompareFacialLandmarks()
in packages/ekyc-api/src/ekyc-api/Utils/LivenessChecker.cs
41 16 3
public async Task SubmitSelfie()
in packages/ekyc-api/src/ekyc-api/Controllers/SessionController.cs
49 11 2
public async Task GetFieldValues()
in packages/ekyc-api/src/ekyc-api/Controllers/DataController.cs
50 10 1
public async Task SubmitDocumentForVerification()
in packages/ekyc-api/src/ekyc-api/Controllers/SessionController.cs
45 10 3
public async Task GetDocumentType()
in packages/ekyc-api/src/ekyc-api/DocumentDefinitions/RekognitionDocumentChecker.cs
52 8 1
private async Task VerifyNoseLocation()
in packages/ekyc-api/src/ekyc-api/Utils/LivenessChecker.cs
33 8 3
private async Task VerifySelfieFacePose()
in packages/ekyc-api/src/ekyc-api/Utils/LivenessChecker.cs
17 8 1
public async Task GetFaces()
in packages/ekyc-api/src/ekyc-api/Controllers/DataController.cs
26 8 1
public async Task StartLabellingJob()
in packages/ekyc-api/src/ekyc-api/Controllers/TrainingController.cs
131 8 1
public async Task SubmitFaceWithNosePointing()
in packages/ekyc-api/src/ekyc-api/Controllers/SessionController.cs
37 8 2
public async Task SubmitEyesClosedFace()
in packages/ekyc-api/src/ekyc-api/Controllers/SessionController.cs
37 8 2
private static void Main()
in packages/Base64Encoder/Program.cs
44 8 1
private List GetNextValueLines()
in packages/ekyc-api/src/ekyc-api/DocumentDefinitions/ID-KTP/ID_KTP_DocumentDefinition.cs
24 7 3
public async Task GetDocumentDefinitionByType()
in packages/ekyc-api/src/ekyc-api/Utils/DocumentDefinitionFactory.cs
36 7 1
public async Task CreateNewSession()
in packages/ekyc-api/src/ekyc-api/Utils/SessionManager.cs
74 7 1
public async Task DetectAndSetDocumentType()
in packages/ekyc-api/src/ekyc-api/Controllers/DocumentController.cs
23 7 2
public async Task VerifyLiveness()
in packages/ekyc-api/src/ekyc-api/Controllers/LivenessController.cs
41 7 1
public async Task FunctionHandler()
in packages/lambdas/CheckRekognitionProject/src/CheckRekognitionProject/Function.cs
32 6 2
public async Task FunctionHandler()
in packages/lambdas/GroundTruthJobHandler/src/GroundTruthJobHandler/Function.cs
20 6 2