TY - GEN
T1 - Large Class Refactoring in PHP Program to Improve Modularity Based on ISO/IEC 25023 Metrics
AU - Mardiana, Bella Dwi
AU - Rochimah, Siti
N1 - Publisher Copyright:
© 2024 IEEE.
PY - 2024
Y1 - 2024
N2 - Code that contains code smell is difficult for software developers to understand, modify, or maintain. This study focuses on improving software quality by minimizing the code smell, which can hinder maintenance and development. Code smell with a Large Class type was selected as the primary focus because such type of code is often difficult to understand and modify. To address this issue, refactoring techniques, such as the Extract Ciass, Extract Method, and Move Method are applied in a real case. This study assesses the effectiveness of code refactoring using modularity metrics based on the ISO/IEC 25023 standard. The study was conducted on PHP code containing code smell, which were then identified, analyzed, and refactored. Case studies involved real software applications, and code quality improvements were measured by comparing metrics before and after refactoring. Results showed significant improvements in code modularity. In the Laundry case study, modularity improved by 40.58% for the MMo-1-G metric and 3.97% for the MMo-2-S metric. In the School Management System, improvements of 8.76% for MMo-1-G and 0.11% for MMo-2-S were recorded. The results demonstrate that refactoring can effectively reduce code smell and improve software quality.
AB - Code that contains code smell is difficult for software developers to understand, modify, or maintain. This study focuses on improving software quality by minimizing the code smell, which can hinder maintenance and development. Code smell with a Large Class type was selected as the primary focus because such type of code is often difficult to understand and modify. To address this issue, refactoring techniques, such as the Extract Ciass, Extract Method, and Move Method are applied in a real case. This study assesses the effectiveness of code refactoring using modularity metrics based on the ISO/IEC 25023 standard. The study was conducted on PHP code containing code smell, which were then identified, analyzed, and refactored. Case studies involved real software applications, and code quality improvements were measured by comparing metrics before and after refactoring. Results showed significant improvements in code modularity. In the Laundry case study, modularity improved by 40.58% for the MMo-1-G metric and 3.97% for the MMo-2-S metric. In the School Management System, improvements of 8.76% for MMo-1-G and 0.11% for MMo-2-S were recorded. The results demonstrate that refactoring can effectively reduce code smell and improve software quality.
KW - ISO/IEC 25023
KW - code quality
KW - code smell
KW - modularity
KW - refactoring
UR - https://www.scopus.com/pages/publications/85218217050
U2 - 10.1109/ITIS64716.2024.10845243
DO - 10.1109/ITIS64716.2024.10845243
M3 - Conference contribution
AN - SCOPUS:85218217050
T3 - Proceeding - IEEE 10th Information Technology International Seminar, ITIS 2024
SP - 176
EP - 181
BT - Proceeding - IEEE 10th Information Technology International Seminar, ITIS 2024
PB - Institute of Electrical and Electronics Engineers Inc.
T2 - 10th IEEE Information Technology International Seminar, ITIS 2024
Y2 - 6 November 2024 through 8 November 2024
ER -