An analysis of code quality metrics applying correlation and regression for identifying bug occurrences

This study explores the relationship between software quality metrics and defect proneness in the Eclipse project using regression analysis. The results reveal that key metrics such as Lines of Code (LOC), Weighted Methods per Class (WMC), and Response for a Class (RFC) significantly impact bug occurrence, indicating that larger and more complex classes are more prone to defects. Additionally, lack of cohesion (LCOM) is found to be a strong predictor, reinforcing the importance of well-structured class design. The regression model explains approximately 40% of the variance in bug occurrences, highlighting its predictive power. Findings emphasize that high-cohesion, low-coupling principles should guide software development to enhance maintainability and reliability. Prioritizing classes with high-risk metrics for rigorous testing and refactoring can significantly improve software quality. Future work will extend this analysis to other projects and refine predictive models to enhance defect detection strategies. The paper is structured as follows: it begins with an introduction to software quality, followed by a review of related work. The third section outlines the adopted methodology, while the fourth presents the metrics. Finally, the fifth section discusses key findings and offers recommendations for improving software quality.

Authors

Publication Details

Journal
International Journal of Statistics and Applied Mathematics
Published
2025-04-01
DOI
https://doi.org/10.22271/maths.2025.v10.i4a.2018
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An analysis of code quality metrics applying correlation and regression for identifying bug occurrences

Vandana Bhattacharjee, Mahima Shrivastava, Madhumita Singha
International Journal of Statistics and Applied Mathematics
Software Engineering Research
article

An analysis of code quality metrics applying correlation and regression for identifying bug occurrences

Vandana Bhattacharjee, Mahima Shrivastava, Madhumita Singha
article en

Abstract

This study explores the relationship between software quality metrics and defect proneness in the Eclipse project using regression analysis. The results reveal that key metrics such as Lines of Code (LOC), Weighted Methods per Class (WMC), and Response for a Class (RFC) significantly impact bug occurrence, indicating that larger and more complex classes are more prone to defects. Additionally, lack of cohesion (LCOM) is found to be a strong predictor, reinforcing the importance of well-structured class design. The regression model explains approximately 40% of the variance in bug occurrences, highlighting its predictive power. Findings emphasize that high-cohesion, low-coupling principles should guide software development to enhance maintainability and reliability. Prioritizing classes with high-risk metrics for rigorous testing and refactoring can significantly improve software quality. Future work will extend this analysis to other projects and refine predictive models to enhance defect detection strategies. The paper is structured as follows: it begins with an introduction to software quality, followed by a review of related work. The third section outlines the adopted methodology, while the fourth presents the metrics. Finally, the fifth section discusses key findings and offers recommendations for improving software quality.

International Journal of Statistics and Applied MathematicsVol. 10(4)
Openalex Percentile: Top 91%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

An analysis of code quality metrics applying correlation and regression for identifying bug occurrences — Vandana Bhattacharjee, Mahima Shrivastava, et al. · International Journal of Statistics and Applied Mathematics (2025) | TGRS Research Map | TGRS