An Empirical Study on the Impact of Refactoring on Quality Metrics in Android Applications

Oumayma Hamdi, Ali Ouni, Eman Abdullah Alomar, Mel O Cinneide, Mohamed Wiem Mkaouer

    Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

    18 Scopus citations

    Abstract

    Mobile applications must continuously evolve, sometimes under such time pressure that poor design or implementation choices are made, which inevitably result in structural software quality problems. Refactoring is the widely-accepted approach to ameliorating such quality problems. While the impact of refactoring on software quality has been widely studied in object-oriented software, its impact is still unclear in the context of mobile apps. This paper reports on the first empirical study that aims to address this gap. We conduct a large empirical study that analyses the evolution history of 300 open-source Android apps exhibiting a total of 42,181 refactoring operations. We analyze the impact of these refactoring operations on 10 common quality metrics using a causal inference method based on the Difference-in-Differences (DiD) model. Our results indicate that when refactoring affects the metrics it generally improves them. In many cases refactoring has no significant impact on the metrics, whereas one metric (LCOM) deteriorates overall as a result of refactoring. These findings provide practical insights into the current practice of refactoring in the context of Android app development.

    Original languageEnglish
    Title of host publicationProceedings - 2021 IEEE/ACM 8th International Conference on Mobile Software Engineering and Systems, MobileSoft 2021
    Pages28-39
    Number of pages12
    ISBN (Electronic)9781728187112
    DOIs
    StatePublished - May 2021
    Event8th IEEE/ACM International Conference on Mobile Software Engineering and Systems, MobileSoft 2021 - Virtual, Online
    Duration: 17 May 202119 May 2021

    Publication series

    NameProceedings - 2021 IEEE/ACM 8th International Conference on Mobile Software Engineering and Systems, MobileSoft 2021

    Conference

    Conference8th IEEE/ACM International Conference on Mobile Software Engineering and Systems, MobileSoft 2021
    CityVirtual, Online
    Period17/05/2119/05/21

    Keywords

    • Android
    • Mobile app
    • empirical study
    • quality metrics
    • refactoring

    Fingerprint

    Dive into the research topics of 'An Empirical Study on the Impact of Refactoring on Quality Metrics in Android Applications'. Together they form a unique fingerprint.

    Cite this