AgizoAI HTML AI Clean Up

Description

AgizoAI HTML AI Clean Up adds a manual scan and clean-up tool to the WordPress post editor. It is designed for editors who copy and paste content from AI tools, chat assistants, document editors, page builders or rich-text sources and want to remove unnecessary hidden HTML code before saving.

AI-assisted and copied content can include invisible markup that is not useful in a normal WordPress article. This can include hidden comments, data-* tracking or tool attributes, copied accessibility attributes, inline styles, SVG blocks, hidden inputs, invisible display:none fragments, Microsoft Office markup, event attributes and empty wrapper attributes. This plugin helps scan and clean that noisy markup from the current editor content.

Version 1.6.3 includes Editor Quality Tools, HTML quality scoring, accessibility warnings, SEO-safe HTML checks and compliance-focused review notes for WordPress.org submission. Compatible with WordPress 7.00 using the WordPress.org readme field Tested up to: 7.0.

Official plugin page: https://www.agizoai.com/agizoai-html-ai-clean-up-wordpress-plugin

The clean-up runs in the browser inside the editor. It does not call an AI provider, does not send post content to an external server and does not publish or save anything automatically. After running the clean-up, the editor should review the post and save it manually.

The plugin is intentionally editor-focused. It does not add front-end scripts, tracking pixels, analytics, advertising code, remote fonts or external assets.

Main features

  • Editor Quality Tools with HTML quality score from 0 to 100.
  • Accessibility warnings for missing image alt text, empty links, heading skips, duplicate IDs, tables without headers and untitled iframes.
  • SEO-safe HTML checks for H1 tags inside post content, unsafe links, long content without headings, long paragraphs, empty wrapper blocks and markdown artefacts.
  • Quality score column in the site-wide scanner.
  • Unified admin menu under AgizoAI HTML AI Clean Up with Overview, HTML Scan and Settings pages.
  • Scan recent posts, pages or public custom post types by status.
  • Site-wide summary showing scanned items, posts needing review and risk distribution.
  • Direct editor links for posts that contain hidden or noisy HTML.
  • Revision-safe clean-up for selected scanned posts.
  • Automatic WordPress revision backup before each changed post is saved, where revisions are supported.
  • Controlled selected-post bulk action with nonce and capability checks.
  • AI Paste Scan Report with detected hidden/noisy HTML counts.
  • Risk score: Clean, Low, Medium or High.
  • Recommended preset based on detected markup.
  • Auto Detect preset for common copy-paste sources.
  • Presets for AI Tool Paste, Google Docs Paste, Microsoft Word Paste, Page Builder Paste and Strict Article Clean.
  • Scan content without changing the article.
  • Preview a clean-up report before applying changes.
  • Clean the full post content manually.
  • Clean the selected Gutenberg block only.
  • Undo the last clean-up before saving.
  • Protected elements for shortcodes, embeds, tables, images, figures, WordPress block comments and JSON-LD schema.
  • Enable the editor tool on posts, pages or public custom post types from the settings page.
  • Configure Custom Clean rules from the settings page.
  • Works with the block editor where edited post content is available.
  • Falls back to the classic editor content field when needed.
  • No external API calls.
  • No tracking or remote logging.
  • No custom database tables.
  • No automatic post publishing.
  • No automatic bulk clean-up without explicit selected-post confirmation.

AI Paste Scan Report

The Scan Content and Preview Clean Up buttons show a report before saving, including items such as:

  • HTML comments.
  • Inline SVG blocks.
  • Script, style or noscript blocks.
  • Hidden inputs.
  • Hidden or invisible elements.
  • data-* attributes.
  • aria-* attributes.
  • role attributes.
  • Inline style attributes.
  • Empty attributes.
  • JavaScript event attributes such as onclick.
  • XML or namespace attributes.
  • Microsoft Office formatting attributes/classes.
  • Strict Article Clean removals.
  • Protected items kept intact.

Risk score

The plugin calculates a simple local risk score from the detected markup. Hidden elements, pasted scripts, event attributes and invisible code increase the risk more than harmless formatting attributes. The score is only a guide for editorial review and does not send data anywhere.

Clean-up presets

Auto Detect scans the content and chooses a suitable preset before cleaning.

AI Tool Paste targets attributes, comments, hidden fragments and wrappers commonly copied from AI chat or writing interfaces.

