guardian/support-dotcom-components
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 98 files with 7,100 lines of code.
- 0 very long files (0 lines of code)
- 1 long files (628 lines of code)
- 7 medium size files (2,048 lines of code)
- 14 small files (1,907 lines of code)
- 76 very small files (2,517 lines of code)
Legend:
1001+
501-1000
201-500
101-200
1-100
explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
File Size per Logical Decomposition
primary
Longest Files (Top 50)
| File | # lines | # units |
|---|---|---|
| 628 | - | |
| 433 | - | |
| 336 | 1 | |
| 302 | 2 | |
| 283 | 3 | |
| 237 | 4 | |
| 237 | 5 | |
| 220 | 1 | |
| 195 | 3 | |
| 183 | 1 | |
| 182 | 1 | |
| 150 | - | |
| 142 | - | |
| 140 | 6 | |
| 127 | - | |
| 126 | 1 | |
| 121 | 1 | |
| 120 | - | |
| 107 | 1 | |
| 107 | 1 | |
| 105 | 6 | |
| 102 | - | |
| 94 | - | |
| 89 | - | |
| 87 | - | |
| 87 | 1 | |
| 86 | - | |
| 79 | - | |
| 76 | 1 | |
| 74 | 13 | |
| 74 | - | |
| 71 | - | |
| 68 | 1 | |
| 67 | - | |
| 65 | - | |
| 65 | - | |
| 64 | 2 | |
| 59 | 3 | |
| 53 | - | |
| 51 | - | |
| 46 | - | |
| 46 | - | |
| 46 | - | |
| 41 | - | |
| 40 | - | |
| 40 | - | |
| 37 | - | |
| 36 | - | |
| 36 | 1 | |
| 34 | - |
Large Files That Change Often (Top 20)
To change a file, an AI coding agent (or a person) has to read it: these files are read the most for the changes in the past year (lines × changes).
| File | # lines | ≈ tokens to read | # changes (1y) | ≈ lines edited per change | lines read per line changed |
|---|---|---|---|---|---|
| 433 | ~3k–7k | 31 | ~70 | ~7 | |
| 283 | ~1.5k–5k | 39 | ~10 | ~30 | |
| 302 | ~2k–5k | 30 | ~20 | ~15 | |
| 336 | ~2k–5k | 20 | ~15 | ~30 | |
| 220 | ~1.5k–5k | 24 | ~15 | ~15 | |
| 237 | ~1.5k–5k | 19 | ~30 | ~7 | |
| 183 | ~1k–3k | 24 | ~10 | ~20 | |
| 628 | ~3k–10k | 6 | ~50 | ~15 | |
| 237 | ~1.5k–5k | 9 | ~50 | ~5 | |
| 182 | ~1k–3k | 7 | ~30 | ~7 | |
| 127 | ~700–2k | 10 | ~20 | ~7 | |
| 150 | ~1k–3k | 8 | ~10 | ~15 | |
| 126 | ~700–2k | 6 | ~30 | ~3 | |
| 120 | ~700–2k | 6 | ~20 | ~5 | |
| 94 | ~500–1.5k | 7 | ~20 | ~5 | |
| 107 | ~700–1.5k | 6 | ~15 | ~7 | |
| 86 | ~500–1.5k | 7 | ~30 | ~3 | |
| 140 | ~700–2k | 4 | ~30 | ~5 | |
| 89 | ~500–1.5k | 6 | ~10 | ~7 | |
| 79 | ~500–1.5k | 6 | ~30 | ~2 |
Tokens are lines × 7 to 14 (analysis.fileReadsForChanges). Lines edited per change are the file's lines added and deleted divided by its commits over the whole history. Agents read about 2,000 lines at a time: when a 17,000-line file was split into modules, the tokens an agent read for the same change fell by 83% (The Economic Benefit of Refactoring, 2026).
Files With Most Units (Top 27)
| File | # lines | # units |
|---|---|---|
| 74 | 13 | |
| 105 | 6 | |
| 140 | 6 | |
| 237 | 5 | |
| 237 | 4 | |
| 195 | 3 | |
| 59 | 3 | |
| 283 | 3 | |
| 20 | 2 | |
| 64 | 2 | |
| 302 | 2 | |
| 336 | 1 | |
| 29 | 1 | |
| 31 | 1 | |
| 36 | 1 | |
| 9 | 1 | |
| 11 | 1 | |
| 87 | 1 | |
| 107 | 1 | |
| 220 | 1 | |
| 68 | 1 | |
| 182 | 1 | |
| 126 | 1 | |
| 107 | 1 | |
| 183 | 1 | |
| 76 | 1 | |
| 121 | 1 |
Files With Long Lines (Top 8)
There are 8 files with lines longer than 120 characters. In total, there are 12 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 433 | - | 3 | |
| 74 | 13 | 3 | |
| 53 | - | 1 | |
| 34 | - | 1 | |
| 107 | 1 | 1 | |
| 220 | 1 | 1 | |
| 237 | 4 | 1 | |
| 140 | 6 | 1 |
Correlations
File Size vs. Commits (all time): 98 points
|
|
628.0 | lines of code min: 3.0average: 72.45 25th percentile: 15.75 median: 35.0 75th percentile: 87.5 max: 628.0 |
|
| 0 | 138.0 | ||
|
commits (all time) min: 1.0 | average: 12.42 | 25th percentile: 3.0 | median: 7.0 | 75th percentile: 13.0 | max: 138.0
|
|||
File Size vs. Contributors (all time): 98 points
|
|
628.0 | lines of code min: 3.0average: 72.45 25th percentile: 15.75 median: 35.0 75th percentile: 87.5 max: 628.0 |
|
| 0 | 20.0 | ||
|
contributors (all time) min: 1.0 | average: 4.43 | 25th percentile: 2.75 | median: 4.0 | 75th percentile: 6.0 | max: 20.0
|
|||
File Size vs. Commits (30 days): 15 points
|
|
433.0 | lines of code min: 25.0average: 168.73 25th percentile: 76.0 median: 126.0 75th percentile: 237.0 max: 433.0 |
|
| 0 | 10.0 | ||
|
commits (30d) min: 1.0 | average: 2.07 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 10.0
|
|||
File Size vs. Contributors (30 days): 15 points
|
|
433.0 | lines of code min: 25.0average: 168.73 25th percentile: 76.0 median: 126.0 75th percentile: 237.0 max: 433.0 |
|
| 0 | 3.0 | ||
|
contributors (30d) min: 1.0 | average: 1.53 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 3.0
|
|||
File Size vs. Commits (90 days): 45 points
|
|
628.0 | lines of code min: 11.0average: 120.93 25th percentile: 32.5 median: 86.0 75th percentile: 166.0 max: 628.0 |
|
| 0 | 20.0 | ||
|
commits (90d) min: 1.0 | average: 2.84 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 3.0 | max: 20.0
|
|||
File Size vs. Contributors (90 days): 45 points
|
|
628.0 | lines of code min: 11.0average: 120.93 25th percentile: 32.5 median: 86.0 75th percentile: 166.0 max: 628.0 |
|
| 0 | 5.0 | ||
|
contributors (90d) min: 1.0 | average: 2.0 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 3.0 | max: 5.0
|
|||
About This Analysis
- 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...
- To learn more about bloaters and how to deal with long code structures, Sokrates recommends the following resources:
- Refactoring bloaters, sourcemaking.com
- The Blob Software Development Anti-Pattern, sourcemaking.com