Detecting Sudden Variations in Web Apps Code Smells’ Density: A Longitudinal Study

Américo Rio, Fernando Brito e Abreu

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

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.

Original languageEnglish
Title of host publicationQuality of Information and Communications Technology - 14th International Conference, QUATIC 2021, Proceedings
EditorsAna C.R. Paiva, Ana Rosa Cavalli, Paula Ventura Martins, Ricardo Pérez-Castillo
PublisherSpringer Science and Business Media Deutschland GmbH
Pages82-96
Number of pages15
ISBN (Electronic)978-3-030-85347-1
ISBN (Print)9783030853464
DOIs
Publication statusPublished - 20 Sep 2021
Event14th International Conference on the Quality of Information and Communications Technology, QUATIC 2021 - Faro, Portugal
Duration: 8 Sep 202111 Sep 2021

Publication series

NameCommunications in Computer and Information Science
Volume1439 CCIS
ISSN (Print)1865-0929
ISSN (Electronic)1865-0937

Conference

Conference14th International Conference on the Quality of Information and Communications Technology, QUATIC 2021
CountryPortugal
CityFaro
Period8/09/2111/09/21

Keywords

  • Anomaly detection
  • Code smells
  • Outliers
  • PHP
  • Sudden variations
  • Web apps

Fingerprint

Dive into the research topics of 'Detecting Sudden Variations in Web Apps Code Smells’ Density: A Longitudinal Study'. Together they form a unique fingerprint.

Cite this