Al-Fraihat, Dimah
Unknown Affiliation

Published : 2 Documents Claim Missing Document
Claim Missing Document
Check
Articles

Found 2 Documents
Search

Detecting and resolving feature envy through automated machine learning and move method refactoring Al-Fraihat, Dimah; Sharrab, Yousef; Al-Ghuwairi, Abdel-Rahman; AlElaimat, Majed; Alzaidi, Maram
International Journal of Electrical and Computer Engineering (IJECE) Vol 14, No 2: April 2024
Publisher : Institute of Advanced Engineering and Science

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.11591/ijece.v14i2.pp2330-2343

Abstract

Efficiently identifying and resolving code smells enhances software project quality. This paper presents a novel solution, utilizing automated machine learning (AutoML) techniques, to detect code smells and apply move method refactoring. By evaluating code metrics before and after refactoring, we assessed its impact on coupling, complexity, and cohesion. Key contributions of this research include a unique dataset for code smell classification and the development of models using AutoGluon for optimal performance. Furthermore, the study identifies the top 20 influential features in classifying feature envy, a well-known code smell, stemming from excessive reliance on external classes. We also explored how move method refactoring addresses feature envy, revealing reduced coupling and complexity, and improved cohesion, ultimately enhancing code quality. In summary, this research offers an empirical, data-driven approach, integrating AutoML and move method refactoring to optimize software project quality. Insights gained shed light on the benefits of refactoring on code quality and the significance of specific features in detecting feature envy. Future research can expand to explore additional refactoring techniques and a broader range of code metrics, advancing software engineering practices and standards.
A systematic review on software code smells Al-Obeidallah, Mohammed Ghazi; Al-Fraihat, Dimah
International Journal of Electrical and Computer Engineering (IJECE) Vol 15, No 3: June 2025
Publisher : Institute of Advanced Engineering and Science

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.11591/ijece.v15i3.pp3010-3027

Abstract

This paper provides a systematic review of code smell detection studies published from 2001 to 2023, addressing their significance in identifying underlying issues in software systems. Through stringent inclusion criteria, 116 primary studies were analyzed, focusing on various aspects such as publication venue, code smell categories, subject systems, supported programming languages, evaluation criteria, and detection techniques. The analysis reveals that 50% of the papers were conference proceedings, with 80% utilizing Java-supported techniques and commonly used subject systems like Apache Xerces, GanttProject, and ArgoUML. Metrics-based methods (33%) and search-based approaches (32%) were predominantly employed, with machine learning emerging in 20% and rule-based methods in 15% of the studies. Notably, recent studies have shown an increased adoption of machine learning techniques. The identified code smells include god class, feature envy, long method, and data class, with precision and recall being the most commonly used evaluation metrics. This review aims to inform future research directions and aid the software engineering community in developing novel detection techniques to enhance code quality and system reliability.