reactjs / react-modal
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 14 files with 1,150 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (550 lines of codeclsfd_ftr_w_mp_ins)
    • 0 small files (0 lines of code)
    • 12 very small files (600 lines of code)
0% | 0% | 47% | 0% | 52%
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
js0% | 0% | 53% | 0% | 46%
py0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/components0% | 0% | 100% | 0% | 0%
src/helpers0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
Longest Files (Top 14)
File# lines# units
ModalPortal.js
in src/components
339 6
Modal.js
in src/components
211 7
changelog.py
in scripts
98 12
focusManager.js
in src/helpers
79 9
ariaAppHider.js
in src/helpers
77 8
classList.js
in src/helpers
75 3
bodyTrap.js
in src/helpers
59 4
54 3
scopeTab.js
in src/helpers
52 2
tabbable.js
in src/helpers
51 5
mkdocs.yml
in root
27 -
19 -
safeHTMLElement.js
in src/helpers
7 -
index.js
in src
2 -
Files With Most Units (Top 10)
File# lines# units
changelog.py
in scripts
98 12
focusManager.js
in src/helpers
79 9
ariaAppHider.js
in src/helpers
77 8
Modal.js
in src/components
211 7
ModalPortal.js
in src/components
339 6
tabbable.js
in src/helpers
51 5
bodyTrap.js
in src/helpers
59 4
54 3
classList.js
in src/helpers
75 3
scopeTab.js
in src/helpers
52 2
Files With Long Lines (Top 0)

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

File# lines# units# long lines
Correlations

File Size vs. Commits (all time): 14 points

src/helpers/tabbable.js x: 13 commits (all time) y: 51 lines of code src/helpers/scopeTab.js x: 9 commits (all time) y: 52 lines of code src/helpers/focusManager.js x: 7 commits (all time) y: 79 lines of code src/helpers/classList.js x: 4 commits (all time) y: 75 lines of code src/helpers/ariaAppHider.js x: 12 commits (all time) y: 77 lines of code src/components/ModalPortal.js x: 51 commits (all time) y: 339 lines of code src/components/Modal.js x: 39 commits (all time) y: 211 lines of code src/helpers/bodyTrap.js x: 2 commits (all time) y: 59 lines of code src/helpers/portalOpenInstances.js x: 3 commits (all time) y: 54 lines of code src/helpers/safeHTMLElement.js x: 5 commits (all time) y: 7 lines of code mkdocs.yml x: 2 commits (all time) y: 27 lines of code scripts/changelog.py x: 4 commits (all time) y: 98 lines of code scripts/defaultConfig.js x: 1 commits (all time) y: 19 lines of code src/index.js x: 3 commits (all time) y: 2 lines of code
339.0
lines of code
  min: 2.0
  average: 82.14
  25th percentile: 25.0
  median: 56.5
  75th percentile: 83.75
  max: 339.0
0 51.0
commits (all time)
min: 1.0 | average: 11.07 | 25th percentile: 2.75 | median: 4.5 | 75th percentile: 12.25 | max: 51.0

File Size vs. Contributors (all time): 14 points

src/helpers/tabbable.js x: 9 contributors (all time) y: 51 lines of code src/helpers/scopeTab.js x: 7 contributors (all time) y: 52 lines of code src/helpers/focusManager.js x: 6 contributors (all time) y: 79 lines of code src/helpers/classList.js x: 3 contributors (all time) y: 75 lines of code src/helpers/ariaAppHider.js x: 8 contributors (all time) y: 77 lines of code src/components/ModalPortal.js x: 39 contributors (all time) y: 339 lines of code src/components/Modal.js x: 23 contributors (all time) y: 211 lines of code src/helpers/bodyTrap.js x: 2 contributors (all time) y: 59 lines of code src/helpers/portalOpenInstances.js x: 2 contributors (all time) y: 54 lines of code src/helpers/safeHTMLElement.js x: 4 contributors (all time) y: 7 lines of code mkdocs.yml x: 1 contributors (all time) y: 27 lines of code scripts/changelog.py x: 1 contributors (all time) y: 98 lines of code scripts/defaultConfig.js x: 1 contributors (all time) y: 19 lines of code src/index.js x: 2 contributors (all time) y: 2 lines of code
339.0
lines of code
  min: 2.0
  average: 82.14
  25th percentile: 25.0
  median: 56.5
  75th percentile: 83.75
  max: 339.0
0 39.0
contributors (all time)
min: 1.0 | average: 7.71 | 25th percentile: 1.75 | median: 3.5 | 75th percentile: 8.25 | max: 39.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 0 points

No data for "commits (90d)" vs. "lines of code".

File Size vs. Contributors (90 days): 0 points

No data for "contributors (90d)" vs. "lines of code".