This page compares the source lines of code (SLOC) of WordPress/WordPress and drupal/drupal using cached OctoCounts reports. Code size is not code quality: a larger count only means more source material, not a better or worse project.
As of 2026-08-26, WordPress/WordPress contains 1,209,573 total lines (780,649 code) across 3,849 files, while drupal/drupal contains 865,419 total lines (459,617 code) across 8,664 files as of 2026-08-26. WordPress/WordPress is about 1.7x the size of drupal/drupal by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.
| Metric | WordPress/WordPress | drupal/drupal |
|---|---|---|
| Files | 3,849 | 8,664 |
| Total lines | 1,209,573 | 865,419 |
| Code lines | 780,649 | 459,617 |
| Comment lines | 295,784 | 317,580 |
| Blank lines | 133,140 | 88,222 |
| Languages counted | 10 | 12 |
Top languages in WordPress/WordPress: PHP (47.1% of code), CSS (21.5% of code), JavaScript (18.5% of code). Top languages in drupal/drupal: PHP (63.4% of code), CSS (14.5% of code), YAML (10.3% of code). PHP, CSS, JavaScript appear in both top language lists; JSON, Sass appear only in WordPress/WordPress's top languages; YAML, Twig appear only in drupal/drupal's top languages.
Methodology: both counts come from cached OctoCounts reports generated with tokei. WordPress/WordPress was counted at ref master (commit 676f114fe3c9) on 2026-08-26; drupal/drupal was counted at ref main (commit bd98d7e72ba7) on 2026-08-26. See the counting methodology for ignored directories and analysis options.
Evidence and next steps:
Note: code size is not code quality. OctoCounts only reports reproducible line counts and makes no claim that either project is better.
WordPress/WordPress has more code: 780,649 code lines versus 459,617 for drupal/drupal, about 1.7x as much, based on cached OctoCounts reports as of 2026-08-26.
Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use SLOC to gauge the scale of what you'd be reading or maintaining, not as a quality signal for WordPress/WordPress, drupal/drupal, or any repository.
Methodology: both counts come from cached OctoCounts reports generated with tokei. WordPress/WordPress was counted at ref master (commit 676f114fe3c9) on 2026-08-26; drupal/drupal was counted at ref main (commit bd98d7e72ba7) on 2026-08-26. See the counting methodology for ignored directories and analysis options.
Yes. This page shows the default branch for each repository. Use the interactive comparison tool to pick any public GitHub repository, branch, tag, or commit SHA for both sides and get a fresh side-by-side report.