aws-quickstart / quickstart-ibaset-solumina
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,163 units with 10,415 lines of code in units (31.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 47 medium complex units (1,899 lines of code)
    • 136 simple units (2,752 lines of code)
    • 980 very simple units (5,764 lines of code)
0% | 0% | 18% | 26% | 55%
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% | 18% | 26% | 55%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lambda/source/bastion0% | 0% | 19% | 24% | 55%
lambda/source/elasticsearch0% | 0% | 16% | 28% | 55%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def feed()
in lambda/source/elasticsearch/requests/packages/chardet/universaldetector.py
55 24 2
def feed()
in lambda/source/bastion/requests/packages/chardet/universaldetector.py
55 24 2
def resolve_redirects()
in lambda/source/elasticsearch/requests/sessions.py
67 21 9
def resolve_redirects()
in lambda/source/bastion/requests/sessions.py
67 21 9
def send()
in lambda/source/elasticsearch/requests/adapters.py
83 20 7
def increment()
in lambda/source/elasticsearch/requests/packages/urllib3/util/retry.py
42 20 7
def send()
in lambda/source/bastion/requests/adapters.py
83 20 7
def increment()
in lambda/source/bastion/requests/packages/urllib3/util/retry.py
42 20 7
def build_digest_header()
in lambda/source/elasticsearch/requests/auth.py
67 19 3
def build_digest_header()
in lambda/source/bastion/requests/auth.py
67 19 3
def urlopen()
in lambda/source/elasticsearch/requests/packages/urllib3/contrib/appengine.py
55 18 9
def print_()
in lambda/source/elasticsearch/requests/packages/urllib3/packages/six.py
43 18 2
def _encode_files()
in lambda/source/elasticsearch/requests/models.py
40 18 2
def urlopen()
in lambda/source/bastion/requests/packages/urllib3/contrib/appengine.py
55 18 9
def print_()
in lambda/source/bastion/requests/packages/urllib3/packages/six.py
43 18 2
def _encode_files()
in lambda/source/bastion/requests/models.py
40 18 2
def setup_bastion()
in lambda/source/bastion/bastionpostscriptlambda.py
175 17 3
def should_bypass_proxies()
in lambda/source/elasticsearch/requests/utils.py
25 16 1
def guess_json_utf()
in lambda/source/elasticsearch/requests/utils.py
22 16 1
def should_bypass_proxies()
in lambda/source/bastion/requests/utils.py
25 16 1