Structural Quality Metrics as Indicators of the Long Method Bad Smell: An Empirical Study

被引:4
|
作者
Charalampidou, Sofia [1 ]
Arvanitou, Elvira-Maria
Ampatzoglou, Apostolos
Avgeriou, Paris
Chatzigeorgiou, Alexander
Stamelos, Ioannis
机构
[1] Univ Groningen, Dept Comp Sci, Groningen, Netherlands
基金
欧盟地平线“2020”;
关键词
long method; coupling; cohesion; size; case study; CODE;
D O I
10.1109/SEAA.2018.00046
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Empirical evidence has pointed out that Extract Method refactorings are among the most commonly applied refactorings by software developers. The identification of Long Method code smells and the ranking of the associated refactoring opportunities is largely based on the use of metrics, primarily with measures of cohesion, size and coupling. Despite the relevance of these properties to the presence of large, complex and noncohesive pieces of code, the empirical validation of these metrics has exhibited relatively low accuracy (max precision: 66%) regarding their predictive power for long methods or extract method opportunities. In this work we perform an empirical validation of the ability of cohesion, coupling and size metrics to predict the existence and the intensity of long method occurrences. According to the statistical analysis, the existence and the intensity of the Long Method smell can be effectively predicted by two size (LoC and NoLV), two coupling (MPC and RFC), and four cohesion (LCOM1, LCOM2, Coh, and CC) metrics. Furthermore, the integration of these metrics into a multiple logistic regression model can predict whether a method should be refactored with a precision of 89% and a recall of 91%. The model yields suggestions whose ranking is strongly correlated to the ranking based on the effect of the corresponding refactorings on source code (correl. coef. 0.520). The results are discussed by providing interpretations and implications for research and practice.
引用
收藏
页码:234 / 238
页数:5
相关论文
共 50 条
  • [41] LIFE QUALITY PARAMETERS AS INDICATORS OF THERAPEUTIC SUCCESS - A LONG-TERM STUDY WITH PIROXICAM IN PATIENTS WITH OSTEOARTHROSIS
    SCHIRRMEISTER, G
    GIEREND, M
    [J]. MEDIZINISCHE WELT, 1987, 38 (03): : 77 - 81
  • [42] Service Quality Measurement of a Chinese Budget Hotel Restaurant-An Empirical Study of an Integrated Method
    Ma Peng
    Zhang Wei
    [J]. PROCEEDINGS FOR EURO-ASIA CONFERENCE ON ENVIRONMENT AND CORPORATE SOCIAL RESPONSIBILITY: TOURISM AND MANAGEMENT SESSION, 2008, : 33 - 39
  • [43] An empirical study of the relationship of stability metrics and the QMOOD quality models over software developed using highly iterative or agile software processes
    Roden, Patricia L.
    Virani, Shanisnaz
    Etzkorn, Letha H.
    Messimer, Sherri
    [J]. SEVENTH IEEE INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION, PROCEEDINGS, 2007, : 171 - +
  • [44] THE LONG-RUNNING ISSUE OF REVIEW QUALITY - FINDINGS FROM AN EMPIRICAL STUDY AMONGST INTERNATIONAL REVIEWERS
    Birkhofer, H.
    Zhao, S.
    [J]. 11TH INTERNATIONAL DESIGN CONFERENCE (DESIGN 2010), VOL 1-3, 2010, : 1 - 10
  • [46] Identifying cost-based quality and performance indicators for home care: a modified delphi method study
    Jajszczok, Max
    Eastwood, Cathy A.
    Lu, Mingshan
    Cunningham, Ceara
    Southern, Danielle A.
    Quan, Hude
    [J]. BMC HEALTH SERVICES RESEARCH, 2024, 24 (01)
  • [47] Construction of haemodialysis nursing-sensitive quality indicators based on Donabedian theory: A Delphi method study
    Chen, Lin
    Zhang, Yingjun
    Li, Chao
    Li, Qiao
    He, Li
    [J]. NURSING OPEN, 2023, 10 (02): : 807 - 816
  • [48] Assessment of hematology laboratory performance in the total testing process using quality indicators and sigma metrics in the northwest of Ethiopia: A cross-sectional study
    Berta, Dereje Mengesha
    Grima, Mekonnen
    Melku, Mulugeta
    Adane, Tiruneh
    Chane, Elias
    Teketelew, Bisrat Birke
    Yalew, Aregawi
    [J]. HEALTH SCIENCE REPORTS, 2024, 7 (01)
  • [49] Risk adjustment of quality indicators in French long term care facilities for elderly people. A preliminary study
    Moty, C
    Barberger-Gateau, P
    De Sarasqueta, AM
    Teare, GF
    Henrard, JC
    [J]. REVUE D EPIDEMIOLOGIE ET DE SANTE PUBLIQUE, 2003, 51 (03): : 327 - 338
  • [50] Empirical-Markovian approach for estimating the flexible pavement structural capacity: Caltrans method as a case study
    Abaza, Khaled A.
    [J]. INTERNATIONAL JOURNAL OF TRANSPORTATION SCIENCE AND TECHNOLOGY, 2021, 10 (02) : 156 - 166