aws-quickstart / quickstart-ct-newrelic-one
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 23 units with 687 lines of code in units (31.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (112 lines of code)
    • 6 simple units (339 lines of code)
    • 15 very simple units (236 lines of code)
0% | 0% | 16% | 49% | 34%
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% | 16% | 49% | 34%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
functions/source/register0% | 0% | 26% | 37% | 36%
functions/source/stackset0% | 0% | 37% | 36% | 25%
functions/source/onboarding0% | 0% | 0% | 95% | 4%
functions/source/cfct_register0% | 0% | 0% | 42% | 57%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def stackset_check()
in functions/source/register/register.py
58 14 1
def stackset_processing()
in functions/source/stackset/stackset.py
54 11 1
def delete()
in functions/source/onboarding/onboarding.py
56 10 2
def create()
in functions/source/onboarding/onboarding.py
64 8 2
def lifecycle_processing()
in functions/source/stackset/stackset.py
27 7 1
def newrelic_registration()
in functions/source/cfct_register/cfct_register.py
83 7 4
def newrelic_registration()
in functions/source/register/register.py
83 7 4
def list_stack_instance_region()
in functions/source/stackset/stackset.py
26 6 2
def list_stack_instance_by_account()
in functions/source/stackset/stackset.py
23 5 3
def lambda_handler()
in functions/source/stackset/stackset.py
9 5 2
def newrelic_get_schema()
in functions/source/cfct_register/cfct_register.py
27 5 1
def newrelic_get_schema()
in functions/source/register/register.py
27 5 1
def create()
in functions/source/cfct_register/cfct_register.py
20 4 2
def lambda_handler()
in functions/source/cfct_register/cfct_register.py
10 4 2
def get_secret_value()
in functions/source/cfct_register/cfct_register.py
12 3 1
def newrelic_get_integration()
in functions/source/cfct_register/cfct_register.py
32 3 2
def get_secret_value()
in functions/source/register/register.py
11 3 1
def newrelic_get_integration()
in functions/source/register/register.py
32 3 2
def lambda_handler()
in functions/source/register/register.py
7 3 2
def lambda_handler()
in functions/source/onboarding/onboarding.py
6 3 2