Practical Implementation and Analysis of Software Metrics Impact on Maintainability in Open-Source Systems
Main Article Content
Abstract
Common software metrics and maintainability measures in open-source Java are examined in this research.The authors test the major object-oriented metrics—Coupling Between Objects (CBO), Lines of Code (LOC), Weighted Methods per Class (WMC), Lack of Cohesion of Methods (LCOM), Depth of Inheritance Tree (DIT), and Cyclomatic Complexity—against real-world maintainability indicators like bug counts, code modifications, and developer turnover. The authors use Python data analysis and visualization to find statistically significant patterns in Spearman correlation analysis.
The findings indicate that metrics such as CBO and cyclomatic complexity are very predictive in terms of maintenance effort, whereas others, such as DIT, provide little insight. In addition to theoretical justification, this work provides a practical, reproducible workflow to be implemented by software engineers to give priority to code quality and make more intelligent maintenance decisions. Finally, this study ties the strengths of academic measures and the real-world aspects of daily software engineering.
Downloads
Article Details

This work is licensed under a Creative Commons Attribution 4.0 International License.
References
A. E. Hassan and Z. Xing, “Software quality metrics: A survey and analysis,” IEEE Transactions on Software Engineering, vol. 46, no. 9, pp. 930–945, 2020.
S. Ali, E. Shihab, and A. E. Hassan, “A comprehensive study on software maintainability prediction,” Journal of Systems and Software, vol. 157, p. 110388, 2019.
M. Alsaqa’aby, A. Ouni, and H. Sahraoui, “Assessing the effectiveness of object-oriented metrics for defect prediction: A systematic literature review,” Information and Software Technology, vol. 129, p. 106424, 2021.
S. R. Chidamber and C. F. Kemerer, “A metrics suite for object-oriented design,” IEEE Transactions on Software Engineering, vol. 20, no. 6, pp. 476–493, 1994.
H. D. Nguyen and T. T. Nguyen, “Revisiting CK metrics for modern Java applications: Empirical validation and extension,” Empirical Software Engineering, vol. 27, no. 3, p. 42, 2022.
C. Catal and B. Diri, “A systematic review of software fault prediction studies,” Expert Systems with Applications, vol. 37, no. 4, pp. 1105–1116, 2019.
Y. Zhang et al., “Challenges in adopting software quality metrics in industrial practice: A survey study,” IEEE Software, vol. 38, no. 2, pp. 55–62, 2021.
H. Borges et al., “Mining open-source software repositories for empirical studies: Challenges and solutions,” Journal of Systems and Software, vol. 163, p. 110555, 2020.
S. Kim and T. Zimmermann, “An empirical study of code churn and fault prediction in open-source projects,” Information and Software Technology, vol. 111, pp. 39–54, 2019.
L. Jiang et al., “Machine learning-based software maintainability prediction: A systematic literature review and framework,” IEEE Transactions on Software Engineering, vol. 49, no. 1, pp. 150–175, 2023.
S. Lee, J. Choi, and H. Park, “Automated framework for assessing software maintainability using combined static analysis and issue tracking data,” IEEE Transactions on Software Engineering, vol. 49, no. 4, pp. 1560–1574, 2023. doi: 10.1109/TSE.2022.3154210.
K. Park and D. Kim, “Temporal analysis of software metrics evolution in agile Java projects,” Journal of Systems and Software, vol. 189, p. 111352, 2022. doi: 10.1016/j.jss.2022.111352.
Y. Zhang, J. Li, and F. Wang, “Hybrid machine learning approach for maintainability prediction combining code metrics and developer activity,” Empirical Software Engineering, vol. 29, no. 1, p. 21, 2024. doi: 10.1007/s10664-023-10324-7.
Fawareh, H. J., Al-Shdaifat, H. M., & Samara, G. (2025). Comparing Open Source with Software Code Generated by AI Tools from Software Maintainability Quality Factor Perspective. WSEAS Transactions on Computer Research, 13, 653-659.
Y. Huang and X. Chen, “Explainable machine learning for software quality prediction: Challenges and opportunities,” ACM Computing Surveys, vol. 55, no. 2, p. 34, 2023. doi: 10.1145/3551234.
T. Gorschek, S. Fricker, and C. Wohlin, Requirements Engineering: Fundamentals, Principles, and Techniques. Springer, 2023.
B. Kitchenham, D. Budgen, and O. Brereton, Evidence-Based Software Engineering and Systematic Reviews. CRC Press, 2022.