Page 1 of 1

PHP Metrics

Posted: Fri Jan 13, 2006 5:17 pm
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 :)

Posted: Fri Jan 13, 2006 5:26 pm
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..