Predicting Defective Software Components from Code Complexity Measures

  • Authors:
  • Hongyu Zhang;Xiuzhen Zhang;Ming Gu

  • Affiliations:
  • -;-;-

  • Venue:
  • PRDC '07 Proceedings of the 13th Pacific Rim International Symposium on Dependable Computing
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

The ability to predict defective modules can help us allocate limited quality assurance resources effectively and efficiently. In this paper, we propose a complexitybased method for predicting defect-prone components. Our method takes three code-level complexity measures as input, namely Lines of Code, McCabe's Cyclomatic Complexity and Halstead's Volume, and classifies components as either defective or nondefective. We perform an extensive study of twelve classification models using the public NASA datasets. Cross-validation results show that our method can achieve good prediction accuracy. This study confirms that static code complexity measures can be useful indicators of component quality.