aws / aws-elastic-beanstalk-cli
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 1,422 units with 13,307 lines of code in units (70.3% of code).
    • 1 very complex units (128 lines of code)
    • 5 complex units (329 lines of code)
    • 43 medium complex units (1,703 lines of code)
    • 123 simple units (2,927 lines of code)
    • 1,250 very simple units (8,220 lines of code)
<1% | 2% | 12% | 21% | 61%
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
py<1% | 2% | 12% | 21% | 61%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ebcli/controllers7% | 0% | 17% | 30% | 43%
ebcli/bundled0% | 22% | 19% | 21% | 36%
ebcli/operations0% | 1% | 16% | 20% | 60%
ebcli/display0% | 4% | 11% | 28% | 54%
ebcli/lib0% | 0% | 6% | 22% | 71%
ebcli/core0% | 0% | 10% | 16% | 73%
ebcli/objects0% | 0% | 7% | 16% | 75%
ebcli/containers0% | 0% | 5% | 6% | 87%
ebcli/labs0% | 0% | 10% | 47% | 41%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def do_command()
in ebcli/controllers/create.py
128 55 1
def draw()
in ebcli/bundled/asciimatics/screen.py
85 43 7
def fill_polygon()
in ebcli/bundled/asciimatics/screen.py
74 37 4
def handle_input()
in ebcli/display/screen.py
60 29 1
def draw_next_frame()
in ebcli/bundled/asciimatics/screen.py
50 28 2
def ssh_into_instance()
in ebcli/operations/sshops.py
60 26 5
def form_vpc_object()
in ebcli/controllers/create.py
41 24 3
33 21 1
def _raise_if_error_event()
in ebcli/operations/commonops.py
36 19 1
def __init__()
in ebcli/bundled/asciimatics/screen.py
55 19 5
def get_event()
in ebcli/bundled/asciimatics/screen.py
40 19 1
def __lt__()
in ebcli/objects/solutionstack.py
32 19 2
def wait_for_success_events()
in ebcli/operations/commonops.py
83 18 12
def _is_success_event()
in ebcli/operations/commonops.py
32 18 2
def print_at()
in ebcli/bundled/asciimatics/screen.py
22 18 8
def run_app()
in ebcli/core/ebrun.py
54 17 1
def prompt_and_action()
in ebcli/display/screen.py
59 17 3
def make_api_call()
in ebcli/lib/aws.py
56 16 3
def do_command()
in ebcli/controllers/clone.py
77 16 1
def inkey()
in ebcli/display/term.py
35 16 2