aws-samples / aws-bookstore-demo-app
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 69 files with 9,395 lines of code.
    • 2 very long files (6,441 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (675 lines of code)
    • 62 very small files (2,279 lines of code)
68% | 0% | 0% | 7% | 24%
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%
tsx0% | 0% | 0% | 24% | 75%
css0% | 0% | 0% | 31% | 68%
js0% | 0% | 0% | 18% | 81%
py0% | 0% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
template100% | 0% | 0% | 0% | 0%
assets/src/modules/signup0% | 0% | 0% | 56% | 43%
assets/src/common/styles0% | 0% | 0% | 75% | 24%
assets/src/modules/checkout0% | 0% | 0% | 59% | 40%
functions/setup0% | 0% | 0% | 100% | 0%
functions/APIs0% | 0% | 0% | 0% | 100%
assets/src0% | 0% | 0% | 0% | 100%
assets/src/modules/category0% | 0% | 0% | 0% | 100%
assets/src/modules/cart0% | 0% | 0% | 0% | 100%
assets/src/modules/search0% | 0% | 0% | 0% | 100%
assets/src/modules/pastPurchases0% | 0% | 0% | 0% | 100%
assets/src/modules/bestSellers0% | 0% | 0% | 0% | 100%
assets/src/modules/friends0% | 0% | 0% | 0% | 100%
assets/src/common0% | 0% | 0% | 0% | 100%
assets/src/common/friendRecommendations0% | 0% | 0% | 0% | 100%
functions/streaming0% | 0% | 0% | 0% | 100%
assets/src/common/starRating0% | 0% | 0% | 0% | 100%
assets/public0% | 0% | 0% | 0% | 100%
assets/src/common/hero0% | 0% | 0% | 0% | 100%
assets/src/modules/notFound0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
master-fullstack-with-lambda-warmers.yaml
in template
3482 -
master-fullstack.yaml
in template
2959 -
Signup.tsx
in assets/src/modules/signup
173 2
gallery.css
in assets/src/common/styles
158 -
Home.tsx
in assets/src/modules/signup
122 4
CheckoutForm.tsx
in assets/src/modules/checkout/checkoutForm
121 4
uploadBooks.js
in functions/setup
101 6
home.css
in assets/src/modules/signup
99 -
CartProductRow.tsx
in assets/src/modules/cart
96 4
Login.tsx
in assets/src/modules/signup
90 1
registerServiceWorker.ts
in assets/src
81 4
PastPurchases.tsx
in assets/src/modules/pastPurchases
78 4
ShoppingCart.tsx
in assets/src/modules/cart
78 4
checkout.js
in functions/APIs
68 -
PurchasedProductRow.tsx
in assets/src/modules/pastPurchases
66 3
BestSellerProductRow.tsx
in assets/src/modules/bestSellers
65 4
AddToCart.tsx
in assets/src/common
61 1
listBooks.js
in functions/APIs
61 -
SearchGallery.tsx
in assets/src/modules/search
60 3
index.tsx
in assets/src
60 -
BestSellers.tsx
in assets/src/modules/bestSellers
50 2
CategoryView.tsx
in assets/src/modules/category
50 1
App.css
in assets/src
49 -
CheckoutConfirm.tsx
in assets/src/modules/checkout
48 2
CategoryGalleryTeaser.tsx
in assets/src/modules/category
48 4
ProductRow.tsx
in assets/src/modules/friends
47 2
SearchBar.tsx
in assets/src/modules/search/searchBar
46 1
FriendRecommendations.tsx
in assets/src/common/friendRecommendations
45 3
CategoryGallery.tsx
in assets/src/modules/category
45 3
FriendsBought.tsx
in assets/src/modules/friends
42 3
updateCart.js
in functions/APIs
41 -
searchBar.css
in assets/src/modules/search/searchBar
40 -
addToCart.js
in functions/APIs
38 -
productRow.css
in assets/src/common/styles
37 -
getBestSellers.js
in functions/APIs
36 -
listOrders.js
in functions/APIs
36 -
listItemsInCart.js
in functions/APIs
36 -
removeFromCart.js
in functions/APIs
36 -
getCartItem.js
in functions/APIs
36 -
search.py
in functions/APIs
35 1
getBook.js
in functions/APIs
35 -
updateBestSellers.js
in functions/streaming
32 -
Routes.tsx
in assets/src
30 -
getRecommendations.py
in functions/APIs
29 1
getRecommendationsByBook.py
in functions/APIs
29 1
BestSellersBar.tsx
in assets/src/modules/bestSellers/bestSellersBar
25 -
updateSearchCluster.py
in functions/streaming
25 1
login.css
in assets/src/modules/signup
23 -
CategoryGalleryBook.tsx
in assets/src/modules/category
22 -
StarRating.tsx
in assets/src/common/starRating
20 1
Files With Most Units (Top 20)
File# lines# units
uploadBooks.js
in functions/setup
101 6
registerServiceWorker.ts
in assets/src
81 4
PastPurchases.tsx
in assets/src/modules/pastPurchases
78 4
CartProductRow.tsx
in assets/src/modules/cart
96 4
ShoppingCart.tsx
in assets/src/modules/cart
78 4
CheckoutForm.tsx
in assets/src/modules/checkout/checkoutForm
121 4
BestSellerProductRow.tsx
in assets/src/modules/bestSellers
65 4
CategoryGalleryTeaser.tsx
in assets/src/modules/category
48 4
Home.tsx
in assets/src/modules/signup
122 4
FriendRecommendations.tsx
in assets/src/common/friendRecommendations
45 3
PurchasedProductRow.tsx
in assets/src/modules/pastPurchases
66 3
CategoryGallery.tsx
in assets/src/modules/category
45 3
SearchGallery.tsx
in assets/src/modules/search
60 3
FriendsBought.tsx
in assets/src/modules/friends
42 3
CheckoutConfirm.tsx
in assets/src/modules/checkout
48 2
BestSellers.tsx
in assets/src/modules/bestSellers
50 2
ProductRow.tsx
in assets/src/modules/friends
47 2
Signup.tsx
in assets/src/modules/signup
173 2
StarRating.tsx
in assets/src/common/starRating
20 1
AddToCart.tsx
in assets/src/common
61 1
Files With Long Lines (Top 20)

There are 20 files with lines longer than 120 characters. In total, there are 44 long lines.

File# lines# units# long lines
Home.tsx
in assets/src/modules/signup
122 4 9
master-fullstack.yaml
in template
2959 - 6
master-fullstack-with-lambda-warmers.yaml
in template
3482 - 6
CartProductRow.tsx
in assets/src/modules/cart
96 4 3
FriendRecommendations.tsx
in assets/src/common/friendRecommendations
45 3 2
ShoppingCart.tsx
in assets/src/modules/cart
78 4 2
Signup.tsx
in assets/src/modules/signup
173 2 2
getRecommendations.py
in functions/APIs
29 1 2
PastPurchases.tsx
in assets/src/modules/pastPurchases
78 4 1
PurchasedProductRow.tsx
in assets/src/modules/pastPurchases
66 3 1
CheckoutConfirm.tsx
in assets/src/modules/checkout
48 2 1
CheckoutForm.tsx
in assets/src/modules/checkout/checkoutForm
121 4 1
BestSellerProductRow.tsx
in assets/src/modules/bestSellers
65 4 1
CategoryNavBar.tsx
in assets/src/modules/category/categoryNavBar
10 - 1
CategoryGalleryBook.tsx
in assets/src/modules/category
22 - 1
CategoryGalleryTeaser.tsx
in assets/src/modules/category
48 4 1
SearchBar.tsx
in assets/src/modules/search/searchBar
46 1 1
login.css
in assets/src/modules/signup
23 - 1
Login.tsx
in assets/src/modules/signup
90 1 1
getRecommendationsByBook.py
in functions/APIs
29 1 1