← All articles

AI-generated WordPress code makes human review essential

AI-generated WordPress code makes human review essential

AI-generated WordPress code, meaning code produced with artificial intelligence, can accelerate development, explain unfamiliar systems, troubleshoot errors and turn plain-language requests into prototypes. It cannot decide on its own whether a change is suitable for a production website, the live site used by visitors and customers. That decision still requires someone who understands WordPress, the project and the business behind it.

Kinsta based its analysis on conversations with four WordPress developers who use AI in their work. Their accounts show that generating code is only one part of development. A developer must also consider architecture, or how the parts of a system are organised, alongside performance, security, accessibility for people with disabilities and long-term maintenance. The proposed code must fit the site's plugins, which add functions, its theme, which controls presentation, and any APIs, or application programming interfaces that let software components communicate.

This oversight matters because AI tools can suggest functions or APIs that do not exist, misread requirements, rely on incorrect assumptions and introduce bugs that are difficult to notice. Generated code may also omit input validation, which checks whether submitted information is acceptable, sanitization, which removes or changes unsafe data, and output escaping, which prevents displayed data from being interpreted as active page code. Those controls remain part of WordPress security guidance regardless of who or what wrote the code.

A Kinsta walkthrough demonstrated the risk while using AI tools to create a WordPress plugin for a restricted user role. When Cursor was asked to remove the Quick Edit link, it sometimes removed the normal Edit function as well. The requested interface change appeared to work, but the affected users also lost a capability they were meant to retain. This kind of unintended breakage is known as a regression. Repeating the prompt is not enough because the developer must test both the requested change and behavior that should remain untouched.

The work therefore starts before code generation. Developers need to translate business requirements into technical decisions, determine what should be built and select an approach that will remain supportable. That involves evaluating tradeoffs, planning how components fit together and anticipating future maintenance. One developer interviewed by Kinsta described moving beyond visual page work to use AI in building more complex business applications. The goal was not merely to produce a website faster, but to choose the combination of technologies that best addressed the business problem.

Another developer described using AI to examine server data and surface patterns that would take longer to identify manually. A pattern proposed by a tool is still only a lead. It must be compared with the site's actual behavior before anyone changes the application or its hosting configuration. This is an important distinction for performance investigations, where a plausible explanation is not automatically the correct diagnosis.

As tools produce changes more quickly, code review can become the bottleneck. Reviewers must decide whether code behaves as intended, follows WordPress coding standards, meaning the project's agreed rules for writing consistent code, fits the wider application and is safe to release. Code that runs without an immediate error has not necessarily met those conditions.

The same responsibility applies to WordPress contributions. WordPress's AI contribution guidelines require contributors to understand the code they submit, review and validate it, and run the relevant tests. That obligation begins before a patch, a proposed code change, reaches a project maintainer. AI may help create the patch, but it does not transfer accountability away from the contributor.

Developers are also using AI inside the review process. Kinsta reports that one developer uses Claude Code and Copilot as complementary tools, sometimes asking one to inspect work produced with the other while retaining control of the technical decisions. Another uses automated code review and test-driven development, an approach in which expected behavior is defined through tests before the implementation is written. In that workflow, the human writes the tests and AI produces the implementation that must satisfy them.

Passing tests is useful evidence, but it is not proof that a change is ready for production. Tests can fail to cover an important situation, while an AI reviewer can overlook a real flaw or report a problem that is not present. GitHub's guidance for Copilot similarly says automated review should support, rather than replace, human review. A responsible release process therefore combines tests, manual inspection and checks of the complete site behavior.

Prompt-writing skill alone does not solve these limitations. Developers need to know what context to provide, which constraints should apply and what a successful result looks like. One developer calls his structured approach an AI Operating System, or AIOS. It includes files containing business information, development principles, client histories and other project-specific knowledge. Supplying this material gives the tool more relevant context than a generic prompt, but the resulting code still needs to be understood and assessed.

For site owners, the practical safeguard is a staging environment, a separate copy of the website where changes can be tested without immediately affecting visitors. Review should cover security checks, user permissions, performance, accessibility and existing features, not only the task named in the prompt. Backups also need to be available before deployment so the live site can be restored if a reviewed change still causes trouble.

For site owners choosing where to run reviewed changes, AEU Hosting is a managed WordPress hosting service secured end to end; that does not replace human code review. AI can help implement a solution more quickly, but WordPress expertise remains necessary to establish the requirements, challenge the tool's assumptions, verify the result and decide whether it belongs on the live website.

Also available in: DeutschItalianoShqip