Metraipolis › archive › dc_62742ce599f8

Assessing the Construct Validity of Object-Oriented, Class-Level Code Quality Metrics — arXiv:2609.20411

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.20411
License (as archived)
CC0-1.0
Archived
2026-10-10T04:15:21.540Z
SHA-256 of the archived text
d4e5fea105612d474a2bc70ef15f35bea64bfef7b1ee75543bfcd305c0997f82
Stable URL of this page
https://metraipolis.com/documento/dc_62742ce599f8

How to cite

Assessing the Construct Validity of Object-Oriented, Class-Level Code Quality Metrics — arXiv:2609.20411 — arXiv (en), https://arxiv.org/abs/2609.20411 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_62742ce599f8 (Metraipolis archive dc_62742ce599f8, sha256 d4e5fea105612d474a2bc70ef15f35bea64bfef7b1ee75543bfcd305c0997f82)
BibTeX
@misc{dc62742ce599f8,
  title = {Assessing the Construct Validity of Object-Oriented, Class-Level Code Quality Metrics — arXiv:2609.20411},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.20411},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_62742ce599f8; sha256 d4e5fea105612d474a2bc70ef15f35bea64bfef7b1ee75543bfcd305c0997f82},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.20411. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Background: Code quality metrics are intended to measure latent properties of software source code. Although numerous code metrics have been proposed and used, their construct validity is rarely evaluated. Thus, the extent to which code metrics actually measure what they claim to measure is often unclear. Aim: Drawing from modern measurement theory, we investigate the construct validity of common class-level, object-oriented code quality metrics by identifying their factor structure using Exploratory Factor Analysis (EFA). The metrics were extracted from the Apache Maven project by three software tools: Designite, JHawk, and Understand. The factor structure was later verified using Confirmatory Factor Analysis (CFA) on 22 randomly selected open source projects meeting a predetermined eligibility criteria. Results: 24 code quality metrics that correspond to six constructs: Cohesion, In-Coupling, Out-Coupling, Size, Sub-Inheritance (related to subclasses), and Sup-Inheritance (related to superclasses) were revealed in the underlying factor structure. Ten metrics did not correspond to any known dimension of software quality and were removed in the EFA. Ten additional metrics exhibited low loadings in the CFA, suggesting their removal from the final measurement model. Size, Cohesion, Inheritance, and Coupling were the constructs retained, with subcategories identified for Inheritance and Coupling. Conclusions: Our results strongly support the construct validity of 24 code quality metrics. Coupling and Inheritance are revealed as multidimensional constructs, since they require measuring two different concepts, revealed as sub-categories in our analysis, and Complexity may be better explored in a multilevel model. Overall, our study demonstrates the value of applying modern measurement theory and latent variable modeling in validating software code quality metrics.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-18 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2609.20411 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-10T04:00:18.374Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-09-18?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).