Review AI-generated website code by checking what it actually does, not how complete it looks. Verify the required behaviour, examine data handling and permissions, test accessibility, and understand the deployment dependencies before publishing.
An automated scanner or a second AI review can help identify issues. Neither is proof that an application is secure, correct, or suitable for the information it handles.
Start with a list of required outcomes
Write down the important actions and their expected results. For a contact page, a valid submission should reach the intended system; invalid input should produce a helpful error; repeated clicks should not create an uncontrolled stream of duplicate records.
Check whether generated features are real. A toast saying “Message sent” may be triggered without any network request. A dashboard may read from a hard-coded array. A search box may filter only the current sample items.
Inspect the difference between interface and authority
The browser is not a safe place to enforce the final rule for who can see or change private data. Test server endpoints with the permissions of the relevant user roles, not just by hiding controls.
| Visible feature | Review question |
|---|---|
| Admin link is hidden | Does the server reject an unauthorised request to the admin action? |
| User can open their order | Can they change an identifier and access another person’s order? |
| Upload accepts an image | Are file type, size, storage location, and access rules checked appropriately? |
| Checkout displays a price | Does the server calculate the trusted price and verify payment? |
These are checks for an application you own or are authorised to test. Use test accounts and controlled data. If the application handles sensitive records or money, arrange a review by someone with the relevant security expertise.
Search for secrets and unsafe assumptions
Look for passwords, API keys, database credentials, and private tokens in browser-delivered code, committed files, logs, and sample configuration. A value in a front-end environment variable may still be included in a public build.
For more context, read our guide to diagnosing deployment problems.
Distinguish intentionally public identifiers from secrets. For example, some services provide a public client key alongside server-side rules; the name “key” alone does not explain the access model. Read that service’s documentation and verify the permissions.
Review database queries, output rendering, authentication, and access checks against appropriate secure development guidance. Do not accept “sanitised” or “secure” comments as evidence that the relevant code is safe.
Check dependencies and commands
- Confirm that named packages exist and come from the intended maintainers.
- Read installation scripts and unfamiliar commands before running them.
- Remove packages that are not used.
- Keep a dependency lockfile where the ecosystem supports it.
- Review security advisories and update plans rather than blindly installing the newest version of everything.
A clean dependency scan does not inspect all business logic, and a reported vulnerability does not automatically explain its practical impact in your application. Investigate the context.
Test the experience without a mouse
Move through the page using a keyboard. Can you find the current focus? Do buttons have understandable names? Are form fields labelled? Does an error explain what needs fixing without relying only on colour?
Use appropriate semantic HTML. A clickable div may lack the behaviour a native button already provides. Test narrow screens and enlarged text, including menus, dialogs, and validation messages. WCAG provides a structured reference for accessibility requirements; passing one automated check is not full conformance.
Test failures as well as success
Try an unavailable network, invalid input, an expired session, a failed API response, and an empty data set. Use a staging environment for disruptive tests. Confirm that failures do not expose private details or pretend the requested action succeeded.
You can also explore our guide to checking mobile layout problems.
Review the production setup: HTTPS, logs, backups, runtime versions, required settings, and a rollback method. Remove test accounts and placeholder content that should not be public.
Keep a release record
Record what you checked, the version reviewed, unresolved limitations, and the person responsible for follow-up. If a critical feature is unverified, do not describe it as production-ready simply because the pages render.
The aim is a system you can explain and maintain. Generated code becomes your responsibility when you choose to deploy it.
Sources and further reading
Technical references checked during preparation on 13 November 2026. Examples and suggested workflows are editorial explanations, not reported client results.


