TY - GEN
T1 - Evaluating the Effectiveness of ChatGPT in Improving Code Quality
AU - Divyansh, Shanal
AU - Apoorva, Pranjal
AU - Singh, Suraj Sanjay
AU - Ershadi, Anita
AU - Makwana, Hiral
AU - Alomar, Eman Abdullah
N1 - Publisher Copyright:
© 2025 IEEE.
PY - 2025
Y1 - 2025
N2 - Code refactoring is a crucial process in software development that helps improve the quality and maintainability of code without changing its functionality. Although code refactoring is widely recognized as an essential practice, measuring its impact on code quality is challenging. This paper investigates the impact of ChatGPT, on code quality. The study focuses on four key metrics: cyclomatic complexity, cognitive complexity, code smells, and time debt, using Sonarqube to assess code quality and identify potential issues. The original dataset of Python code is compared with the refactored dataset to evaluate the effectiveness of ChatGPT in improving code quality. The results demonstrate that ChatGPT's refactoring efforts have led to improvements in the quality of the codebase. The refactored code exhibited lower complexity values, fewer code smells, and reduced time debt, highlighting ChatGPT's success in addressing significant issues that can cause system failures and performance issues. The study emphasizes the potential benefits of using ChatGPT for code refactoring, which can significantly benefit software development efforts by improving code quality and reducing development time.
AB - Code refactoring is a crucial process in software development that helps improve the quality and maintainability of code without changing its functionality. Although code refactoring is widely recognized as an essential practice, measuring its impact on code quality is challenging. This paper investigates the impact of ChatGPT, on code quality. The study focuses on four key metrics: cyclomatic complexity, cognitive complexity, code smells, and time debt, using Sonarqube to assess code quality and identify potential issues. The original dataset of Python code is compared with the refactored dataset to evaluate the effectiveness of ChatGPT in improving code quality. The results demonstrate that ChatGPT's refactoring efforts have led to improvements in the quality of the codebase. The refactored code exhibited lower complexity values, fewer code smells, and reduced time debt, highlighting ChatGPT's success in addressing significant issues that can cause system failures and performance issues. The study emphasizes the potential benefits of using ChatGPT for code refactoring, which can significantly benefit software development efforts by improving code quality and reducing development time.
KW - ChatGPT
KW - LLMs
KW - quality
UR - https://www.scopus.com/pages/publications/105017004543
UR - https://www.scopus.com/pages/publications/105017004543#tab=citedBy
U2 - 10.1109/ICMI65310.2025.11139842
DO - 10.1109/ICMI65310.2025.11139842
M3 - Conference contribution
AN - SCOPUS:105017004543
T3 - 2025 IEEE 4th International Conference on Computing and Machine Intelligence, ICMI 2025 - Proceedings
BT - 2025 IEEE 4th International Conference on Computing and Machine Intelligence, ICMI 2025 - Proceedings
A2 - Abdelgawad, Ahmed
A2 - Jamil, Akhtar
A2 - Hameed, Alaa Ali
T2 - 4th IEEE International Conference on Computing and Machine Intelligence, ICMI 2025
Y2 - 5 April 2025 through 6 April 2025
ER -