As of 2026-08-26 (commit 758325ae7b73), magento/magento2 contains 4,253,847 total lines: 2,731,770 code, 1,112,379 comments, 409,698 blank, across 39,386 files in 12 languages (top: PHP 70.4%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving magento/magento2 to commit 758325ae7b73, 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 64.2% of all lines, comments represent 26.1%, and the repository averages 69 code lines per file. PHP accounts for 70.4% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| PHP | 25477 | 3168725 | 1922559 | 923897 | 322269 |
| XML | 9752 | 456143 | 359425 | 77704 | 19014 |
| JavaScript | 1554 | 366802 | 282514 | 47851 | 36437 |
| LESS | 477 | 99704 | 60462 | 26504 | 12738 |
| JSON | 408 | 50546 | 50540 | 0 | 6 |
| CSS | 108 | 44533 | 43257 | 575 | 701 |
| HTML | 426 | 14256 | 9634 | 4004 | 618 |
| TypeScript | 1 | 3252 | 3252 | 0 | 0 |
| SVG | 21 | 128 | 127 | 1 | 0 |
| Markdown | 432 | 15268 | 0 | 12498 | 2770 |
| Plain Text | 729 | 34489 | 0 | 19344 | 15145 |
| SQL | 1 | 1 | 0 | 1 | 0 |
Top language (PHP 70.4%). Generated at 2026-08-26T03:28:52.608532635+00:00.
magento/magento2 has 4,253,847 total lines, including 2,731,770 code lines, 1,112,379 comment lines, and 409,698 blank lines.
OctoCounts resolved the public GitHub repository to commit 758325ae7b73, 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 758325ae7b73 on 2026-08-26T03:28:52.608532635+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: