ajaxorg / ace-builds
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 8,664 units with 139,651 lines of code in units (76.9% of code).
    • 184 very long units (47,336 lines of code)
    • 186 long units (13,478 lines of code)
    • 906 medium size units (26,602 lines of code)
    • 1,510 small units (21,921 lines of code)
    • 5,878 very small units (30,314 lines of code)
33% | 9% | 19% | 15% | 21%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js33% | 9% | 19% | 15% | 21%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src31% | 10% | 18% | 16% | 22%
src-noconflict28% | 8% | 22% | 16% | 24%
src/snippets85% | 7% | 3% | 1% | 2%
src-noconflict/snippets0% | 0% | 0% | 5% | 94%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
define()
in src/worker-html.js
3012 34 5
var CsoundOrchestraHighlightRules = function()
in src-noconflict/mode-csound_orchestra.js
1958 1 1
var CsoundOrchestraHighlightRules = function()
in src/mode-csound_orchestra.js
1938 1 1
define()
in src/snippets/gobstones.js
1616 25 7
define()
in src/snippets/lsl.js
1243 8 7
define()
in src/snippets/css.js
978 4 7
define()
in src/snippets/liquid.js
892 7 7
define()
in src/snippets/html.js
864 4 7
818 1 0
var ErlangHighlightRules = function()
in src-noconflict/mode-erlang.js
818 1 0
605 1 0
var KotlinHighlightRules = function()
in src-noconflict/mode-kotlin.js
605 1 0
var MushCodeRules = function()
in src/mode-mushcode.js
546 1 0
var MushCodeRules = function()
in src-noconflict/mode-mushcode.js
546 1 0
544 1 0
var MediaWikiHighlightRules = function()
in src-noconflict/mode-mediawiki.js
544 1 0
function TreeBuilder()
in src-noconflict/worker-html.js
531 1 0
397 1 0
var ValaHighlightRules = function()
in src-noconflict/mode-vala.js
397 1 0
define()
in src/snippets/php.js
392 18 7