An Investigation into the Functional Form of the Size-Defect Relationship for Software Modules
Authors:
- 2 December 2008
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 35 (2) , 293-304
Abstract
The importance of the relationship between size and defect proneness of software modules is well recognized. Understanding the nature of that relationship can facilitate various development decisions related to prioritization of quality assurance activities. Overall, the previous research only drew a general conclusion that there was a monotonically increasing relationship between module size and defect proneness. In this study, we analyzed class-level size and defect data in order to increase our understanding of this crucial relationship. In order to obtain validated and more generalizable results, we studied four large-scale object-oriented products, Mozilla, Cn3d, JBoss, and Eclipse. Our results consistently revealed a significant effect of size on defect proneness; however, contrary to common intuition, the size-defect relationship took a logarithmic form, indicating that smaller classes were proportionally more problematic than larger classes. Therefore, practitioners should consider giving higher priority to smaller modules when planning focused quality assurance activities with limited resources. For example, in Mozilla and Eclipse, an inspection strategy investing 80% of available resources on 100-LOC classes and the rest on 1,000-LOC classes would be more than twice as cost effective as the opposite strategy. These results should be immediately useful to guide focused quality assurance activities in large-scale software projects.Keywords
This publication has 47 references indexed in Scilit:
- Defect handling in medium and large open source projectsIEEE Software, 2004
- An empirical comparison and characterization of high defect and high complexity modulesJournal of Systems and Software, 2003
- Using version control data to evaluate the impact of software tools: a case study of the Version EditorIEEE Transactions on Software Engineering, 2002
- Two case studies of open source software developmentACM Transactions on Software Engineering and Methodology, 2002
- The prediction of faulty classes using object-oriented design metricsJournal of Systems and Software, 2001
- Does OO sync with how we think?IEEE Software, 1998
- Reexamining the fault density component size connectionIEEE Software, 1997
- Prediction and control of ADA software defectsJournal of Systems and Software, 1990
- Martingale-based residuals for survival modelsBiometrika, 1990
- Cox's Regression Model for Counting Processes: A Large Sample StudyThe Annals of Statistics, 1982