aws-samples / rekognition-crowded-demo
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 12 units with 123 lines of code in units (33.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 6 small units (90 lines of code)
    • 6 very small units (33 lines of code)
0% | 0% | 0% | 73% | 26%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 0% | 73% | 26%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lambda_recognize_crowd0% | 0% | 0% | 69% | 30%
lambda-sns-notify0% | 0% | 0% | 71% | 28%
satellite-app0% | 0% | 0% | 89% | 10%
Alternative Visuals
Longest Units
Top 12 longest units
Unit# linesMcCabe index# params
def send_image()
in satellite-app/satellite-flask.py
17 2 0
def rekognition_detect_crowd()
in lambda_recognize_crowd/lambda_function.py
17 2 2
def lambda_handler()
in lambda_recognize_crowd/lambda_function.py
16 2 2
def lambda_handler()
in lambda-sns-notify/lambda_function.py
15 2 2
def parser_sqs_message()
in lambda-sns-notify/lambda_function.py
13 2 1
def parser_sqs_message()
in lambda_recognize_crowd/lambda_function.py
12 2 1
def check_if_crowded()
in lambda_recognize_crowd/lambda_function.py
10 4 1
def publish_to_sns()
in lambda-sns-notify/lambda_function.py
8 1 3
def send_message_sqs()
in lambda_recognize_crowd/lambda_function.py
7 1 3
def connect_to_aws()
in lambda-sns-notify/lambda_function.py
3 1 2
def aws_connection()
in lambda_recognize_crowd/lambda_function.py
3 1 2
def hello_world()
in satellite-app/satellite-flask.py
2 1 0