[Paper Review] 30 Years of Software Refactoring Research:A Systematic Literature Review
This systematic literature review analyzes 3,183 research papers on software refactoring over 30 years, proposing a comprehensive taxonomy to structure the fragmented field. It identifies evolving trends beyond code-level refactoring, including architectural, model-level, and non-functional goal-driven refactoring, and highlights key research gaps in scheduling, recommendation, opportunity detection, and correctness validation.
Due to the growing complexity of software systems, there has been a dramatic increase and industry demand for tools and techniques on software refactoring in the last ten years, defined traditionally as a set of program transformations intended to improve the system design while preserving the behavior. Refactoring studies are expanded beyond code-level restructuring to be applied at different levels (architecture, model, requirements, etc.), adopted in many domains beyond the object-oriented paradigm (cloud computing, mobile, web, etc.), used in industrial settings and considered objectives beyond improving the design to include other non-functional requirements (e.g., improve performance, security, etc.). Thus, challenges to be addressed by refactoring work are, nowadays, beyond code transformation to include, but not limited to, scheduling the opportune time to carry refactoring, recommendations of specific refactoring activities, detection of refactoring opportunities, and testing the correctness of applied refactorings. Therefore, the refactoring research efforts are fragmented over several research communities, various domains, and objectives. To structure the field and existing research results, this paper provides a systematic literature review and analyzes the results of 3183 research papers on refactoring covering the last three decades to offer the most scalable and comprehensive literature review of existing refactoring research studies. Based on this survey, we created a taxonomy to classify the existing research, identified research trends, and highlighted gaps in the literature and avenues for further research.
Motivation & Objective
- To structure the fragmented field of software refactoring research by synthesizing findings from 3,183 papers over three decades.
- To identify evolving research trends beyond traditional code refactoring, including application at architectural, model, and requirements levels.
- To examine the adoption of refactoring in diverse domains such as cloud computing, mobile, and web systems.
- To explore how refactoring is being used to achieve non-functional quality attributes like performance, security, and maintainability.
- To uncover critical research gaps in scheduling refactoring, recommending specific actions, detecting opportunities, and validating correctness.
Proposed method
- Conducted a systematic literature review using predefined search criteria across major academic databases and repositories.
- Screened and analyzed 3,183 research papers published between 1990 and 2020 to ensure comprehensive coverage.
- Developed a multi-dimensional taxonomy to classify refactoring research based on level (code, architecture, model, requirements), paradigm (OOP, non-OOP), and objective (design, performance, security, etc.).
- Trained on metadata and content to identify temporal trends, research focus shifts, and community fragmentation.
- Used thematic analysis to extract recurring challenges and research directions from the literature.
- Validated findings through iterative review and consensus among authors to ensure accuracy and completeness.
Experimental results
Research questions
- RQ1How has the scope of software refactoring research evolved across different software development levels (code, architecture, models, requirements) over the past 30 years?
- RQ2What are the dominant paradigms and domains in which refactoring is being applied, and how have they changed over time?
- RQ3To what extent is refactoring being used to improve non-functional quality attributes such as performance, security, and maintainability?
- RQ4What are the key challenges in refactoring that remain under-investigated in current research, particularly in scheduling, recommendation, and correctness validation?
- RQ5How is the research community fragmented across different domains, objectives, and methodological approaches in refactoring research?
Key findings
- Refactoring research has expanded significantly beyond traditional object-oriented code restructuring to include architectural, model, and requirement-level transformations.
- There is a growing trend in applying refactoring to improve non-functional properties such as performance, security, and scalability, especially in cloud and mobile systems.
- Despite increased interest, research on scheduling optimal refactoring times, recommending specific refactorings, and detecting refactoring opportunities remains underdeveloped.
- The correctness of applied refactorings is rarely validated in practice, indicating a critical gap in tooling and verification support.
- The field is highly fragmented across communities and domains, with limited cross-domain synthesis and shared frameworks.
- The taxonomy developed in this study captures 12 distinct categories of refactoring research, revealing a shift from purely design-focused work to broader software quality objectives.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.