JOURNAL ARTICLE

Comparing Open Source with Software Code Generated by AI Tools from Software Maintainability Quality Factor Perspective

Hamed FawarehHazim M. Al-ShdaifatGhassan Samara

Year: 2025 Journal:   WSEAS TRANSACTIONS ON COMPUTER RESEARCH Vol: 13 Pages: 653-659   Publisher: World Scientific and Engineering Academy and Society

Abstract

Artificial Intelligence (AI) has made great strides in various industries, including software development, with tools such as ChatGPT transforming the way code is written, maintained, and optimized. This study examines the impact of AI-generated code on software quality, with a focus on maintainability, code complexity, and documentation quality. Comparing AI-generated code with open-source code from GitHub for three tasks of varying difficulty (easy, medium, and hard), we evaluated key metrics, including the maintainability index (MI), lines of code (LOC), cyclic complexity (CC), Halstead volume (V), and comment ratio. The findings indicate that AI-generated code is usually more verbose its cyclical complexity tends to drop on easier tasks, reducing error rates. In a complex task maintainability prefers to support programmers with AI-generated code significantly, and better documentation according to comments. These results show that AI tools can support and enhance code quality, especially, in an industry where maintainability and simplicity are critical.

Keywords:

Metrics

0
Cited By
0.00
FWCI (Field Weighted Citation Impact)
14
Refs
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Related Documents

JOURNAL ARTICLE

Evaluating Maintainability of Open Source Software

Feras HanandehAhmad A. SaifanMohammed AkourNoor Khamis Al-HusseinKhadijah Zayed Shatnawi

Journal:   International Journal of Open Source Software and Processes Year: 2017 Vol: 8 (1)Pages: 1-20
JOURNAL ARTICLE

Open-Source Software Tools

Journal:   Statistical Journal of the IAOS Year: 2023 Vol: 39 (4)Pages: 979-979
© 2026 ScienceGate Book Chapters — All rights reserved.