Drupal 6 - Core Source Evaluation

Events happening in the community are now at Drupal community events on www.drupal.org.
tjholowaychuk's picture

I whipped up a quick source code line counting bash script to evaluate work that I have previously done. However that being said I ran it against Drupal 6 core without any contrib, and its interesting to see where the numbers are at. Currently it does not parse or report on comments or markup however I will add that in there soon.

module 24442
inc 38890
php 4670
install 6139
js 3621
css 5164
total 82926

Will be interesting to compare with D7 if/when (already?) hook_hooks and others are implemented allowing us to slim our .module files even more.

Comments

puregin

greggles's picture

puregin - djun kim - has done lots of work on this. I suggest contacting him.

http://www.puregin.org/drupal-6-2-code-metrics

Ohloh has 'ohcount'

tjholowaychuk's picture

Ohloh has 'ohcount' available for download at http://labs.ohloh.net/ohcount for anyone who is interested. My script is currently only 6 lines haha.. so I will finish that up tommorrow and have that available on my site, although it will not provide metrics for a wide variety of languages like ohcount will.


Tj Holowaychuk

Vision Media - Victoria BC Web Design
Victoria British Columbia Web Design School

Here is the output of a more

tjholowaychuk's picture

Here is the output of a more valid ruby gem analysis program on a slightly older version of Drupal 6 with nothing contrib.

declared classes 2
declared functions 2243
files 283
files css 59
files inc 80
files install 25
files js 23
files module 33
files php 63
lines 82935
lines blank 7379
lines comments 24328
lines todo 6
comment ratio 0.29

Tj Holowaychuk

Vision Media - Victoria BC Web Design
Victoria British Columbia Web Design School

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: