aws-quickstart / quickstart-amazon-eks
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 70 units with 900 lines of code in units (14.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 8 medium complex units (270 lines of code)
    • 13 simple units (269 lines of code)
    • 49 very simple units (361 lines of code)
0% | 0% | 30% | 29% | 40%
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% | 30% | 29% | 40%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
functions/source/registerType0% | 0% | 71% | 0% | 28%
build0% | 0% | 63% | 9% | 26%
functions/source/CleanupLoadBalancers0% | 0% | 64% | 33% | 2%
functions/source/CleanupSecurityGroupDependencies0% | 0% | 64% | 0% | 35%
functions/source/DeleteBucketContents0% | 0% | 94% | 0% | 5%
functions/source/KubeManifest0% | 0% | 0% | 46% | 53%
functions/source/GetCallerArn0% | 0% | 0% | 57% | 42%
functions/source/KubeGet0% | 0% | 0% | 68% | 31%
functions/source/registerCustomResource0% | 0% | 0% | 33% | 66%
functions/source/FargateProfile0% | 0% | 0% | 50% | 50%
functions/source/ResourceReader0% | 0% | 0% | 33% | 66%
functions/source/CleanupLambdas0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def delete_handler()
in functions/source/CleanupLoadBalancers/lambda_function.py
33 16 2
def delete_dependencies()
in functions/source/CleanupSecurityGroupDependencies/lambda_function.py
34 16 2
def delete_dependencies()
in functions/source/CleanupLoadBalancers/lambda_function.py
25 15 2
def put_role()
in functions/source/registerType/lambda_function.py
37 14 3
def get_instances()
in build/update_instance_types.py
34 13 2
def delete_objects()
in functions/source/DeleteBucketContents/lambda_function.py
33 13 2
def eval_filter()
in build/update_instance_types.py
26 12 2
def register()
in functions/source/registerType/lambda_function.py
48 11 2
def put_role()
in functions/source/registerCustomResource/lambda_function.py
27 9 3
def del_sgs()
in functions/source/CleanupLoadBalancers/lambda_function.py
30 9 2
def create_handler()
in functions/source/KubeGet/lambda_function.py
30 8 2
def handler_init()
in functions/source/KubeManifest/lambda_function.py
27 8 1
def traverse()
in functions/source/KubeManifest/lambda_function.py
15 7 3
def get_caller_arn()
in functions/source/GetCallerArn/lambda_function.py
31 7 1
def get_qs_regions()
in build/update_instance_types.py
9 6 2
def run_command()
in functions/source/KubeManifest/lambda_function.py
19 6 1
def generate_name()
in functions/source/KubeManifest/lambda_function.py
12 6 2
def to_path()
in functions/source/KubeManifest/lambda_function.py
14 6 1
def stabilize_job()
in functions/source/KubeManifest/lambda_function.py
10 6 2
def create()
in functions/source/FargateProfile/lambda_function.py
23 6 2