aws / aws-dynamodb-encryption-python
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 278 units with 1,987 lines of code in units (56.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (198 lines of code)
    • 10 simple units (226 lines of code)
    • 265 very simple units (1,563 lines of code)
0% | 0% | 9% | 11% | 78%
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% | 9% | 11% | 78%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/dynamodb_encryption_sdk/internal0% | 0% | 20% | 7% | 71%
src/dynamodb_encryption_sdk/encrypted0% | 0% | 13% | 14% | 72%
src/dynamodb_encryption_sdk/material_providers0% | 0% | 0% | 20% | 79%
src/dynamodb_encryption_sdk/delegated_keys0% | 0% | 0% | 10% | 89%
src/dynamodb_encryption_sdk/materials0% | 0% | 0% | 0% | 100%
src/dynamodb_encryption_sdk0% | 0% | 0% | 0% | 100%
doc0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def decrypt_dynamodb_item()
in src/dynamodb_encryption_sdk/encrypted/item.py
40 12 2
def deserialize_attribute()
in src/dynamodb_encryption_sdk/internal/formatting/deserialize/attribute.py
77 12 1
def serialize_attribute()
in src/dynamodb_encryption_sdk/internal/formatting/serialize/attribute.py
81 11 1
def encrypt_dynamodb_item()
in src/dynamodb_encryption_sdk/encrypted/item.py
44 10 2
def _process_batch_write_response()
in src/dynamodb_encryption_sdk/internal/utils.py
23 10 3
def _ttl_action()
in src/dynamodb_encryption_sdk/material_providers/most_recent.py
18 8 3
def from_transformation()
in src/dynamodb_encryption_sdk/internal/crypto/jce_bridge/encryption.py
16 7 2
def _get_most_recent_version()
in src/dynamodb_encryption_sdk/material_providers/most_recent.py
31 7 2
def encrypt_batch_write_item()
in src/dynamodb_encryption_sdk/internal/utils.py
19 6 4
def generate()
in src/dynamodb_encryption_sdk/delegated_keys/jce.py
12 6 3
def decryption_materials()
in src/dynamodb_encryption_sdk/material_providers/most_recent.py
20 6 2
def _get_provider_with_grace_period()
in src/dynamodb_encryption_sdk/material_providers/most_recent.py
19 6 3
def _kms_encryption_context()
in src/dynamodb_encryption_sdk/material_providers/aws_kms.py
24 6 4
def __attrs_post_init__()
in src/dynamodb_encryption_sdk/encrypted/__init__.py
10 5 1
def _string_to_sign()
in src/dynamodb_encryption_sdk/internal/crypto/authentication.py
15 5 3
def dictionary_validator()
in src/dynamodb_encryption_sdk/internal/validators.py
14 5 2
def decrypt_batch_get_item()
in src/dynamodb_encryption_sdk/internal/utils.py
15 5 4
def __attrs_post_init__()
in src/dynamodb_encryption_sdk/delegated_keys/jce.py
23 5 1
def encryption_materials()
in src/dynamodb_encryption_sdk/material_providers/most_recent.py
17 5 2
def _load_materials()
in src/dynamodb_encryption_sdk/material_providers/store/meta.py
30 5 3