microsoft / moodle-theme_boost_o365teams
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 21 units with 275 lines of code in units (19.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (133 lines of code)
    • 5 small units (78 lines of code)
    • 12 very small units (64 lines of code)
0% | 0% | 48% | 28% | 23%
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% | 57% | 28% | 13%
js0% | 0% | 0% | 28% | 71%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 0% | 75% | 19% | 4%
classes/output0% | 0% | 0% | 55% | 44%
amd/src0% | 0% | 0% | 28% | 71%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
50 10 5
34 2 5
28 6 2
21 5 4
20 4 1
public function get_footer_stamp()
in classes/output/core_renderer.php
17 2 0
15 4 7
init: function()
in amd/src/teamsThemeChecker.js
13 1 0
public function user_link()
in classes/output/core_renderer.php
13 2 0
public function feedback_link()
in classes/output/core_renderer.php
10 2 0
init: function()
in amd/src/iframeChecker.js
8 2 0
public function standard_head_html()
in classes/output/core_renderer.php
8 1 0
8 2 2
public function footer()
in classes/output/core_renderer.php
6 1 0
define()
in amd/src/iframeChecker.js
4 1 2
$()
in amd/src/iframeChecker.js
4 1 1
define()
in amd/src/teamsThemeChecker.js
4 1 2
$()
in amd/src/iframeChecker.js
3 1 1
$()
in amd/src/iframeChecker.js
3 1 1
$()
in amd/src/iframeChecker.js
3 1 1