microsoft / moodle-assignfeedback_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 36 units with 392 lines of code in units (52.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 5 medium size units (163 lines of code)
    • 6 small units (93 lines of code)
    • 25 very small units (136 lines of code)
0% | 0% | 41% | 23% | 34%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
php0% | 0% | 38% | 25% | 36%
js0% | 0% | 85% | 0% | 14%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 0% | 53% | 18% | 27%
amd/src0% | 0% | 85% | 0% | 14%
classes/privacy0% | 0% | 0% | 65% | 34%
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
45 8 2
40 9 4
29 5 2
26 6 6
init: function()
in amd/src/onenotedelete.js
23 1 0
18 1 3
17 2 1
17 4 9
16 2 1
14 2 1
11 1 1
protected function define_grade_subplugin_structure()
in backup/moodle2/backup_assignfeedback_onenote_subplugin.class.php
10 1 0
10 1 0
10 7 0
public function process_assignfeedback_onenote_grade()
in backup/moodle2/restore_assignfeedback_onenote_subplugin.class.php
9 1 1
public static function get_metadata()
in classes/privacy/provider.php
9 1 1
8 1 1
protected function define_grade_subplugin_structure()
in backup/moodle2/restore_assignfeedback_onenote_subplugin.class.php
7 1 0
7 1 0
6 1 3