microsoft / cordova-simulate
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 255 files with 16,003 lines of code.
    • 0 very long files (0 lines of code)
    • 14 long files (7,293 lines of code)
    • 6 medium size files (1,616 lines of codeclsfd_ftr_w_mp_ins)
    • 14 small files (2,008 lines of code)
    • 221 very small files (5,086 lines of code)
0% | 45% | 10% | 12% | 31%
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
xlf0% | 100% | 0% | 0% | 0%
js0% | 12% | 26% | 32% | 28%
css0% | 0% | 46% | 29% | 23%
html0% | 0% | 0% | 4% | 95%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tools/i18n0% | 92% | 4% | 1% | 1%
src/sim-host0% | 42% | 15% | 33% | 8%
src/server0% | 0% | 37% | 41% | 20%
src/modules0% | 0% | 28% | 27% | 43%
src/app-host0% | 0% | 0% | 52% | 47%
src/platforms0% | 0% | 0% | 85% | 14%
src/i18n0% | 0% | 0% | 0% | 100%
src/plugins0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
src/devices0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
custom-elements.js
in src/sim-host/ui
650 72
xlf
cs.xlf
in tools/i18n/xliff
511 -
xlf
de.xlf
in tools/i18n/xliff
511 -
xlf
es.xlf
in tools/i18n/xliff
511 -
xlf
fr.xlf
in tools/i18n/xliff
511 -
xlf
it.xlf
in tools/i18n/xliff
511 -
xlf
ja.xlf
in tools/i18n/xliff
511 -
xlf
ko.xlf
in tools/i18n/xliff
511 -
xlf
pl.xlf
in tools/i18n/xliff
511 -
xlf
pt.xlf
in tools/i18n/xliff
511 -
xlf
ru.xlf
in tools/i18n/xliff
511 -
xlf
tr.xlf
in tools/i18n/xliff
511 -
xlf
zh-Hans.xlf
in tools/i18n/xliff
511 -
xlf
zh-Hant.xlf
in tools/i18n/xliff
511 -
update.js
in tools/i18n
331 17
server.js
in src/server
328 21
project.js
in src/server
251 20
utils.js
in src/modules
245 19
socket.js
in src/server
232 18
sim-host.css
in src/sim-host/ui
229 -
sim-files.js
in src/server
198 14
theme.js
in src/server
190 11
jsUtils.js
in src/server/utils
180 11
simulator.js
in src/server
169 18
app-host.js
in src/app-host
167 10
sim-host.html
in src/sim-host/ui
160 -
device.js
in src/server
149 13
sim-host-scaled.css
in src/sim-host/ui
142 -
db.js
in src/modules
136 19
theme.js
in src/sim-host/ui
109 1
messages.js
in src/modules
103 9
app-host-clobbers.js
in src/platforms/windows
103 9
sim-host.js
in src/sim-host/ui
101 7
xliff-json-conv.js
in tools/i18n
101 8
socket.js
in src/sim-host/protocol
98 6
sim-host.css
in src/plugins/cordova-plugin-geolocation
89 -
live-reload-client.js
in src/app-host
85 7
sim-host-handlers.js
in src/plugins/exec
85 7
live-reload.js
in src/server/live-reload
80 4
watcher.js
in src/server/live-reload
79 9
dialog.js
in src/modules/sim-host
78 6
touch-events.js
in src/app-host
69 4
files.js
in tools/i18n
67 7
sim-host-panels.html
in src/plugins/cordova-plugin-geolocation
66 -
sim-host-panels.html
in src/i18n/cs/plugins/cordova-plugin-geolocation
64 -
sim-host-panels.html
in src/i18n/de/plugins/cordova-plugin-geolocation
64 -
sim-host-panels.html
in src/i18n/es/plugins/cordova-plugin-geolocation
64 -
sim-host-panels.html
in src/i18n/fr/plugins/cordova-plugin-geolocation
64 -
sim-host-panels.html
in src/i18n/it/plugins/cordova-plugin-geolocation
64 -
sim-host-panels.html
in src/i18n/ja/plugins/cordova-plugin-geolocation
64 -
Files With Most Units (Top 20)
File# lines# units
custom-elements.js
in src/sim-host/ui
650 72
server.js
in src/server
328 21
project.js
in src/server
251 20
db.js
in src/modules
136 19
utils.js
in src/modules
245 19
simulator.js
in src/server
169 18
socket.js
in src/server
232 18
update.js
in tools/i18n
331 17
sim-files.js
in src/server
198 14
device.js
in src/server
149 13
theme.js
in src/server
190 11
jsUtils.js
in src/server/utils
180 11
app-host.js
in src/app-host
167 10
event.js
in src/modules
61 9
messages.js
in src/modules
103 9
app-host-clobbers.js
in src/platforms/windows
103 9
watcher.js
in src/server/live-reload
79 9
xliff-json-conv.js
in tools/i18n
101 8
live-reload-client.js
in src/app-host
85 7
sim-host-handlers.js
in src/plugins/exec
85 7
Files With Long Lines (Top 20)

There are 178 files with lines longer than 120 characters. In total, there are 895 long lines.

File# lines# units# long lines
sim-host-panels.html
in src/i18n/de/plugins/cordova-plugin-device-orientation
50 - 17
sim-host-panels.html
in src/i18n/cs/plugins/cordova-plugin-device-orientation
50 - 16
sim-host-panels.html
in src/i18n/es/plugins/cordova-plugin-device-orientation
50 - 16
sim-host-panels.html
in src/i18n/fr/plugins/cordova-plugin-device-orientation
50 - 16
sim-host-panels.html
in src/i18n/it/plugins/cordova-plugin-device-orientation
50 - 16
sim-host-panels.html
in src/i18n/pl/plugins/cordova-plugin-device-orientation
50 - 16
sim-host-panels.html
in src/i18n/pt/plugins/cordova-plugin-device-orientation
50 - 16
sim-host-panels.html
in src/i18n/tr/plugins/cordova-plugin-device-orientation
50 - 16
sim-host-panels.html
in src/plugins/cordova-plugin-device-orientation
50 - 16
sim-host-panels.html
in src/i18n/ja/plugins/cordova-plugin-device-orientation
50 - 15
sim-host-panels.html
in src/i18n/ko/plugins/cordova-plugin-device-orientation
50 - 15
sim-host-panels.html
in src/i18n/ru/plugins/cordova-plugin-device-orientation
50 - 15
sim-host-panels.html
in src/i18n/zh-Hans/plugins/cordova-plugin-device-orientation
50 - 15
sim-host-panels.html
in src/i18n/zh-Hant/plugins/cordova-plugin-device-orientation
50 - 15
custom-elements.js
in src/sim-host/ui
650 72 14
sim-host-panels.html
in src/i18n/de/plugins/cordova-plugin-geolocation
64 - 13
sim-host-panels.html
in src/i18n/pl/plugins/cordova-plugin-geolocation
64 - 13
xlf
fr.xlf
in tools/i18n/xliff
511 - 13
xlf
it.xlf
in tools/i18n/xliff
511 - 13
xlf
zh-Hans.xlf
in tools/i18n/xliff
511 - 13