aws-quickstart / quickstart-citrix-adc-vpx
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 928 units with 15,935 lines of code in units (57.1% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (145 lines of code)
    • 32 medium complex units (1,174 lines of code)
    • 100 simple units (1,922 lines of code)
    • 794 very simple units (12,694 lines of code)
0% | <1% | 7% | 12% | 79%
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% | <1% | 7% | 12% | 79%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
functions/source/adc/requests0% | 4% | 22% | 23% | 48%
functions/source/adc/urllib3/util0% | 7% | 4% | 31% | 55%
functions/source/adc/idna0% | 0% | 1% | 1% | 96%
functions/source/adc/urllib30% | 0% | 10% | 22% | 67%
functions/source/adc/chardet0% | 0% | 14% | 24% | 61%
functions/source/adc/urllib3/contrib0% | 0% | 11% | 36% | 52%
functions/source/adc/urllib3/packages0% | 0% | 26% | 12% | 60%
functions/source/adc/barbarika0% | 0% | 0% | 11% | 88%
functions/source/adc0% | 0% | 0% | 34% | 65%
functions/source/adc/chardet/cli0% | 0% | 0% | 45% | 54%
functions/source/adc/certifi0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def parse_url()
in functions/source/adc/urllib3/util/url.py
53 26 1
def send()
in functions/source/adc/requests/adapters.py
92 26 7
def valid_contexto()
in functions/source/adc/idna/core.py
32 23 3
def build_digest_header()
in functions/source/adc/requests/auth.py
80 23 3
def print_()
in functions/source/adc/urllib3/packages/six.py
52 22 2
def feed()
in functions/source/adc/chardet/universaldetector.py
66 22 2
def check_bidi()
in functions/source/adc/idna/core.py
44 21 2
def resolve_redirects()
in functions/source/adc/requests/sessions.py
66 21 10
def match_hostname()
in functions/source/adc/urllib3/packages/ssl_match_hostname/_implementation.py
47 20 2
def prepare_url()
in functions/source/adc/requests/models.py
55 20 3
def uts46_remap()
in functions/source/adc/idna/core.py
25 18 3
def connect()
in functions/source/adc/urllib3/connection.py
73 17 1
def _read_callback()
in functions/source/adc/urllib3/contrib/securetransport.py
41 16 3
def guess_json_utf()
in functions/source/adc/requests/utils.py
22 16 1
def urlopen()
in functions/source/adc/urllib3/poolmanager.py
39 15 5
def feed()
in functions/source/adc/chardet/hebrewprober.py
18 15 2
def feed()
in functions/source/adc/chardet/sbcharsetprober.py
37 15 2
def iter_content()
in functions/source/adc/requests/models.py
29 15 3
def valid_contextj()
in functions/source/adc/idna/core.py
32 14 2
def _write_callback()
in functions/source/adc/urllib3/contrib/securetransport.py
35 14 3