aws-quickstart / quickstart-jfrog-artifactory
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 253 units with 1,840 lines of code in units (23.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (139 lines of code)
    • 25 simple units (499 lines of code)
    • 224 very simple units (1,202 lines of code)
0% | 0% | 7% | 27% | 65%
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% | 7% | 27% | 65%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
xray-setup/psycopg20% | 0% | 9% | 28% | 62%
xray-setup/crhelper0% | 0% | 0% | 23% | 76%
xray-setup0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def register_hstore()
in xray-setup/psycopg2/extras.py
29 17 5
def _create_ranges()
in xray-setup/psycopg2/_range.py
26 14 3
def _putconn()
in xray-setup/psycopg2/pool.py
22 13 4
def lru_cache()
in xray-setup/psycopg2/_lru_cache.py
62 13 1
def format()
in xray-setup/psycopg2/sql.py
27 10 3
def __contains__()
in xray-setup/psycopg2/_range.py
18 10 2
def __call__()
in xray-setup/crhelper/resource_helper.py
24 10 3
def parse()
in xray-setup/psycopg2/_range.py
23 9 3
def execute_values()
in xray-setup/psycopg2/extras.py
62 8 6
def _split_sql()
in xray-setup/psycopg2/extras.py
22 8 1
def format()
in xray-setup/crhelper/log_helper.py
25 8 2
def as_string()
in xray-setup/psycopg2/sql.py
14 7 2
def getquoted()
in xray-setup/psycopg2/extensions.py
8 7 1
def make_dsn()
in xray-setup/psycopg2/extensions.py
20 7 2
def register_json()
in xray-setup/psycopg2/_json.py
10 7 6
def _get_json_oids()
in xray-setup/psycopg2/_json.py
15 7 2
def __init__()
in xray-setup/psycopg2/extras.py
11 7 3
def parse()
in xray-setup/psycopg2/extras.py
19 7 4
def register_composite()
in xray-setup/psycopg2/extras.py
9 7 4
def getquoted()
in xray-setup/psycopg2/_range.py
24 7 1