awslabs / speke-reference-server
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 43 units with 475 lines of code in units (75.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (97 lines of code)
    • 1 simple units (57 lines of code)
    • 40 very simple units (321 lines of code)
0% | 0% | 20% | 12% | 67%
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% | 20% | 12% | 67%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 32% | 18% | 48%
cloudformation0% | 0% | 0% | 0% | 100%
spekev2_verification_testsuite0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def fixup_document()
in src/key_server_common.py
35 14 5
def fill_request()
in src/key_server_common.py
62 11 1
def fixup_document()
in src/key_server_common.py
57 6 5
def event_handler()
in cloudformation/mediapackage_speke_endpoint.py
15 5 2
def retrieve_content_id_secret()
in src/key_generator.py
20 4 2
def server_handler()
in src/key_server.py
19 4 2
def insert_encrypted_value()
in src/key_server_common.py
13 3 4
def send()
in cloudformation/resource_tools.py
20 3 5
def update_endpoint()
in cloudformation/mediapackage_endpoint_common.py
10 3 4
def create_endpoint()
in cloudformation/mediapackage_speke_endpoint.py
45 3 4
def count_tags()
in spekev2_verification_testsuite/utils.py
12 3 1
def get_response()
in src/key_server_common.py
13 2 1
def safe_remove()
in src/key_server_common.py
3 2 3
def get_response()
in src/key_server_common.py
14 2 1
def stack_name()
in cloudformation/resource_tools.py
6 2 1
def wait_for_channel_states()
in cloudformation/resource_tools.py
6 2 3
def wait_for_input_states()
in cloudformation/resource_tools.py
6 2 3
def delete_endpoint()
in cloudformation/mediapackage_endpoint_common.py
9 2 3
def pytest_configure()
in spekev2_verification_testsuite/conftest.py
5 2 1
def count_child_element_tags_for_element()
in spekev2_verification_testsuite/utils.py
6 2 1