Google Docs Paste removes rich-text noise while protecting tables, images, links and article structure.

Microsoft Word Paste targets Office classes, XML-style attributes, inline styling and pasted formatting noise.

Page Builder Paste removes noisy wrappers more carefully while protecting embeds, figures and block structure.

Strict Article Clean is for editorial article HTML. It removes more formatting and keeps common content tags.

Safe Clean removes comments, common data-* attributes, empty attributes and pasted script/style fragments while preserving most visible formatting.

Standard Clean is recommended for normal AI copy-paste clean-up and removes hidden markup, inline SVG, styles and noisy wrapper attributes.

Aggressive Clean removes the most markup noise, including id attributes on div wrappers. Review carefully before saving.

Custom Clean uses the rule and protection checkboxes configured under AgizoAI HTML AI Clean Up > Settings.

Protected elements

Protected elements are temporarily shielded during clean-up so useful content is less likely to be altered. The default protections include:

  • WordPress shortcodes.
  • iframe, embed, video and audio blocks.
  • Tables.
  • Image tags and alt text.
  • Figure and caption blocks.
  • WordPress block editor comments.
  • JSON-LD schema scripts.

Editor Quality Tools

Version 1.6.3 includes a local HTML quality check inside the editor. The Check HTML Quality button analyses the current editor content without changing it and returns:

  • HTML quality score from 0 to 100.
  • Accessibility warnings.
  • SEO-safe HTML checks.
  • HTML structure checks.
  • Word count used for the quality report.

The accessibility checks can flag images without alt text, iframes without title attributes, links without visible text, weak link text, skipped heading levels, duplicate IDs and tables without header cells.

The SEO-safe HTML checks can flag H1 tags inside the post body, unsafe or empty links, long content without subheadings, long paragraphs, markdown artefacts and very short content. These checks are editorial helpers only; they do not replace a full SEO plugin or a manual accessibility review.

Site-wide scanner and revision-safe selected clean-up

The scanner under AgizoAI HTML AI Clean Up > HTML Scan checks existing content for hidden AI/paste markup and shows which posts may need review. It can check recent editable content by post type and status. Results include:

  • Post title and edit link.
  • Post status and last modified date.
  • Risk level and numeric risk score.
  • Recommended clean-up preset.
  • Detected items such as hidden comments, data-* attributes, inline styles, hidden elements, pasted scripts, SVG blocks and Microsoft Office markup.
  • HTML quality score and quality warning count.

Version 1.4.0 adds a controlled selected-post clean-up action to the scanner. After scanning, an authorised editor can select specific flagged posts, choose a clean-up preset and run Clean selected posts. The plugin creates a WordPress revision backup before each changed post is saved where revisions are supported by that post type.

This selected-post action is not automatic. It requires a logged-in authorised user, a valid nonce, selected post IDs and edit permission for each post. It does not publish drafts, does not change post status and does not call any external service.

Important note

This plugin is a clean-up helper, not a replacement for editorial review. Always review the cleaned content before saving, especially if your article intentionally contains embeds, custom scripts, inline SVG, hidden accessibility text or advanced HTML.

Developer filter

Administrators can enable post types from the settings page. Developers can also extend supported post types with this filter:

add_filter( 'agizohacu_supported_post_types', function( $post_types ) {
    $post_types[] = 'page';
    return $post_types;
} );

Requirements

  • WordPress 6.0 or later.
  • Tested up to WordPress 7.00 (Tested up to: 7.0 in the WordPress.org readme format).
  • PHP 8.1 or later.

Plugin Page

Official plugin page: https://www.agizoai.com/agizoai-html-ai-clean-up-wordpress-plugin

External Services

This plugin does not connect to any external service. It does not send prompts, post content, metadata, API keys, analytics events or logs to any remote endpoint.

Privacy

AgizoAI HTML AI Clean Up does not collect, store or transmit personal data. It does not create cookies, tracking pixels or remote requests. It does not add front-end scripts.

