Add initial implementation of quality metrics

Change-Id: Ib4e95130c00016376e42fedbebefe0cd5ee46031
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>