microsoft / moodle-local_o365
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 144 files with 23,351 lines of code.
    • 4 very long files (5,493 lines of code)
    • 6 long files (3,976 lines of code)
    • 17 medium size files (5,398 lines of codeclsfd_ftr_w_mp_ins)
    • 31 small files (4,618 lines of code)
    • 86 very small files (3,866 lines of code)
23% | 17% | 23% | 19% | 16%
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
php24% | 17% | 21% | 18% | 17%
css0% | 0% | 100% | 0% | 0%
js0% | 0% | 47% | 38% | 13%
scss0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
classes/feature41% | 13% | 30% | 8% | 6%
classes/page56% | 0% | 41% | 0% | 2%
classes/rest49% | 18% | 20% | 6% | 4%
lang/en0% | 100% | 0% | 0% | 0%
classes0% | 66% | 23% | 0% | 9%
db0% | 58% | 20% | 0% | 21%
ROOT0% | 31% | 33% | 20% | 14%
classes/webservices0% | 0% | 30% | 25% | 44%
classes/oauth20% | 0% | 48% | 22% | 29%
classes/adminsetting0% | 0% | 18% | 35% | 46%
classes/task0% | 0% | 0% | 81% | 18%
lang/es0% | 0% | 0% | 100% | 0%
lang/pt_br0% | 0% | 0% | 100% | 0%
sass0% | 0% | 0% | 100% | 0%
classes/privacy0% | 0% | 0% | 100% | 0%
lang/cs0% | 0% | 0% | 100% | 0%
lang/de0% | 0% | 0% | 100% | 0%
lang/fi0% | 0% | 0% | 100% | 0%
lang/fr0% | 0% | 0% | 100% | 0%
lang/it0% | 0% | 0% | 100% | 0%
lang/ja0% | 0% | 0% | 100% | 0%
lang/nl0% | 0% | 0% | 100% | 0%
lang/pl0% | 0% | 0% | 100% | 0%
classes/bot0% | 0% | 0% | 0% | 100%
classes/form0% | 0% | 0% | 0% | 100%
classes/healthcheck0% | 0% | 0% | 0% | 100%
classes/event0% | 0% | 0% | 0% | 100%
classes/obj0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
acp.php
in classes/page
1647 36
unified.php
in classes/rest
1615 105
main.php
in classes/feature/usersync
1132 31
coursegroups.php
in classes/feature/usergroups
1099 23
local_o365.php
in lang/en
831 1
observers.php
in classes
723 22
utils.php
in classes/feature/usergroups
711 29
sharepoint.php
in classes/rest
595 48
upgrade.php
in db
585 1
settings.php
in root
531 -
ucp.php
in classes/page
443 14
sync.php
in classes/feature/sds/task
420 6
ajax.php
in classes/page
417 14
main.php
in classes/feature/calsync
373 17
azuread.php
in classes/rest
368 21
groupcp.php
in classes/page
336 6
syncoldevents.php
in classes/feature/calsync/task
328 5
styles.css
in root
310 -
observers.php
in classes/feature/usergroups
305 9
read_assignments.php
in classes/webservices
299 6
o365api.php
in classes/rest
292 12
token.php
in classes/oauth2
276 16
azuresetup.js
in classes/adminsetting
271 18
lib.php
in root
263 11
utils.php
in classes
260 18
subscriptions.php
in classes/feature/calsync/form
235 2
events.php
in db
202 -
sharepointinit.php
in classes/task
199 4
local_o365.php
in lang/es
196 -
local_o365.php
in lang/pt_br
196 -
teams_tab_configuration.php
in root
196 10
styles.scss
in sass
193 -
table.php
in classes/feature/userconnections
191 10
provider.php
in classes/privacy
189 10
utils.php
in classes/feature/sharepointcustom
179 4
processmatchqueue.php
in classes/task
176 3
usersync.php
in classes/task
170 6
teams_tab.php
in root
161 8
local_o365.php
in lang/cs
150 -
local_o365.php
in lang/de
150 -
local_o365.php
in lang/fi
150 -
local_o365.php
in lang/fr
150 -
local_o365.php
in lang/it
150 -
local_o365.php
in lang/ja
150 -
local_o365.php
in lang/nl
150 -
local_o365.php
in lang/pl
150 -
sharepointaccesssync.php
in classes/task
138 5
apptoken.php
in classes/oauth2
128 7
update_grade.php
in classes/webservices
126 3
read_courseusers.php
in classes/webservices
124 3
Files With Most Units (Top 20)
File# lines# units
unified.php
in classes/rest
1615 105
sharepoint.php
in classes/rest
595 48
acp.php
in classes/page
1647 36
main.php
in classes/feature/usersync
1132 31
utils.php
in classes/feature/usergroups
711 29
coursegroups.php
in classes/feature/usergroups
1099 23
observers.php
in classes
723 22
azuread.php
in classes/rest
368 21
azuresetup.js
in classes/adminsetting
271 18
utils.php
in classes
260 18
main.php
in classes/feature/calsync
373 17
token.php
in classes/oauth2
276 16
ajax.php
in classes/page
417 14
ucp.php
in classes/page
443 14
serviceresource.js
in classes/adminsetting
119 12
o365api.php
in classes/rest
292 12
moodlesetup.js
in classes/adminsetting
101 11
onedrive.php
in classes/rest
103 11
lib.php
in root
263 11
table.php
in classes/feature/userconnections
191 10
Files With Long Lines (Top 20)

There are 84 files with lines longer than 120 characters. In total, there are 954 long lines.

File# lines# units# long lines
local_o365.php
in lang/en
831 1 211
acp.php
in classes/page
1647 36 51
local_o365.php
in lang/es
196 - 45
local_o365.php
in lang/fr
150 - 43
local_o365.php
in lang/pl
150 - 41
local_o365.php
in lang/pt_br
196 - 41
local_o365.php
in lang/de
150 - 40
local_o365.php
in lang/it
150 - 38
local_o365.php
in lang/nl
150 - 38
local_o365.php
in lang/cs
150 - 33
local_o365.php
in lang/fi
150 - 33
coursegroups.php
in classes/feature/usergroups
1099 23 29
local_o365.php
in lang/ja
150 - 19
read_assignments.php
in classes/webservices
299 6 16
main.php
in classes/feature/usersync
1132 31 14
sharepoint.php
in classes/rest
595 48 14
settings.php
in root
531 - 13
observers.php
in classes
723 22 12
sync.php
in classes/feature/sds/task
420 6 10
main.php
in classes/feature/calsync
373 17 9