aws-solutions / aws-virtual-waiting-room
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 78 units with 1,320 lines of code in units (31.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (333 lines of code)
    • 7 simple units (249 lines of code)
    • 67 very simple units (738 lines of code)
0% | 0% | 25% | 18% | 55%
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% | 19% | 53%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source/core-api0% | 0% | 32% | 16% | 50%
source/sample-inlet-strategies0% | 0% | 85% | 0% | 14%
source/openid-waitingroom0% | 0% | 0% | 41% | 58%
source/shared0% | 0% | 0% | 26% | 73%
source/token-authorizer0% | 0% | 0% | 22% | 77%
source/sample-waiting-room-site0% | 0% | 0% | 0% | 100%
source/tools0% | 0% | 0% | 0% | 100%
source/core-api-authorizers-sample0% | 0% | 0% | 0% | 100%
deployment0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def lambda_handler()
in source/sample-inlet-strategies/max_size_inlet.py
39 18 2
def lambda_handler()
in source/core-api/lambda_functions/auth_generate_token.py
130 15 2
def lambda_handler()
in source/core-api/lambda_functions/generate_token.py
126 14 2
def lambda_handler()
in source/sample-inlet-strategies/periodic_inlet.py
38 12 2
def lambda_handler()
in source/core-api/lambda_functions/assign_queue_num.py
32 10 2
def lambda_handler()
in source/core-api/lambda_functions/update_session.py
60 9 2
def token()
in source/openid-waitingroom/chalice/app.py
42 8 0
def verify_token()
in source/token-authorizer/chalice/app.py
17 6 2
def userinfo()
in source/openid-waitingroom/chalice/app.py
39 6 0
def lambda_handler()
in source/core-api/lambda_functions/get_list_expired_tokens.py
38 6 2
def put_web_contents()
in source/shared/custom_resources/cfn_bucket_loader.py
21 6 1
def api_gateway_authorizer()
in source/token-authorizer/chalice/app.py
10 5 2
def lambda_handler()
in source/core-api/lambda_functions/reset_initial_state.py
91 5 2
def create()
in source/core-api/custom_resources/generate_keys.py
25 5 2
def get_public_key()
in source/token-authorizer/chalice/app.py
17 4 0
def validate_oidc_request()
in source/openid-waitingroom/chalice/app.py
7 4 4
def lambda_handler()
in source/core-api/lambda_functions/get_queue_num.py
31 4 2
def lambda_handler()
in source/core-api/lambda_functions/get_num_active_tokens.py
40 4 2
def create_update()
in source/core-api/custom_resources/intersect_az.py
13 4 2
def delete_bucket_contents()
in source/shared/custom_resources/cfn_bucket_loader.py
13 4 1