Hi,
i suggest a addition to the quality of code by measuring test ratios.
testratio = (Lines of Code - Lines of Tests)/Lines of Tests
would give a rouge percentage of test coverage for a project. Of course there has to be some fuzzy code to detect which code could be tests like code in folders with names like test(s|suite){1,0}, lines with asserts, doctests,...
Projects which have a large testsuite usually have a good code base which lesser regression bugs then projects without.