arrow
Return

A Severity Assessment of Python Code Smells

delete2023-01-01
delete0
delete
OA
AI
A
Aakanshi Gupta
R
Rashmi Gandhi
N
Nishtha Jatana
D
Divya Jatain
S
Sandeep Kumar Panda *
J
Janjhyam Venkata Naga Ramesh
DOI:10.1109/ACCESS.2023.3327553delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Presence of code smells complicate the source code and can obstruct the development and functionality of the software project. As they represent improper behavior that might have an adverse effect on software maintenance, code smells are behavioral in nature. Python is widely used for various software engineering activities and tends tool to contain code smells that affect its quality. This study investigates five code smells diffused in 20 Python software comprising 10550 classes and analyses its severity index using metric distribution at the class level. Subsequently, a behavioral analysis has been conducted over the considered modification period (phases) for the code smell undergoing class change proneness. Furthermore, it helps to investigate the accurate multinomial classifier for mining the severity index. It witnesses the change in severity at the class level over the modification period by mapping its characteristics over various statistical functions and hypotheses. Our findings reveal that the Cognitive Complexity of code smell is the most severe one. The remaining four smells are centered around the moderate range, having an average severity index value. The results suggest that the J48 algorithm was the accurate multinomial classifier for classifying the severity of code smells with 92.98% accuracy in combination with the AdaBoost method. The findings of our empirical evaluation can be beneficial for the software developers to prioritize the code smells in the pre-refactoring phase and can help manage the code smells in forthcoming releases, subsequently saving ample time and resources spent in the development and maintenance of software projects.
Keywords:
Software maintenance
Internet of Things
Open source software
Green design
code smell severity
cognitive complexity code smell
class change proneness
open-source software
sustainable software

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
9.8W
Citations:
29.4W

Organization

T
the icfai foundation for higher education (ifhe)
Scholars:
297
Papers: 342
Citations: 0
M
maharaja surajmal institute of technology
Scholars:
175
Papers: 149
Citations: 0
A
amity university noida
Scholars:
3.6K
Papers: 2.8K
Citations: 6
researcher View more organizations
Cited Papers

Cited Papers

Computerized Real-Time Analysis of Football Games
err2005-07-01
err0
PREAI
errM. Beetz; B. Kirchlechner; M. Lames
errShare
errSave
errShare
errSave
A large-scale empirical study on the lifecycle of code smell co-occurrences
err2018-07-01
err74
PREAI
errPalomba, Fabio; Bavota, Gabriele; Di Penta, Massimiliano; Fasano, Fausto; Oliveto, Rocco; De Lucia, Andrea
errShare
errSave
Effects of thermal annealing on the charge localization characteristics of HfO2/Au/HfO2 stack
err2016-06-01
err0
PREAI
errXuan Feng; Shurong Dong; Hei Wong; Danqun Yu; K.L. Pey; K. Shubhakar; W.S. Lau
errShare
errSave
A Systematic Literature Review on Bad Smells-5 W's: Which, When, What, Who, Where
err2021-01-01
err58
PREAI
errde Paulo Sobrinho, Elder Vicente; De Lucia, Andrea; Maia, Marcelo de Almeida
errShare
errSave
Towards Better Dependency Management: A First Look at Dependency Smells in Python Projects
err2023-04-01
err13
PREAI
errCao, Yulu; Chen, Lin; Ma, Wanwangying; Li, Yanhui; Zhou, Yuming; Wang, Linzhang
errShare
errSave
What are the effects of history length and age on mining software change impact?
err2018-03-06
err5
PREAI
errMoonen, Leon; Rolfsnes, Thomas; Binkley, Dave; Di Alesio, Stefano
errShare
errSave
researcher View more