awslabs / web-client-for-aws-transfer-family
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 76 units with 1,178 lines of code in units (49.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (162 lines of code)
    • 7 simple units (241 lines of code)
    • 66 very simple units (775 lines of code)
0% | 0% | 13% | 20% | 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% | 22% | 32% | 45%
ts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lambda0% | 0% | 30% | 21% | 47%
backend/src0% | 0% | 16% | 39% | 43%
frontend/src/app/pages/sftp-main0% | 0% | 0% | 0% | 100%
frontend/src/app/service0% | 0% | 0% | 0% | 100%
frontend/src/app0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def crossdomain()
in source/backend/src/transfer_sftp_backend.py
34 16 6
def list_child_nodes()
in source/backend/src/transfer_sftp_backend.py
45 12 0
def lambda_handler()
in source/lambda/TransferMiscConfigLambdaFunction.py
83 11 2
def download()
in source/backend/src/transfer_sftp_backend.py
50 7 0
def authenticate_request()
in source/backend/src/auth_util.py
21 7 1
def auth_with_cognito()
in source/lambda/SFTPCustomAuthLambdaFunction.py
37 7 3
def refresh_expiring_jwts()
in source/backend/src/transfer_sftp_backend.py
20 6 1
def upload()
in source/backend/src/transfer_sftp_backend.py
53 6 0
def rename()
in source/backend/src/transfer_sftp_backend.py
39 6 0
def lambda_handler()
in source/lambda/SFTPCustomAuthLambdaFunction.py
21 6 2
def delete()
in source/backend/src/transfer_sftp_backend.py
25 5 0
def authenticate()
in source/backend/src/transfer_sftp_backend.py
29 4 0
def create_folder()
in source/backend/src/transfer_sftp_backend.py
23 4 0
def send()
in source/lambda/cfnresponse.py
25 4 7
def get_ecs_stats()
in source/lambda/SendOperationalMetricsLambdaFunction.py
12 3 2
getDocIcon()
in source/frontend/src/app/pages/sftp-main/sftp-main.component.ts
23 2 1
getDocIconColor()
in source/frontend/src/app/pages/sftp-main/sftp-main.component.ts
23 2 1
timeout()
in source/frontend/src/app/pages/sftp-main/sftp-main.component.ts
15 2 0
ngOnInit()
in source/frontend/src/app/pages/sftp-main/sftp-main.component.ts
23 2 0
getFileSize()
in source/frontend/src/app/pages/sftp-main/sftp-main.component.ts
7 2 1