The confounding effect of class size on the validity of object-oriented metrics

被引:239
|
作者
Emam, KE
Benlarbi, S
Goel, N
Rai, SN
机构
[1] Natl Res Council Canada, Inst Informat Technol, Ottawa, ON K1A 0R6, Canada
[2] Cistel Technol, Nepean, ON K2E 7L5, Canada
[3] St Jude Childrens Res Hosp, Dept Biostat & Epidemiol, Memphis, TN 38105 USA
关键词
object-oriented metrics; software quality; metrics validation; validation methodology; object-oriented quality; coupling metrics; inheritance metrics; cohesion metrics;
D O I
10.1109/32.935855
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Much effort has been devoted to the development and empirical validation of object-oriented metrics. The empirical validations performed thus far would suggest that a core set of validated metrics is close to being identified. However, none of these studies allow for the potentially confounding effect of class size. In this paper, we demonstrate a strong size confounding effect and question the results of previous object-oriented metrics validation studies. We first investigated whether there is a confounding effect of class size in validation studies of object-oriented metrics and show that, based on previous work, there is reason to believe that such an effect exists. We then describe a detailed empirical methodology for identifying those effects. Finally, we perform a study on a large C++ telecommunications framework to examine if size is really a confounder. This study considered the Chidamber and Kemerer metrics and a subset of the Lorenz and Kidd metrics. The dependent variable was the incidence of a fault attributable to a field failure (fault-proneness of a class). Our findings indicate that, before controlling for size, the results are very similar to previous studies: The metrics that are expected to be validated are indeed associated with fault-proneness. After controlling for size, none of the metrics we studied were associated with fault-proneness anymore. This demonstrates a strong size confounding effect and casts doubt on the results of previous object-oriented metrics validation studies. It is recommended that previous validation studies be reexamined to determine whether their conclusions would still hold after controlling for size and that future validation studies should always control for size.
引用
收藏
页码:630 / 650
页数:21
相关论文
共 50 条
  • [1] The confounding effect of class size on the validity of object-oriented metrics
    Evanco, WM
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2003, 29 (07) : 670 - 672
  • [2] An investigation into the applicability and validity of object-oriented design metrics
    Harrison R.
    Counsell S.J.
    Nithi R.V.
    Empirical Software Engineering, 1998, 3 (3) : 255 - 273
  • [3] The optimal class size for object-oriented software
    El Emam, K
    Benlarbi, S
    Goel, N
    Melo, W
    Lounis, H
    Rai, SN
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2002, 28 (05) : 494 - 509
  • [4] Metrics for object-oriented design focusing on class inheritance metrics
    Breesam, Kadhim M.
    DepCoS - RELCOMEX '07: International Conference on Dependability of Computer Systems, Proceedings, 2007, : 231 - 237
  • [5] Validating Object-Oriented Class Cohesion Metrics Mathematically
    Al Dallal, Jehad
    SEPADS'10: PROCEEDINGS OF THE 9TH WSEAS INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PARALLEL AND DISTRIBUTED SYSTEMS, 2010, : 73 - 77
  • [6] A Study on Object-Oriented Testing Technique and Object-Oriented Metrics useful in Reducing Class Testing Complexity
    Goel, Brij Mohan
    2014 FOURTH INTERNATIONAL CONFERENCE ON ADVANCED COMPUTING AND COMMUNICATION TECHNOLOGIES (ACCT 2014), 2014, : 185 - 188
  • [7] Object-Oriented Software Coupling Metrics
    Ma J.
    Liu F.
    Fan J.-P.
    Beijing Youdian Daxue Xuebao/Journal of Beijing University of Posts and Telecommunications, 2018, 41 (01): : 109 - 114
  • [8] Object-Oriented Metrics for Defect Prediction
    Singh, Satwinder
    Singla, Rozy
    SOFTWARE ENGINEERING (CSI 2015), 2019, 731 : 305 - 318
  • [9] Product metrics for object-oriented systems
    Purao, S
    Vaishnavi, V
    ACM COMPUTING SURVEYS, 2003, 35 (02) : 191 - 221
  • [10] The Statistical Measurement of an Object-Oriented Programme Using an Object Oriented Metrics
    Panigrahi, Rasmita
    Baboo, Sarada
    Padhy, Neelamadhab
    PROCEEDINGS OF THE 3RD INTERNATIONAL CONFERENCE ON FRONTIERS OF INTELLIGENT COMPUTING: THEORY AND APPLICATIONS (FICTA) 2014, VOL 2, 2015, 328 : 605 - 618