Evaluation of a Long-Method Refactoring Technic Using Reusability Assessment Metrics Based On ISO/IEC 25023 in Php Program Code
This study explores the application of various refactoring techniques in PHP programs to improve code reuse, guided by the ISO/IEC 25023 standard for software quality. The main focus is on refactoring long methods, which are often plagued by complex logic and multiple responsibilities. This study uses several techniques such as Extract Method, Move Method, Replace Temp with Query, Introduce Parameter Object, and Replace Method with Method Object to improve the internal structure of the code. The results show a marked improvement in code modularity and separation of concerns. In particular, the MRE-1G metric, which measures reuse, showed a 3.6% improvement (from 0.877 to 0.894), while the MRE-2S metric saw a 14.6% improvement (from 0.123 to 0.141). Moreover, the creation of new classes during the refactoring process was crucial in achieving these higher reuse rates, which emphasizes the importance of modular design in software development. The findings show that refactoring, particularly through the introduction of new classes, leads to better code reuse and highlights the importance of maintaining well-structured code in software development practices. This study provides valuable insights into how refactoring can improve software quality and reuse, as well as offering practical guidance for developers looking to improve the maintainability of their PHP codebase.
Authors
- Siti Rochimah (ORCID: https://orcid.org/0000-0002-5603-749X)
- Tiara Rahmania Hadiningrum
Institutions
- Sepuluh Nopember Institute of Technology (ID)
Publication Details
- Published
- 2024-12-17
- DOI
- https://doi.org/10.1109/icicyta64807.2024.10912871
- Citations
- 2
- Primary Topic
- Recycling and Waste Management Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.59