PHP Metrics

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

PHP Metrics

Post by alex.barylski »

I have searched for a while now and found ZIP...

As in nothing...

I found one program which is shaeware and it counts CSS, PHP, Javascript, HTML lines...

But I'd like something a little more verbose than that :(

Anyone know of any SourceForge app or something which will calculate program metrics?

Something that runs on Windows with minimal ease too...

So please don't direct me to Dave Wheelers website...or the first 3 links that come up in a google search (been there) ;)

Cheers :)
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

An out-of-the-box thinking answer..

What is the purpose of metrics? To measure progress.

If you develop using test-driven development, you can measure the percentage of code that is tested, and the percentage of code that successfully tests. But even before that, you can measure the number of deliverables that have test cases written.

That much you can accomplish with simpletest, no additional packages needed.

Measurements based on the number of lines of code are (horribly) inaccurate, and not representative of good coding habits.

Just my quick thoughts on how I'd solve it..
Post Reply