Vibe coding has triggered a paradigm shift in software engineering by leveraging natural language instructions for autonomous artificial intelligence (AI) agents. However, its impact on the internal quality and maintainability of legacy PHP Native systems remains under-explored. This study evaluates the quality and maintainability of AI-generated code produced by Google Antigravity based on the ISO/IEC 25010 standard, using Sikumagro as a case study. The methodology employs a measured re-engineering case study conducted within a controlled local environment, consisting of three phases: baseline code scanning, autonomous PDF export feature implementation, and human-in-the-loop refactoring. Code quality was measured using the PHPMD v2.15.0 static analyzer (focusing on codesize, unusedcode, and naming rulesets). The baseline scan revealed 25 code violations, including six Excessive Parameter Lists (11–15 parameters) and a Cyclomatic Complexity score of 23 within the legacy files. In the first iteration, the PDF feature was successfully generated with robust SQL prepared statements, yet it left two ShortVariable alerts ($d and $db). During the second iteration, the AI refactored the variables into $parsedDate and $mysqlConnection, achieving a zero-code-smells state (0 violations). This research demonstrates that under human guidance, vibe coding can successfully deliver safe, highly maintainable, and functionally correct architectures for legacy systems.
Copyrights © 2026