fbsamples / messenger-platform-samples
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 12 files with 1,232 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (547 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (244 lines of code)
    • 9 very small files (441 lines of code)
0% | 44% | 0% | 19% | 35%
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
js0% | 49% | 0% | 22% | 27%
html0% | 0% | 0% | 0% | 100%
ejs0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
node0% | 100% | 0% | 0% | 0%
webview0% | 0% | 0% | 100% | 0%
quick-start0% | 0% | 0% | 100% | 0%
inter-page/support-bot0% | 0% | 0% | 0% | 100%
inter-page/marketing-bot0% | 0% | 0% | 0% | 100%
handover_protocol/utils0% | 0% | 0% | 0% | 100%
webview/public0% | 0% | 0% | 0% | 100%
handover_protocol0% | 0% | 0% | 0% | 100%
node/public0% | 0% | 0% | 0% | 100%
node/views0% | 0% | 0% | 0% | 100%
Longest Files (Top 12)
File# lines# units
app.js
in node
547 22
app.js
in webview
129 3
app.js
in quick-start
115 3
app.js
in inter-page/support-bot
87 3
app.js
in inter-page/marketing-bot
87 2
options.html
in webview/public
61 -
index.js
in handover_protocol
57 -
index.html
in node/public
43 -
api.js
in handover_protocol/utils
31 1
ejs
authorize.ejs
in node/views
31 -
handover-protocol.js
in handover_protocol/utils
25 2
quick-reply.js
in handover_protocol/utils
19 1
Files With Most Units (Top 8)
File# lines# units
app.js
in node
547 22
app.js
in webview
129 3
app.js
in inter-page/support-bot
87 3
app.js
in quick-start
115 3
handover-protocol.js
in handover_protocol/utils
25 2
app.js
in inter-page/marketing-bot
87 2
quick-reply.js
in handover_protocol/utils
19 1
api.js
in handover_protocol/utils
31 1
Files With Long Lines (Top 3)

There are 3 files with lines longer than 120 characters. In total, there are 6 long lines.

File# lines# units# long lines
index.js
in handover_protocol
57 - 3
app.js
in inter-page/support-bot
87 3 2
app.js
in inter-page/marketing-bot
87 2 1