There is an excellent opensource utility called CLOC (Count Lines of Code).
Cloc counts blank lines, comment lines, and physical lines of source code in many programming languages, and is quite performative.
Wordpress Counts
C:\Downloads2025\wordpress-6.7.2\wordpress>cloc . 2937 text files. 2736 unique files. 488 files ignored. github.com/AlDanial/cloc v 2.04 T=23.97 s (114.2 files/s, 58341.3 lines/s) ------------------------------------------------------------------------------- Language files blank comment code ------------------------------------------------------------------------------- JavaScript 569 74733 130004 447064 PHP 1243 63371 194670 312328 CSS 671 17428 3429 128359 JSON 149 1 0 20671 Text 20 781 0 3159 SCSS 11 210 38 766 SVG 28 0 0 451 HTML 43 125 357 247 Markdown 2 20 0 76 ------------------------------------------------------------------------------- SUM: 2736 156669 328498 913121 -------------------------------------------------------------------------------
C:\Downloads2025\woocommerce.9.8.1>cloc . 4608 text files. 4413 unique files. 342 files ignored. github.com/AlDanial/cloc v 2.04 T=37.27 s (118.4 files/s, 17850.1 lines/s) ------------------------------------------------------------------------------- Language files blank comment code ------------------------------------------------------------------------------- PHP 2931 61027 162858 327479 JavaScript 667 9846 5018 43924 SCSS 36 5298 946 23432 JSON 234 1 0 11434 XML 2 5 18 4894 SVG 173 1 8 2575 Text 28 498 0 2192 CSS 302 165 160 1857 C 1 118 25 668 HTML 25 75 305 116 CSV 9 9 0 71 JSX 1 7 3 52 m4 1 8 0 32 DOS Batch 1 7 0 30 Bourne Shell 1 7 4 26 C/C++ Header 1 4 12 8 ------------------------------------------------------------------------------- SUM: 4413 77076 169357 418790 -------------------------------------------------------------------------------
No comments:
Post a Comment