# WordPress/WordPress SLOC report

> As of 2026-09-20 (commit 5ed0dea06d1f), WordPress/WordPress contains 1,214,174 total lines: 781,556 code, 299,267 comments, 133,351 blank, across 3,853 files in 10 languages (top: PHP 47.1%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

WordPress/WordPress has 781,556 source lines of code out of 1,214,174 total lines across 3,853 files, counted from the master ref at commit 5ed0dea06d1f by the OctoCounts tokei engine on 2026-09-20. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving WordPress/WordPress to commit 5ed0dea06d1f, 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 large codebase by counted code lines. Code represents 64.4% of all lines, comments represent 24.6%, and the repository averages 203 code lines per file. PHP accounts for 47.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| PHP | 1,855 | 671,181 | 368,418 | 230,974 | 71,789 |
| CSS | 939 | 217,213 | 167,716 | 19,207 | 30,290 |
| JavaScript | 458 | 209,357 | 144,493 | 39,333 | 25,531 |
| JSON | 185 | 86,246 | 86,245 | 0 | 1 |
| Sass | 157 | 15,935 | 11,560 | 1,482 | 2,893 |
| SVG | 134 | 2,270 | 2,264 | 6 | 0 |
| PO File | 2 | 1,059 | 510 | 290 | 259 |
| HTML | 59 | 1,075 | 350 | 512 | 213 |
| Markdown | 6 | 562 | 0 | 393 | 169 |
| Plain Text | 58 | 9,276 | 0 | 7,070 | 2,206 |

Top language (PHP 47.1%). Generated at 2026-09-20T10:01:36.281630449+00:00. Canonical report: https://octocounts.com/github/WordPress/WordPress

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/WordPress/WordPress/commit/5ed0dea06d1f05d60d3bf4b04992b88777c3b398?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does WordPress/WordPress have?

WordPress/WordPress has 1,214,174 total lines, including 781,556 code lines, 299,267 comment lines, and 133,351 blank lines.

### How was the WordPress/WordPress line count measured?

OctoCounts resolved the public GitHub repository to commit 5ed0dea06d1f, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for WordPress/WordPress?

This OctoCounts report was generated from master at commit 5ed0dea06d1f on 2026-09-20T10:01:36.281630449+00:00.

## Similar repository reports

- [SuiteCRM/SuiteCRM](https://octocounts.com/github/SuiteCRM/SuiteCRM) — PHP, 727,112 code lines
- [OpenMage/magento-lts](https://octocounts.com/github/OpenMage/magento-lts) — PHP, 477,486 code lines
- [drupal/drupal](https://octocounts.com/github/drupal/drupal) — PHP, 460,880 code lines
- [aureuserp/aureuserp](https://octocounts.com/github/aureuserp/aureuserp) — PHP, 371,662 code lines
- [joomla/joomla-cms](https://octocounts.com/github/joomla/joomla-cms) — PHP, 333,841 code lines
- [phpbb/phpbb](https://octocounts.com/github/phpbb/phpbb) — PHP, 322,801 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
