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 条
  • [31] Customizable Visualization of Quality Metrics for Object-Oriented Variability Implementations
    Mortara, Johann
    Collet, Philippe
    Pinna-Dery, Anne-Marie
    26TH ACM INTERNATIONAL SYSTEMS AND SOFTWARE PRODUCT LINE CONFERENCE, SPLC 2022, VOL A, 2022, : 43 - 54
  • [33] A model-based approach to object-oriented software metrics
    Hong Mei
    Tao Xie
    Fuqing Yang
    Journal of Computer Science and Technology, 2002, 17 : 757 - 769
  • [34] An Outlier Detection Algorithm Based on Object-Oriented Metrics Thresholds
    Alan, Oral
    Catal, Cagatay
    2009 24TH INTERNATIONAL SYMPOSIUM ON COMPUTER AND INFORMATION SCIENCES, 2009, : 565 - 568
  • [35] An extensible metrics extraction environment for object-oriented programming languages
    Harmer, TJ
    Wilkie, FG
    SCAM 2002: SECOND IEEE INTERNATIONAL WORKSHOP ON SOURCE CODE ANALYSIS MANIPULATION, PROCEEDINGS, 2002, : 26 - 35
  • [36] Tracking the evolution of object-oriented quality metrics on agile projects
    Sato, Danilo
    Goldman, Alfredo
    Kon, Fabio
    AGILE PROCESSES IN SOFTWARE ENGINEERING AND EXTREME PROGRAMMING, PROCEEDINGS, 2007, 4536 : 84 - +
  • [37] Process metrics for software defect prediction in object-oriented programs
    Yu, Qiao
    Jiang, Shujuan
    Qian, Junyan
    Bo, Lili
    Jiang, Li
    Zhang, Gongjie
    IET SOFTWARE, 2020, 14 (03) : 283 - 292
  • [38] Investigation of relationship between object-oriented metrics and change proneness
    Malhotra, Ruchika
    Khanna, Megha
    INTERNATIONAL JOURNAL OF MACHINE LEARNING AND CYBERNETICS, 2013, 4 (04) : 273 - 286
  • [39] Empirical Analysis of Object-Oriented Metrics for Prediction of Software Faults
    Goyal, Jyoti
    Kishan, Bal
    BIOSCIENCE BIOTECHNOLOGY RESEARCH COMMUNICATIONS, 2020, 13 (15): : 292 - 296
  • [40] Investigation of relationship between object-oriented metrics and change proneness
    Ruchika Malhotra
    Megha Khanna
    International Journal of Machine Learning and Cybernetics, 2013, 4 : 273 - 286