microsoft / moodle-assignsubmission_onenote
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 46 units with 534 lines of code in units (57.2% of code).
    • 1 very long units (121 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (128 lines of code)
    • 7 small units (104 lines of code)
    • 34 very small units (181 lines of code)
22% | 0% | 23% | 19% | 33%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
php22% | 0% | 23% | 19% | 33%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT33% | 0% | 35% | 8% | 21%
classes/event0% | 0% | 0% | 47% | 52%
classes/privacy0% | 0% | 0% | 52% | 47%
backup/moodle20% | 0% | 0% | 0% | 100%
db0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public function save()
in locallib.php
121 17 2
35 9 2
34 8 3
31 9 6
28 2 1
19 3 1
18 3 2
public static function delete_submissions()
in classes/privacy/provider.php
17 2 1
protected function get_legacy_eventdata()
in classes/event/assessable_uploaded.php
14 2 0
14 2 1
public function get_description()
in classes/event/submission_created.php
11 2 0
public function get_description()
in classes/event/submission_updated.php
11 2 0
protected function define_submission_subplugin_structure()
in backup/moodle2/backup_assignsubmission_onenote_subplugin.class.php
10 1 0
10 1 1
10 1 0
10 2 2
10 7 0
public function process_assignsubmission_onenote_submission()
in backup/moodle2/restore_assignsubmission_onenote_subplugin.class.php
9 1 1
public static function get_metadata()
in classes/privacy/provider.php
9 1 1
8 1 1