Publication in conference proceedings Q3
Detecting sudden variations in web apps code smells’ density: A longitudinal study
José Rio (Rio, J.); Fernando Brito e Abreu (Abreu, F. B. e.);
Quality of information and communications technology. Communications in Computer and Information Science
Year (definitive publication)
2021
Language
English
Country
Switzerland
More Information
Web of Science®

This publication is not indexed in Web of Science®

Scopus

Times Cited: 2

(Last checked: 2024-08-20 18:34)

View record in Scopus


: 1.3
Google Scholar

Times Cited: 3

(Last checked: 2024-08-24 14:48)

View record in Google Scholar

Abstract
Code smells are considered potentially harmful to software maintenance. Their introduction is dependent on the production of new code or the addition of smelly code produced by another team. Code smells survive until being refactored or the code where they stand is removed. Under normal conditions, we expect code smells density to be relatively stable throughout time. Anomalous (sudden) increases in this density are expected to hurt maintenance costs and the other way round. In the case of sudden increases, especially in pre-release tests in an automation server pipeline, detecting those outlier situations can trigger refactoring actions before releasing the new version. This paper presents a longitudinal study on the sudden variations in the introduction and removal of 18 server code smells on 8 PHP web apps, across several years. The study regards web applications but can be generalized to other domains, using other CS and tools. We propose a standardized detection criterion for this kind of code smell anomalies. Besides providing a retrospective view of the code smell evolution phenomenon, our detection approach, which is particularly amenable to graphical monitoring, can make software project managers aware of the need for enforcing refactoring actions.
Acknowledgements
This work was partially supported by the Portuguese Foundation for Science and Technology (FCT) projects UIDB/04466/2020 e UIDP/04466/2020.
Keywords
PHP,Code smells,Web apps,Sudden variations,Anomaly detection,Outliers
  • Mathematics - Natural Sciences
  • Computer and Information Sciences - Natural Sciences
Funding Records
Funding Reference Funding Entity
UIDP/04466/2020 Fundação para a Ciência e a Tecnologia
UIDB/04466/2020 Fundação para a Ciência e a Tecnologia
Related Projects

This publication is an output of the following project(s):

With the objective to increase the research activity directed towards the achievement of the United Nations 2030 Sustainable Development Goals, the possibility of associating scientific publications with the Sustainable Development Goals is now available in Ciência-IUL. These are the Sustainable Development Goals identified by the author(s) for this publication. For more detailed information on the Sustainable Development Goals, click here.