Predicting defective software components from code complexity measures

被引:33
|
作者
Zhang, Hongyu [1 ]
Zhang, Xiuzhen [1 ]
Gu, Ming [1 ]
机构
[1] Tsinghua Univ, Sch Software, Beijing 100084, Peoples R China
关键词
D O I
10.1109/PRDC.2007.28
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
The ability to predict defective modules can help us allocate limited quality assurance resources effectively and efficiently. In this paper, we propose a complexity-based 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 non-defective. 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.
引用
收藏
页码:93 / 96
页数:4
相关论文
共 50 条
  • [1] Predicting the complexity of code changes using entropy based measures
    K. K. Chaturvedi
    P. K. Kapur
    Sameer Anand
    V. B. Singh
    International Journal of System Assurance Engineering and Management, 2014, 5 (2) : 155 - 164
  • [2] Predicting the complexity of code changes using entropy based measures
    Chaturvedi, K. K.
    Kapur, P. K.
    Anand, Sameer
    Singh, V. B.
    INTERNATIONAL JOURNAL OF SYSTEM ASSURANCE ENGINEERING AND MANAGEMENT, 2014, 5 (02) : 155 - 164
  • [3] Estimating the Energy Consumption of Software Components from Size, Complexity and Code Smells Metrics*
    Guaman, Daniel
    Perez, Jennifer
    Valdiviezo-Diaz, Priscila
    Canas, Norberto
    37TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, 2022, : 1456 - 1459
  • [4] Code and data spatial complexity: two important software understandability measures
    Chhabra, JK
    Aggarwal, KK
    Singh, Y
    INFORMATION AND SOFTWARE TECHNOLOGY, 2003, 45 (08) : 539 - 546
  • [5] Predicting Software Maintainability Using Object Oriented Dynamic Complexity Measures
    Gosain, Anjana
    Sharma, Ganga
    SMART TRENDS IN INFORMATION TECHNOLOGY AND COMPUTER COMMUNICATIONS, SMARTCOM 2016, 2016, 628 : 218 - 230
  • [6] Complexity measures for software engineering
    Burgin, M.
    Debnath, N.
    JOURNAL OF COMPUTATIONAL METHODS IN SCIENCES AND ENGINEERING, 2005, 5 (01) : S127 - S143
  • [7] Evaluating code complexity triggers, use of complexity measures and the influence of code complexity on maintenance time
    Vard Antinyan
    Miroslaw Staron
    Anna Sandberg
    Empirical Software Engineering, 2017, 22 : 3057 - 3087
  • [8] Evaluating code complexity triggers, use of complexity measures and the influence of code complexity on maintenance time
    Antinyan, Vard
    Staron, Miroslaw
    Sandberg, Anna
    EMPIRICAL SOFTWARE ENGINEERING, 2017, 22 (06) : 3057 - 3087
  • [9] Code{strata} Sonifying Software Complexity
    Thomas, Denez
    Bossis, Bruno
    Harrand, Nicolas
    Baudry, Benoit
    PROCEEDINGS OF THE TWELFTH INTERNATIONAL CONFERENCE ON TANGIBLE, EMBEDDED, AND EMBODIED INTERACTION (TEI'18), 2018, : 617 - 621
  • [10] On the measures for ranking software components
    Srinivasan S.M.
    Sangwan R.S.
    Neill C.J.
    Srinivasan, Satish M. (sus64@psu.edu), 1600, Springer London (13): : 161 - 175