Software Code Quality Measurement: Implications from Metric Distributions
Preprint
Abstract
Software code quality is a construct with three dimensions: maintainability, reliability, and functionality. Although many firms have incorporated code quality metrics in their operations, evaluating these metrics still lacks consistent standards. We categorized distinct metrics into two types: 1) monotonic metrics that consistently influence code quality; and 2) non-monotonic metrics that lack a consistent relationship with code quality. To consistently evaluate them, we proposed a distribution-based method to get metric scores. Our empirical analysis includes 36,460 high-quality open-source software (OSS) repositories and their raw metrics from SonarQube and CK. The evaluated scores demonstrate great explainability on software adoption. Our work contributes to the multi-dimensional construct of code quality and its metric measurements, which provides practical implications for consistent measurements on both monotonic and non-monotonic metrics.Keywords
All Related Versions
This publication has 19 references indexed in Scilit:
- Reliability in software engineering qualitative research through Inter-Coder AgreementJournal of Systems and Software, 2023
- Empirical investigation in embedded systems: Quality attributes in general, maintainability in particularJournal of Systems and Software, 2023
- Selected Code-Quality Characteristics and Metrics for Internet of Things SystemsIEEE Access, 2022
- From API to NLI: A new interface for library reuseJournal of Systems and Software, 2020
- Test Code Quality and Its Relation to Issue Handling PerformanceIEEE Transactions on Software Engineering, 2014
- Conceptualizing models using multidimensional constructs: a review and guidelines for their useEuropean Journal of Information Systems, 2012
- Evaluating Complexity, Code Churn, and Developer Activity Metrics as Indicators of Software VulnerabilitiesIEEE Transactions on Software Engineering, 2010
- Measuring open source software successOmega, 2009
- An empirical investigation of an object-oriented design heuristic for maintainabilityJournal of Systems and Software, 2003
- Code quality analysis in open source software developmentInformation Systems Journal, 2002