Security and Review Notes

  • All global PHP identifiers use the unique AGIZOHACU / agizohacu prefix. The plugin does not declare unprefixed global functions.
  • Settings are registered through the WordPress Settings API and sanitised before storage.
  • Admin forms use WordPress nonces, and AJAX actions use nonce and capability checks.
  • Admin output is escaped according to context. Dynamic scan results are returned as JSON and rendered with text-safe DOM methods.
  • The plugin does not track users, send analytics, create cookies, use remote logging or call external APIs.
  • The plugin does not register push notifications, service workers or browser notification prompts.
  • The plugin does not cache public, private or logged-in pages.
  • The plugin does not inject popups, advertising overlays or front-end scripts.

Installation

  1. Upload the plugin folder to /wp-content/plugins/ or install the ZIP through Plugins > Add New > Upload Plugin.
  2. Activate AgizoAI HTML AI Clean Up from the WordPress Plugins screen.
  3. Go to AgizoAI HTML AI Clean Up > Settings to choose enabled post types, default preset and protected elements.
  4. Optional: go to AgizoAI HTML AI Clean Up > HTML Scan to scan existing content and, if needed, clean selected flagged posts with revision backup.
  5. Open a post, page or enabled custom post type in the WordPress editor.
  6. Use the HTML AI Clean Up box in the editor sidebar.
  7. Scan, preview, clean a selected block or apply the clean-up to the full post.
  8. Review the content before saving.

FAQ

What is the HTML quality score?

The HTML quality score is a local editorial helper from 0 to 100. It checks whether the current content contains accessibility issues, SEO-risky HTML patterns or messy structure such as empty wrapper blocks, missing image alt text, unsafe links, duplicate IDs or skipped headings.

Are the accessibility warnings a full accessibility audit?

No. They are lightweight editor warnings for common HTML issues. They can help editors spot missing alt text, weak links and heading problems, but they do not replace a full accessibility audit.

Are the SEO-safe HTML checks a replacement for an SEO plugin?

No. They only check the HTML structure of the post body. They do not manage titles, meta descriptions, schema, sitemaps, redirects or search analytics.

Can I scan existing posts without changing them?

Yes. Go to AgizoAI HTML AI Clean Up > HTML Scan and run a scan without selecting posts for clean-up. The scan itself is read-only and lists recent editable posts that may contain hidden AI/paste markup.

Can I clean several existing posts at once?

Yes, from version 1.4.0. After a site-wide scan, select the specific posts you want to clean, choose a preset and click Clean selected posts. The plugin creates a WordPress revision backup before each changed post is saved where revisions are supported. It does not clean unselected posts.

What do you mean by AI attributes?

When content is copied from AI writing tools, chat interfaces, document editors or web apps, it may include technical attributes used by those tools rather than by your WordPress article. The plugin removes common copied attributes such as data-*, aria-*, role, style, empty attributes and wrapper attributes depending on the selected preset.

Does this plugin remove hidden HTML code?

Yes. It can remove HTML comments, hidden inputs, elements marked as hidden, invisible elements using display:none or visibility:hidden, inline SVG blocks and pasted script, style or noscript blocks depending on the selected preset.

What is the risk score?

The risk score is a local editorial indicator. It helps show whether the pasted content contains mostly light formatting noise or more serious hidden/invisible markup such as scripts, event attributes or hidden elements.

Does Auto Detect send content to an AI service?

No. Auto Detect is a local browser-side pattern check. It does not contact OpenAI, ChatGPT, Claude, Gemini, AgizoAI or any other remote service.

Can I clean only one Gutenberg block?

Yes. Select a block in the block editor and click Clean Selected Block. The full-post clean-up button remains available for cleaning the whole article.

Can I preview before changing the post?

Yes. Scan Content reports what can be removed without changing the editor. Preview Clean Up prepares the cleaned HTML and shows the AI Paste Scan Report before you apply it.

Can I undo a clean-up?

Yes. The Undo Last Clean Up button restores the editor content from before the most recent clean-up, as long as you have not left or refreshed the editor screen.

Can I protect embeds, shortcodes, tables and images?

Yes. The settings page includes protected element options for shortcodes, embeds, tables, images, figures, WordPress block comments and JSON-LD schema.

Can I choose where the tool appears?

Yes. Go to AgizoAI HTML AI Clean Up > Settings and enable the tool on posts, pages or public custom post types.

Does this plugin use OpenAI, ChatGPT or another AI API?

No. The plugin name refers to cleaning HTML commonly produced or pasted from AI-assisted writing workflows. The plugin does not connect to OpenAI, ChatGPT or any other AI service.

