awslabs / auto-check-in-app
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 22 units with 386 lines of code in units (82.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (102 lines of code)
    • 1 simple units (43 lines of code)
    • 19 very simple units (241 lines of code)
0% | 0% | 26% | 11% | 62%
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
py0% | 0% | 26% | 11% | 62%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
frontend0% | 0% | 41% | 0% | 58%
backend/rekognize-face-lambda0% | 0% | 0% | 75% | 24%
backend/create-collection-lambda0% | 0% | 0% | 0% | 100%
backend/index-face-lambda0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def run()
in source/frontend/controller.py
57 15 1
def detect()
in source/frontend/detector.py
45 12 2
def lambda_handler()
in source/backend/rekognize-face-lambda/function.py
43 7 2
def __init__()
in source/frontend/viewer.py
9 4 2
def read()
in source/frontend/video_capture.py
11 4 1
def lambda_handler()
in source/backend/create-collection-lambda/function.py
21 4 2
def lambda_handler()
in source/backend/index-face-lambda/function.py
35 4 2
def show_welcome()
in source/frontend/viewer.py
22 3 3
def _update_name_list()
in source/frontend/controller.py
5 3 1
def __init__()
in source/frontend/video_capture.py
13 3 3
def main()
in source/frontend/main.py
19 3 0
def __init__()
in source/frontend/detector.py
15 3 2
def send()
in source/backend/create-collection-lambda/cfnresponse.py
25 3 6
def __init__()
in source/frontend/controller.py
17 2 3
def release()
in source/frontend/video_capture.py
3 2 1
def show_checking()
in source/frontend/viewer.py
11 1 2
def show_next()
in source/frontend/viewer.py
2 1 1
def _sign()
in source/frontend/controller.py
2 1 3
def _get_signature_key()
in source/frontend/controller.py
6 1 5
def _get_id_token_by_cognito()
in source/frontend/controller.py
11 1 3