magento/magento2 has 2,160,238 source lines of code out of 3,433,033 total lines across 32,425 files, counted with tokei from the 2.4-develop ref at commit 90f60c1e8ae5 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
magento/magento2: 2,160,238 code lines at commit 90f60c1e8ae5, counted with tokei-15.0.0 on 2026-11-16. Saved result 64afc2beb9d136cd9409b88de0d964403c48d7921a1b82c4c300553606c458c1.
OctoCounts produced this report by resolving magento/magento2 to commit 90f60c1e8ae5, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a very large codebase by counted code lines. Code represents 62.9% of all lines, comments represent 27.1%, and the repository averages 67 code lines per file. PHP accounts for 67.1% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| PHP | 19723 | 2478838 | 1448510 | 770143 | 260185 |
| XML | 9087 | 426737 | 334881 | 73288 | 18568 |
| JavaScript | 1294 | 335043 | 256971 | 45965 | 32107 |
| LESS | 432 | 78499 | 59093 | 7080 | 12326 |
| CSS | 90 | 28545 | 27580 | 408 | 557 |
| JSON | 326 | 21495 | 21495 | 0 | 0 |
| HTML | 372 | 12567 | 8348 | 3704 | 515 |
| TypeScript | 1 | 3252 | 3252 | 0 | 0 |
| SVG | 20 | 108 | 108 | 0 | 0 |
| Markdown | 429 | 14703 | 0 | 12161 | 2542 |
| Plain Text | 651 | 33246 | 0 | 18350 | 14896 |
Top language: PHP 67.1%. Generated on .
magento/magento2: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
magento/magento2 has 2,160,238 lines of code, plus 931,099 comment lines and 341,696 blank lines, for 3,433,033 total lines at commit 90f60c1e8ae5 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 90f60c1e8ae5, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from 2.4-develop at commit 90f60c1e8ae5 on November 16, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for magento/magento2 on this page — 2,160,238 code lines across 11 languages, counted by tokei.