aws-quickstart / quickstart-xebialabs-devops-platform
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 224 units with 1,530 lines of code in units (49.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (77 lines of code)
    • 21 simple units (430 lines of code)
    • 200 very simple units (1,023 lines of code)
0% | 0% | 5% | 28% | 66%
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% | 5% | 28% | 66%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
functions/source/create-db/psycopg20% | 0% | 5% | 24% | 70%
functions/source/create-db0% | 0% | 0% | 70% | 29%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def register_hstore()
in functions/source/create-db/psycopg2/extras.py
29 17 5
def _create_ranges()
in functions/source/create-db/psycopg2/_range.py
26 14 3
def _putconn()
in functions/source/create-db/psycopg2/pool.py
22 13 4
def format()
in functions/source/create-db/psycopg2/sql.py
27 10 3
def __contains__()
in functions/source/create-db/psycopg2/_range.py
18 10 2
def parse()
in functions/source/create-db/psycopg2/_range.py
23 9 3
def _split_sql()
in functions/source/create-db/psycopg2/extras.py
22 8 1
def as_string()
in functions/source/create-db/psycopg2/sql.py
14 7 2
def getquoted()
in functions/source/create-db/psycopg2/extensions.py
8 7 1
def make_dsn()
in functions/source/create-db/psycopg2/extensions.py
20 7 2
def register_json()
in functions/source/create-db/psycopg2/_json.py
10 7 6
def _get_json_oids()
in functions/source/create-db/psycopg2/_json.py
15 7 2
def parse()
in functions/source/create-db/psycopg2/extras.py
19 7 4
def register_composite()
in functions/source/create-db/psycopg2/extras.py
9 7 4
def getquoted()
in functions/source/create-db/psycopg2/_range.py
24 7 1
def create_database()
in functions/source/create-db/createdb.py
42 7 2
def connect()
in functions/source/create-db/psycopg2/__init__.py
13 6 4
def _getconn()
in functions/source/create-db/psycopg2/pool.py
15 6 2
def __iter__()
in functions/source/create-db/psycopg2/extras.py
15 6 1
def create_replication_slot()
in functions/source/create-db/psycopg2/extras.py
20 6 4