aws-solutions / real-time-web-analytics-with-kinesis
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 17 files with 9,556 lines of code.
    • 3 very long files (7,629 lines of code)
    • 1 long files (578 lines of code)
    • 2 medium size files (521 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (382 lines of code)
    • 9 very small files (446 lines of code)
79% | 6% | 5% | 3% | 4%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
css100% | 0% | 0% | 0% | 0%
yaml100% | 0% | 0% | 0% | 0%
js0% | 40% | 16% | 26% | 16%
html0% | 0% | 87% | 0% | 12%
py0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
source/web_site/css100% | 0% | 0% | 0% | 0%
deployment100% | 0% | 0% | 0% | 0%
source/web_site/js0% | 96% | 0% | 0% | 3%
source/web_site0% | 0% | 70% | 0% | 29%
source/wasa0% | 0% | 100% | 0% | 0%
source/custom-resource0% | 0% | 0% | 100% | 0%
source/custom-resource/lib0% | 0% | 0% | 52% | 47%
source/load-testing0% | 0% | 0% | 0% | 100%
source/wasa/lib0% | 0% | 0% | 0% | 100%
Longest Files (Top 17)
File# lines# units
custom.css
in source/web_site/css
4122 -
real-time-web-analytics-with-kinesis.yaml
in deployment
1807 -
real-time-web-analytics-with-kinesis-existing-vpc.yaml
in deployment
1700 -
dash.js
in source/web_site/js
578 27
index.html
in source/web_site
284 -
index.js
in source/wasa
237 6
index.js
in source/custom-resource
193 7
website-helper.js
in source/custom-resource/lib
189 11
test-beacon.py
in source/load-testing
90 11
test-beacon.py
in source/web_site
81 11
kinesis-helper.js
in source/custom-resource/lib
51 1
ami-helper.js
in source/custom-resource/lib
43 2
dynamo-helper.js
in source/custom-resource/lib
41 1
metrics-helper.js
in source/custom-resource/lib
39 1
metrics-helper.js
in source/wasa/lib
39 1
help.html
in source/web_site
39 -
dashboard-use.js
in source/web_site/js
23 3
Files With Most Units (Top 12)
File# lines# units
dash.js
in source/web_site/js
578 27
test-beacon.py
in source/load-testing
90 11
website-helper.js
in source/custom-resource/lib
189 11
test-beacon.py
in source/web_site
81 11
index.js
in source/custom-resource
193 7
index.js
in source/wasa
237 6
dashboard-use.js
in source/web_site/js
23 3
ami-helper.js
in source/custom-resource/lib
43 2
kinesis-helper.js
in source/custom-resource/lib
51 1
metrics-helper.js
in source/custom-resource/lib
39 1
dynamo-helper.js
in source/custom-resource/lib
41 1
metrics-helper.js
in source/wasa/lib
39 1
Files With Long Lines (Top 12)

There are 12 files with lines longer than 120 characters. In total, there are 83 long lines.

File# lines# units# long lines
real-time-web-analytics-with-kinesis-existing-vpc.yaml
in deployment
1700 - 21
real-time-web-analytics-with-kinesis.yaml
in deployment
1807 - 20
dash.js
in source/web_site/js
578 27 10
index.html
in source/web_site
284 - 9
dynamo-helper.js
in source/custom-resource/lib
41 1 4
index.js
in source/wasa
237 6 4
test-beacon.py
in source/load-testing
90 11 3
test-beacon.py
in source/web_site
81 11 3
help.html
in source/web_site
39 - 3
website-helper.js
in source/custom-resource/lib
189 11 2
kinesis-helper.js
in source/custom-resource/lib
51 1 2
custom.css
in source/web_site/css
4122 - 2