microsoft / Windows-appsample-customers-orders-database
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 57 files with 4,502 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (588 lines of code)
    • 4 medium size files (1,117 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,331 lines of code)
    • 42 very small files (1,466 lines of code)
0% | 13% | 24% | 29% | 32%
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
xaml0% | 34% | 33% | 15% | 17%
cs0% | 0% | 19% | 38% | 41%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ContosoApp/Views0% | 28% | 27% | 33% | 9%
ContosoApp/ViewModels0% | 0% | 53% | 30% | 15%
ContosoApp0% | 0% | 0% | 67% | 32%
ContosoApp/UserControls0% | 0% | 0% | 35% | 64%
ContosoRepository/Sql0% | 0% | 0% | 0% | 100%
ContosoService/Controllers0% | 0% | 0% | 0% | 100%
ContosoRepository/Rest0% | 0% | 0% | 0% | 100%
ContosoModels0% | 0% | 0% | 0% | 100%
ContosoRepository0% | 0% | 0% | 0% | 100%
ContosoService0% | 0% | 0% | 0% | 100%
ContosoApp/Properties0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
xaml
OrderDetailPage.xaml
in ContosoApp/Views
588 -
OrderViewModel.cs
in ContosoApp/ViewModels
321 11
xaml
CustomerDetailPage.xaml
in ContosoApp/Views
306 -
xaml
OrderListPage.xaml
in ContosoApp/Views
255 -
AuthenticationViewModel.cs
in ContosoApp/ViewModels
235 10
CustomerViewModel.cs
in ContosoApp/ViewModels
199 6
OrderDetailPage.xaml.cs
in ContosoApp/Views
174 10
xaml
CustomerListPage.xaml
in ContosoApp/Views
146 -
CustomerListPage.xaml.cs
in ContosoApp/Views
146 10
OrderListPageViewModel.cs
in ContosoApp/ViewModels
119 5
CustomerDetailPage.xaml.cs
in ContosoApp/Views
119 7
AppShell.xaml.cs
in ContosoApp
114 5
xaml
AppShell.xaml
in ContosoApp
109 -
OrderListPage.xaml.cs
in ContosoApp/Views
103 7
CollapsibleSearchBox.xaml.cs
in ContosoApp/UserControls
102 12
xaml
CollapsibleSearchBox.xaml
in ContosoApp/UserControls
88 -
xaml
AuthenticationControl.xaml
in ContosoApp/UserControls
83 -
SqlOrderRepository.cs
in ContosoRepository/Sql
80 3
SqlCustomerRepository.cs
in ContosoRepository/Sql
76 4
OrderController.cs
in ContosoService/Controllers
76 7
App.xaml.cs
in ContosoApp
65 2
MainViewModel.cs
in ContosoApp/ViewModels
59 2
CustomerController.cs
in ContosoService/Controllers
59 6
xaml
SettingsPage.xaml
in ContosoApp/Views
57 -
Order.cs
in ContosoModels
51 2
ProductController.cs
in ContosoService/Controllers
51 4
HttpHelper.cs
in ContosoRepository/Rest
50 5
SettingsPage.xaml.cs
in ContosoApp/Views
49 5
xaml
App.xaml
in ContosoApp
43 -
SqlProductRepository.cs
in ContosoRepository/Sql
43 2
DataGridHelper.cs
in ContosoApp/Views
40 2
LineItemViewModel.cs
in ContosoApp/ViewModels
34 -
SaveChangesDialog.xaml.cs
in ContosoApp/Views
34 4
Startup.cs
in ContosoService
34 2
Exceptions.cs
in ContosoApp/ViewModels
30 6
RestOrderRepository.cs
in ContosoRepository/Rest
28 1
RestCustomerRepository.cs
in ContosoRepository/Rest
26 1
SqlContosoRepository.cs
in ContosoRepository/Sql
25 1
BindableBase.cs
in ContosoApp/ViewModels
23 1
Customer.cs
in ContosoModels
21 -
RestProductRepository.cs
in ContosoRepository/Rest
21 1
xaml
SaveChangesDialog.xaml
in ContosoApp/Views
20 -
Program.cs
in ContosoService
17 1
Converters.cs
in ContosoApp/ViewModels
16 -
RestContosoRepository.cs
in ContosoRepository/Rest
16 1
IOrderRepository.cs
in ContosoRepository
15 -
ContosoContext.cs
in ContosoRepository/Sql
15 1
LineItem.cs
in ContosoModels
14 -
Product.cs
in ContosoModels
14 -
ICustomerRepository.cs
in ContosoRepository
14 -
Files With Most Units (Top 20)
File# lines# units
CollapsibleSearchBox.xaml.cs
in ContosoApp/UserControls
102 12
OrderViewModel.cs
in ContosoApp/ViewModels
321 11
AuthenticationViewModel.cs
in ContosoApp/ViewModels
235 10
CustomerListPage.xaml.cs
in ContosoApp/Views
146 10
OrderDetailPage.xaml.cs
in ContosoApp/Views
174 10
CustomerDetailPage.xaml.cs
in ContosoApp/Views
119 7
OrderListPage.xaml.cs
in ContosoApp/Views
103 7
OrderController.cs
in ContosoService/Controllers
76 7
CustomerViewModel.cs
in ContosoApp/ViewModels
199 6
Exceptions.cs
in ContosoApp/ViewModels
30 6
CustomerController.cs
in ContosoService/Controllers
59 6
AppShell.xaml.cs
in ContosoApp
114 5
OrderListPageViewModel.cs
in ContosoApp/ViewModels
119 5
SettingsPage.xaml.cs
in ContosoApp/Views
49 5
HttpHelper.cs
in ContosoRepository/Rest
50 5
SaveChangesDialog.xaml.cs
in ContosoApp/Views
34 4
SqlCustomerRepository.cs
in ContosoRepository/Sql
76 4
ProductController.cs
in ContosoService/Controllers
51 4
SqlOrderRepository.cs
in ContosoRepository/Sql
80 3
App.xaml.cs
in ContosoApp
65 2
Files With Long Lines (Top 7)

There are 7 files with lines longer than 120 characters. In total, there are 13 long lines.

File# lines# units# long lines
xaml
OrderDetailPage.xaml
in ContosoApp/Views
588 - 3
xaml
OrderListPage.xaml
in ContosoApp/Views
255 - 3
AppShell.xaml.cs
in ContosoApp
114 5 2
xaml
SettingsPage.xaml
in ContosoApp/Views
57 - 2
CollapsibleSearchBox.xaml.cs
in ContosoApp/UserControls
102 12 1
OrderViewModel.cs
in ContosoApp/ViewModels
321 11 1
SettingsPage.xaml.cs
in ContosoApp/Views
49 5 1