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

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.

Authors

Institutions

Publication Details

Journal
WSEAS TRANSACTIONS ON COMPUTER RESEARCH
Published
2025-11-04
DOI
https://doi.org/10.37394/232018.2025.13.58
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Ghassan Samara, Hamed Fawareh, Hazim M. Al-Shdaifat
WSEAS TRANSACTIONS ON COMPUTER RESEARCH
Software Engineering Research
article

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

Ghassan Samara, Hamed Fawareh, Hazim M. Al-Shdaifat
article en

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.

WSEAS TRANSACTIONS ON COMPUTER RESEARCHVol. 13
Zarqa University (JO)
Zarqa University
Openalex Percentile: Top 54%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Comparing Open Source with Software Code Generated by AI Tools from Software Maintainability Quality Factor Perspective — Ghassan Samara, Hamed Fawareh, et al. · WSEAS TRANSACTIONS ON COMPUTER RESEARCH (2025) | TGRS Research Map | TGRS