magento/magento2 SLOC report

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.

Repository size insights

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.

LanguageFilesLinesCodeCommentsBlanks
PHP2547731687251922559923897322269
XML97524561433594257770419014
JavaScript15543668022825144785136437
LESS47799704604622650412738
JSON408505465054006
CSS1084453343257575701
HTML4261425696344004618
TypeScript13252325200
SVG2112812710
Markdown432152680124982770
Plain Text7293448901934415145
SQL11010

Top language (PHP 70.4%). Generated at 2026-08-26T03:28:52.608532635+00:00.

Report FAQ

How many lines of code does magento/magento2 have?

magento/magento2 has 4,253,847 total lines, including 2,731,770 code lines, 1,112,379 comment lines, and 409,698 blank lines.

How was the magento/magento2 line count measured?

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.

What commit was counted for magento/magento2?

This OctoCounts report was generated from 2.4-develop at commit 758325ae7b73 on 2026-08-26T03:28:52.608532635+00:00.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity: