fbsamples / cp_reference
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 132 files with 13,755 lines of code.
    • 1 very long files (8,781 lines of code)
    • 1 long files (513 lines of code)
    • 2 medium size files (649 lines of codeclsfd_ftr_w_mp_ins)
    • 8 small files (1,135 lines of code)
    • 120 very small files (2,677 lines of code)
63% | 3% | 4% | 8% | 19%
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%
py0% | 14% | 18% | 22% | 44%
html0% | 0% | 0% | 23% | 76%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
static100% | 0% | 0% | 0% | 0%
order0% | 31% | 24% | 19% | 24%
catalog0% | 0% | 22% | 48% | 29%
fb_metadata0% | 0% | 0% | 48% | 51%
core0% | 0% | 0% | 0% | 100%
shop0% | 0% | 0% | 0% | 100%
config0% | 0% | 0% | 0% | 100%
webhook0% | 0% | 0% | 0% | 100%
member0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
styles.css
in static/css
8781 -
carrier_code_choices.py
in order/models
513 -
order_actions.py
in order/utils
401 20
catalogs.py
in catalog/utils
248 8
order.html
in order/templates/order
191 -
products.py
in catalog/models
174 11
dummy_products.py
in catalog/utils
149 2
fb_settings.html
in fb_metadata/templates/fb_metadata
145 -
orders.py
in order/utils
127 8
views.py
in fb_metadata
122 4
forms.py
in catalog
118 -
views.py
in catalog
109 6
base.py
in config/settings
100 -
views.py
in order
90 6
views.py
in shop
89 4
sidebar.html
in core/templates/core
88 -
fb_metadata.py
in fb_metadata/models
83 5
orders.html
in order/templates/order
81 -
product.html
in catalog/templates/catalog
81 -
fbe.py
in fb_metadata/utils
76 3
header.html
in core/templates/core
68 -
register.html
in member/templates/registration
64 -
products.html
in catalog/templates/catalog
63 -
login.html
in member/templates/registration
59 -
choices.py
in shop/models
58 -
tasks.py
in order
57 4
0001_initial.py
in shop/migrations
54 -
create.html
in core/templates/core
53 -
notifications.html
in webhook/templates/webhook
52 -
stores.html
in shop/templates/shop
50 -
store.html
in shop/templates/shop
50 -
0002_auto_20210304_1956.py
in catalog/migrations
49 -
create_store.html
in shop/templates/shop
49 -
orders.py
in order/models
46 -
views.py
in core
43 7
forms.py
in shop
42 -
tokens.html
in fb_metadata/templates/fb_metadata
40 -
500.html
in core/templates
39 -
404.html
in core/templates
39 -
400.html
in core/templates
39 -
403.html
in core/templates
38 -
fbe.html
in fb_metadata/templates/fb_metadata
38 -
choices.py
in order/models
37 -
shop.py
in shop/models
37 1
views.py
in webhook
36 2
async_tasks.html
in core/templates/core
36 -
urls.py
in order
35 -
urls.py
in catalog
35 -
utils.py
in webhook
33 1
update.html
in core/templates/core
32 -
Files With Most Units (Top 20)
File# lines# units
order_actions.py
in order/utils
401 20
products.py
in catalog/models
174 11
orders.py
in order/utils
127 8
catalogs.py
in catalog/utils
248 8
views.py
in core
43 7
views.py
in order
90 6
views.py
in catalog
109 6
fb_metadata.py
in fb_metadata/models
83 5
tasks.py
in order
57 4
views.py
in fb_metadata
122 4
views.py
in shop
89 4
fbe.py
in fb_metadata/utils
76 3
views.py
in webhook
36 2
tasks.py
in core
24 2
context_processors.py
in config
15 2
dummy_products.py
in catalog/utils
149 2
shops.py
in shop/utils
28 2
utils.py
in webhook
33 1
customers.py
in order/models
9 1
misc.py
in core/utils
7 1
Files With Long Lines (Top 20)

There are 25 files with lines longer than 120 characters. In total, there are 154 long lines.

File# lines# units# long lines
styles.css
in static/css
8781 - 71
carrier_code_choices.py
in order/models
513 - 17
register.html
in member/templates/registration
64 - 9
order_actions.py
in order/utils
401 20 8
login.html
in member/templates/registration
59 - 7
base.py
in config/settings
100 - 4
catalogs.py
in catalog/utils
248 8 4
dummy_products.py
in catalog/utils
149 2 4
0001_initial.py
in shop/migrations
54 - 4
403.html
in core/templates
38 - 3
404.html
in core/templates
39 - 3
400.html
in core/templates
39 - 3
order.html
in order/templates/order
191 - 2
500.html
in core/templates
39 - 2
products.py
in catalog/models
174 11 2
views.py
in catalog
109 6 2
0001_initial.py
in webhook/migrations
22 - 1
index.html
in core/templates/core
18 - 1
views.py
in core
43 7 1
fb_metadata.py
in fb_metadata/models
83 5 1