Does the plugin send post content to AgizoAI or another server?

No. The clean-up runs in the browser inside the WordPress editor. No post content is sent to AgizoAI or to any third-party service by this plugin.

Does it automatically save or publish my content?

No. In the editor, it only changes the content currently open in the browser and you must save manually. In the Tools scanner, selected-post clean-up only runs after an authorised user selects posts and confirms the action; it does not publish content or change post status.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“AgizoAI HTML AI Clean Up” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.6.3

  • Updated readme.txt Contributors field to the WordPress.org plugin owner username nr23.
  • Kept the official plugin page URL in the plugin header and readme documentation.
  • Version bump for WordPress.org review package.

1.6.1

  • Grouped all plugin admin pages under one top-level AgizoAI HTML AI Clean Up menu.
  • Added an Overview page with direct access to HTML Scan and Settings.
  • Version bump and compliance-reviewed public package.
  • Confirmed unique AGIZOHACU/agizohacu prefixes for global identifiers, options, hooks and handles.
  • Confirmed settings sanitisation, nonce checks, capability checks and escaped admin output.
  • Confirmed no tracking, external services, push notifications, page caching, aggressive popups or front-end scripts.
  • Updated documentation and translation metadata for the 1.6.1 release.

1.5.0

  • Added Editor Quality Tools inside the editor.
  • Added HTML quality score from 0 to 100.
  • Added accessibility warnings for missing alt text, empty links, skipped headings, duplicate IDs, tables without headers and iframes without titles.
  • Added SEO-safe HTML checks for H1 tags inside post content, unsafe links, long content without headings, long paragraphs, markdown artefacts and very short content.
  • Added HTML structure checks for empty blocks, duplicate IDs and excessive div/span wrappers.
  • Added quality score and quality warning count to the site-wide scanner.
  • Kept all checks local with no external API calls or tracking.

1.4.0

  • Added revision-safe selected post clean-up from AgizoAI HTML AI Clean Up > HTML Scan.
  • Added selectable scan results and a Clean selected posts action.
  • Added server-side clean-up endpoint with nonce, capability and per-post edit checks.
  • Added automatic WordPress revision backup before saving changed posts where revisions are supported.
  • Added bulk clean-up result table showing updated, skipped and failed posts.
  • Kept the action controlled and selected-only, with no automatic publishing or external services.

1.3.0

  • Added read-only site-wide scanner under AgizoAI HTML AI Clean Up > HTML Scan.
  • Added post type, status and scan-size controls for existing content checks.
  • Added scan results table with risk level, risk score, recommended preset, detected items and edit links.
  • Added server-side content scan endpoint with nonce and capability checks.
  • Kept site-wide scanning read-only with no automatic content modification.

1.2.0

  • Added AI Paste Scan Report with risk score.
  • Added recommended preset in the report.
  • Added Auto Detect preset.
  • Added AI Tool Paste, Google Docs Paste, Microsoft Word Paste, Page Builder Paste and Strict Article Clean presets.
  • Added Clean Selected Block for the block editor.
  • Added protected elements for shortcodes, embeds, tables, images, figures, WordPress block comments and JSON-LD schema.
  • Added detection and removal options for JavaScript event attributes, XML/namespace attributes and Microsoft Office formatting attributes/classes.
  • Updated settings, documentation and readme text.

1.1.0

  • Added Scan Content mode to detect AI/tool attributes and hidden HTML without changing editor content.
  • Added Preview Clean Up with a removable-items report.
  • Added Apply Previewed Clean HTML and Copy Cleaned HTML actions.
  • Added Undo Last Clean Up before saving.
  • Added Safe Clean, Standard Clean, Aggressive Clean and Custom Clean modes.
  • Added a settings page for enabled post types, default mode and Custom Clean rules.
  • Kept all clean-up processing inside the browser with no external services.

1.0.0

  • Initial public release.
  • Added a manual editor button for cleaning pasted or AI-generated HTML.
  • Added removal of common AI copy-paste attributes, hidden markup, comments, inline SVG and pasted script/style fragments.
  • Added WordPress.org-compatible readme.txt documentation.
  • Added unique AgizoAI HTML Clean Up prefixes for classes, handles and fields.
  • Added text domain, GPL-compatible licensing headers and documented privacy and external service behaviour.