There are simply no metric which can automatically measure code/design quality. Here's how I feel about code/design quality:
1) How many files I need to open to understand what the code does (less is better)
2) How many times I have to jump to follow the execution path (less is better)
3) How easy can I remove or rewrite this piece of code
I think that's extremely dependent on context.
I write mostly SQL and bash and would argue that both languages are not conductive to try to reduce size at the cost of future maintenance.