boto / boto3
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 267 units with 2,076 lines of code in units (84.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 8 medium complex units (241 lines of code)
    • 14 simple units (303 lines of code)
    • 245 very simple units (1,532 lines of code)
0% | 0% | 11% | 14% | 73%
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% | 11% | 14% | 73%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
boto3/resources0% | 0% | 15% | 22% | 62%
boto30% | 0% | 17% | 0% | 82%
boto3/dynamodb0% | 0% | 7% | 8% | 83%
boto3/s30% | 0% | 0% | 13% | 86%
boto3/ec20% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def __call__()
in boto3/resources/response.py
36 15 4
def pages()
in boto3/resources/collection.py
32 14 1
def load_rename_map()
in boto3/resources/model.py
28 14 2
def build_empty_response()
in boto3/resources/response.py
22 13 3
def build_param_structure()
in boto3/resources/params.py
32 13 4
def resource()
in boto3/session.py
47 12 11
def _build_expression_component()
in boto3/dynamodb/conditions.py
18 11 6
def _get_dynamodb_type()
in boto3/dynamodb/types.py
26 11 2
def bucket_load()
in boto3/s3/inject.py
11 9 3
def load_from_definition()
in boto3/resources/factory.py
52 9 4
def _create_reference()
in boto3/resources/factory.py
19 9 4
def __init__()
in boto3/resources/base.py
18 9 3
def _get_related_resources()
in boto3/resources/model.py
18 9 2
def __init__()
in boto3/s3/transfer.py
19 8 5
def _create_autoload_property()
in boto3/resources/factory.py
21 8 6
def __call__()
in boto3/resources/action.py
25 8 4
def build_identifiers()
in boto3/resources/response.py
20 7 4
def create_request_parameters()
in boto3/resources/params.py
19 7 4
def inject_condition_expressions()
in boto3/dynamodb/transform.py
34 7 4
def _load_attributes()
in boto3/resources/factory.py
26 6 6