awslabs / amazon-translate-browser-extension
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 38 files with 9,203 lines of code.
    • 1 very long files (7,732 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (291 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (481 lines of code)
    • 33 very small files (699 lines of code)
84% | 0% | 3% | 5% | 7%
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
yaml100% | 0% | 0% | 0% | 0%
ts0% | 0% | 31% | 20% | 48%
vue0% | 0% | 0% | 76% | 23%
scss0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT98% | 0% | 0% | 0% | 1%
src/util0% | 0% | 96% | 0% | 3%
src/contentScripts0% | 0% | 0% | 64% | 35%
src/popup0% | 0% | 0% | 72% | 27%
src/options0% | 0% | 0% | 88% | 11%
src/styles0% | 0% | 0% | 0% | 100%
src/background0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
src/_contracts0% | 0% | 0% | 0% | 100%
src/api0% | 0% | 0% | 0% | 100%
src/components0% | 0% | 0% | 0% | 100%
Longest Files (Top 38)
File# lines# units
pnpm-lock.yaml
in root
7732 -
languages.ts
in src/util
291 -
functions.ts
in src/contentScripts
191 14
Popup.vue
in src/popup
165 -
Options.vue
in src/options
125 -
global.scss
in src/styles
90 -
vite.config.ts
in root
86 5
index.ts
in src/contentScripts
81 5
Spinner.vue
in src/popup
47 -
manifest.ts
in src
45 1
vite.config.content.ts
in root
40 3
main.ts
in src/background
40 -
prepare.ts
in scripts
29 2
App.vue
in src/contentScripts/views
25 -
messages.ts
in src/_contracts
20 -
translate.ts
in src/api
18 -
main.css
in src/styles
18 -
Logo.vue
in src/components
16 -
ava.config.js
in root
14 -
env.ts
in src
12 1
translate.ts
in src/_contracts
11 -
index.html
in src/options
11 -
index.html
in src/popup
11 -
contentScriptHMR.ts
in src/background
11 -
index.html
in src/background
10 -
tabs.ts
in src/util
9 2
windi.config.ts
in root
9 1
manifest.ts
in scripts
8 1
utils.ts
in scripts
8 1
cache.ts
in src/_contracts
6 -
main.ts
in src/options
5 -
main.ts
in src/popup
5 -
index.ts
in src/_contracts
4 -
copy-assets.js
in root
3 -
index.ts
in src/util
2 -
promises.ts
in src/_contracts
2 -
index.ts
in src/styles
2 -
index.ts
in src/api
1 -
Files With Most Units (Top 11)
File# lines# units
functions.ts
in src/contentScripts
191 14
vite.config.ts
in root
86 5
index.ts
in src/contentScripts
81 5
vite.config.content.ts
in root
40 3
tabs.ts
in src/util
9 2
prepare.ts
in scripts
29 2
manifest.ts
in src
45 1
env.ts
in src
12 1
windi.config.ts
in root
9 1
manifest.ts
in scripts
8 1
utils.ts
in scripts
8 1
Files With Long Lines (Top 2)

There are 2 files with lines longer than 120 characters. In total, there are 955 long lines.

File# lines# units# long lines
pnpm-lock.yaml
in root
7732 - 954
Logo.vue
in src/components
16 - 1