magento/magento2 has 2,154,474 source lines of code out of 3,425,154 total lines across 32,400 files, counted from the 2.4-develop ref at commit 16f4fa211bfd by the OctoCounts tokei engine on 2026-10-22. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-22 (commit 16f4fa211bfd), magento/magento2 contains 3,425,154 total lines: 2,154,474 code, 929,674 comments, 341,006 blank, across 32,400 files in 11 languages (top: PHP 67.0%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving magento/magento2 to commit 16f4fa211bfd, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.
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 66 code lines per file. PHP accounts for 67.0% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| PHP | 19697 | 2471207 | 1442973 | 768730 | 259504 |
| XML | 9088 | 426530 | 334677 | 73284 | 18569 |
| JavaScript | 1294 | 335013 | 256949 | 45964 | 32100 |
| LESS | 432 | 78499 | 59093 | 7080 | 12326 |
| CSS | 90 | 28545 | 27580 | 408 | 557 |
| JSON | 326 | 21492 | 21492 | 0 | 0 |
| HTML | 372 | 12569 | 8350 | 3704 | 515 |
| TypeScript | 1 | 3252 | 3252 | 0 | 0 |
| SVG | 20 | 108 | 108 | 0 | 0 |
| Markdown | 429 | 14693 | 0 | 12154 | 2539 |
| Plain Text | 651 | 33246 | 0 | 18350 | 14896 |
Top language (PHP 67.0%). Generated at .
magento/magento2 has 3,425,154 total lines, including 2,154,474 code lines, 929,674 comment lines, and 341,006 blank lines.
OctoCounts resolved the public GitHub repository to commit 16f4fa211bfd, 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 16f4fa211bfd on 2026-10-22T06:14:36.724280711+00:00.
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,154,474 code lines across 11 languages, counted by tokei.