aws-samples / aws-modernization-workshop-for-newrelic
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 91 files with 9,006 lines of code.
    • 2 very long files (3,674 lines of code)
    • 2 long files (1,052 lines of code)
    • 6 medium size files (1,714 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (732 lines of code)
    • 76 very small files (1,834 lines of code)
40% | 11% | 19% | 8% | 20%
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
css61% | 8% | 17% | 2% | 9%
yml0% | 38% | 46% | 10% | 4%
html0% | 0% | 0% | 26% | 73%
yaml0% | 0% | 0% | 65% | 34%
toml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
static/css94% | 0% | 0% | 5% | 0%
themes/learn/static34% | 16% | 33% | 0% | 15%
templates0% | 40% | 48% | 11% | <1%
themes/learn/layouts0% | 0% | 0% | 38% | 61%
webhosting0% | 0% | 0% | 65% | 34%
themes/learn/i18n0% | 0% | 0% | 0% | 100%
themes/learn/exampleSite0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
layouts/shortcodes0% | 0% | 0% | 0% | 100%
layouts/partials0% | 0% | 0% | 0% | 100%
layouts0% | 0% | 0% | 0% | 100%
themes/learn0% | 0% | 0% | 0% | 100%
static0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
all.css
in static/css
2570 -
theme.css
in themes/learn/static/css
1104 -
amazon-eks-nodegroup-with-spot.yml
in templates
530 -
nucleus.css
in themes/learn/static/css
522 -
amazon-eks-nodegroup-with-mixed-instances.yml
in templates
383 -
mermaid.forest.css
in themes/learn/static/mermaid
340 -
mermaid.dark.css
in themes/learn/static/mermaid
262 -
mermaid.css
in themes/learn/static/mermaid
260 -
ci-cd-codepipeline.cfn.yml
in templates
257 -
hugo-theme.css
in themes/learn/static/css
212 -
pipeline.yaml
in webhosting
180 -
theme-mine.css
in static/css
156 -
menu.html
in themes/learn/layouts/partials
147 -
weave_flux_pipeline.cfn.yml
in templates
145 -
header.html
in themes/learn/layouts/partials
104 -
cloudfront-s3-website.yaml
in webhosting
96 -
theme-green.css
in themes/learn/static/css
90 -
theme-blue.css
in themes/learn/static/css
90 -
theme-red.css
in themes/learn/static/css
90 -
children.html
in themes/learn/layouts/shortcodes
86 -
theme-mine.css
in themes/learn/exampleSite/static/css
84 -
hybrid.css
in themes/learn/static/css
72 -
atom-one-dark-reasonable.css
in themes/learn/static/css
70 -
footer.html
in themes/learn/layouts/partials
66 -
config.toml
in themes/learn/exampleSite
62 -
config.toml
in root
60 -
404.html
in layouts
49 -
404.html
in themes/learn/layouts
48 -
custom-header.html
in layouts/partials
44 -
tabs.html
in layouts/shortcodes
43 -
tags.css
in themes/learn/static/css
42 -
auto-complete.css
in themes/learn/static/css
40 -
logo.html
in themes/learn/exampleSite/layouts/partials
37 -
attachments.html
in themes/learn/layouts/shortcodes
35 -
webspec.yml
in root
32 -
index.html
in themes/learn/layouts
30 -
ghcontributors.html
in layouts/shortcodes
29 -
ghcontributors.html
in themes/learn/exampleSite/layouts/shortcodes
29 -
amplify.yml
in root
19 -
tab.html
in layouts/shortcodes
19 -
theme.toml
in themes/learn
18 -
list.html
in themes/learn/layouts/_default
18 -
zh-cn.toml
in themes/learn/i18n
18 -
de.toml
in themes/learn/i18n
18 -
id.toml
in themes/learn/i18n
18 -
fr.toml
in themes/learn/i18n
18 -
nl.toml
in themes/learn/i18n
18 -
es.toml
in themes/learn/i18n
18 -
pt.toml
in themes/learn/i18n
18 -
tr.toml
in themes/learn/i18n
18 -
Files With Most Units (Top 0)
File# lines# units
Files With Long Lines (Top 20)

There are 40 files with lines longer than 120 characters. In total, there are 122 long lines.

File# lines# units# long lines
logo.html
in themes/learn/exampleSite/layouts/partials
37 - 16
footer.html
in themes/learn/layouts/partials
66 - 13
children.html
in themes/learn/layouts/shortcodes
86 - 12
theme.css
in themes/learn/static/css
1104 - 8
menu.html
in themes/learn/layouts/partials
147 - 8
amazon-eks-nodegroup-with-mixed-instances.yml
in templates
383 - 6
header.html
in themes/learn/layouts/partials
104 - 5
custom-header.html
in layouts/partials
44 - 4
404.html
in layouts
49 - 4
menu-footer.html
in themes/learn/exampleSite/layouts/partials
7 - 4
404.html
in themes/learn/layouts
48 - 4
all.css
in static/css
2570 - 3
theme-mine.css
in static/css
156 - 3
amazon-eks-nodegroup-with-spot.yml
in templates
530 - 2
weave_flux_pipeline.cfn.yml
in templates
145 - 2
nucleus.css
in themes/learn/static/css
522 - 2
search.html
in themes/learn/layouts/partials
16 - 2
index.html
in themes/learn/layouts
30 - 2
cloudfront-s3-website.yaml
in webhosting
96 - 1
webspec.yml
in root
32 - 1