aws-samples / amazon-quicksight-sdk-proserve
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 614 units with 9,771 lines of code in units (81.5% of code).
    • 1 very complex units (187 lines of code)
    • 3 complex units (1,081 lines of code)
    • 19 medium complex units (1,732 lines of code)
    • 34 simple units (863 lines of code)
    • 557 very simple units (5,908 lines of code)
1% | 11% | 17% | 8% | 60%
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
py1% | 11% | 17% | 8% | 60%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
granular_access/lambda_functions15% | 22% | 14% | 6% | 40%
Migration-scripts/cdk0% | 18% | 25% | 5% | 50%
Admin_Console0% | 30% | 25% | 0% | 43%
Assets_as_Code/Assets_as_Code0% | 0% | 10% | 13% | 76%
Administrative_Dashboard/lambda_functions0% | 0% | 47% | 5% | 46%
Dataset_Refresh_Optimizer/source0% | 0% | 0% | 38% | 61%
Dataset_Refresh_Optimizer/lambda_source0% | 0% | 0% | 64% | 35%
Administrative_Dashboard/administrative_dashboard0% | 0% | 0% | 0% | 100%
granular_access/granular_access0% | 0% | 0% | 0% | 100%
Ingest Excel data automatically into Amazon QuickSight0% | 0% | 0% | 0% | 100%
Dataset_Refresh_Optimizer/doc0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def lambda_handler()
in granular_access/lambda_functions/granular_user_govenance/granular_user_govenance.py
187 54 2
def migrate()
in Migration-scripts/cdk/lambda/quicksight_migration/quicksight_migration/incremental_migration_lambda.py
661 49 8
def lambda_handler()
in granular_access/lambda_functions/granular_access_assets_govenance/granular_access_assets_govenance.py
279 41 2
def lambda_handler()
in Admin_Console/data_prepare.py
141 34 2
def lambda_handler()
in Migration-scripts/cdk/lambda/quicksight_status/quicksight_status.py
118 23 2
def lambda_handler()
in granular_access/lambda_functions/check_team_members/check_team_members.py
126 23 2
def migrate()
in Migration-scripts/cdk/lambda/quicksight_migration/quicksight_migration/batch_migration_lambda.py
559 21 6
def create_data_source()
in Assets_as_Code/Assets_as_Code/src/functions.py
61 19 3
def create_data_source()
in Migration-scripts/cdk/lambda/quicksight_migration/quicksight_migration/quicksight_utils.py
61 19 3
def lambda_handler()
in Admin_Console/Dataset_info.py
115 17 2
def process_migration_list()
in Assets_as_Code/Assets_as_Code/src/functions.py
44 16 3
def lambda_handler()
in Administrative_Dashboard/lambda_functions/data_prepare/data_prepare.py
93 16 2
def __call__()
in Assets_as_Code/Assets_as_Code/boto3-1.18.59/boto3/resources/response.py
36 15 4
def lambda_handler()
in Migration-scripts/cdk/lambda/quicksight_migration/quicksight_migration/lambda_function.py
147 15 2
def pages()
in Assets_as_Code/Assets_as_Code/boto3-1.18.59/boto3/resources/collection.py
32 14 1
def load_rename_map()
in Assets_as_Code/Assets_as_Code/boto3-1.18.59/boto3/resources/model.py
28 14 2
def lambda_handler()
in granular_access/lambda_functions/downgrade_user/downgrade_user.py
58 14 2
def build_empty_response()
in Assets_as_Code/Assets_as_Code/boto3-1.18.59/boto3/resources/response.py
22 13 3
def build_param_structure()
in Assets_as_Code/Assets_as_Code/boto3-1.18.59/boto3/resources/params.py
32 13 4
def lambda_handler()
in Administrative_Dashboard/lambda_functions/group_initiation/group_initiation.py
109 13 2