Smart Comment Transformer

Transform spam and irrelevant comments into relevant, on-topic discussions using AI. Supports Google Gemini, OpenAI, and Antigravity CLI mode. Features WP-Cron automation, admin dashboard, REST API, and encrypted API key storage.

Version 1.0.0
Status Active
License GPLv2 or later
PHP 7.4+
WP 6.7+
sync_alt
extension
arrow_downward
dynamic_form

info About This Plugin

Key Features

  • AI-Powered Spam Detection — Compares comment content against the post topic to determine relevance. Comments unrelated to the post are classified as spam.
  • Smart Rewriting — Transforms irrelevant comments into natural, on-topic discussions while preserving the original commenter’s identity (name, email, URL, date).
  • Auto-Reply Generation — Creates appropriate author responses to foster engagement and build social proof.
  • Dual Processing Modes — Manual Preview mode for admin control, or Full Auto mode for hands-off operation.
  • Configurable WP-Cron — Schedule processing: hourly, twice daily, daily, weekly, or manual only.
  • Three AI Providers — Google Gemini (free tier), OpenAI GPT-4o mini, or Antigravity CLI (free, no API key required).
  • REST API — Full REST API for external integrations and CLI workflows.
  • Activity Log — Track all transformations with before/after history and audit trail.
  • Reversible — Original comment content is backed up in comment meta and can be restored at any time.
  • Encrypted API Keys — API keys are encrypted with AES-256-CBC before storage in the database.

How It Works

  1. Pending comments are fetched by WP-Cron or manual trigger.
  2. AI analyzes each comment against the post content to determine if it’s relevant or spam.
  3. Relevant comments are auto-approved as-is.
  4. Spam comments are rewritten to be on-topic with a generated admin reply.
  5. All transformations are logged with original content preserved.

REST API Endpoints

The plugin exposes a clean REST API for the Antigravity CLI mode and external integrations:

  • GET /wp-json/sct/v1/pending — List pending comments with full post context
  • POST /wp-json/sct/v1/transform — Transform a single comment
  • POST /wp-json/sct/v1/transform-batch — Batch transform multiple comments
  • GET /wp-json/sct/v1/stats — Processing statistics and cron status

Antigravity CLI Mode

A unique feature: use the Antigravity code editor as the AI engine. No external API key needed — the editor analyzes comments locally and pushes results via REST API. Includes a ready-to-use Python workflow script.

Architecture

Built with clean OOP architecture following WordPress coding standards:

  • SCT_Admin — Settings page, dashboard, AJAX handlers
  • SCT_AI_Provider — Abstraction layer for Gemini/OpenAI APIs
  • SCT_REST_API — Custom REST endpoints for CLI mode
  • SCT_Spam_Detector — AI-powered comment classification
  • SCT_Processor — Comment transform, approve, and reply logic
  • SCT_Cron — WP-Cron schedule management with locking
  • SCT_Logger — Activity tracking in comment meta

WordPress.org Compliant

Follows all WordPress.org plugin repository guidelines: GPL v2+ license, proper prefixing, nonces, capability checks, sanitization, escaping, i18n, and clean uninstall handler.

image Screenshots 1

Frequently Asked Questions

What is Smart Comment Transformer?

Transform spam and irrelevant comments into relevant, on-topic discussions using AI. Supports Google Gemini, OpenAI, and Antigravity CLI mode. Features WP-Cron automation, admin dashboard, REST API, and encrypted API key storage.

What technology stack does this plugin use?

Smart Comment Transformer is built with PHP, JavaScript, REST API, WP-Cron. It requires WordPress 5.8+ and PHP 7.4+.

Was this plugin built with AI?

Yes, Smart Comment Transformer was vibe coded using Antigravity, Gemini. AI-assisted development accelerates the build process while Duy Nguyen — a senior developer with 10+ years of WordPress experience — ensures code quality, security, and performance.

Is Smart Comment Transformer free to download?

Smart Comment Transformer is available under the GPLv2 or later license. You can download it directly from this page. The source code is also available on GitHub. 1 downloads so far.

Can Duy Nguyen build a custom plugin for my project?

Absolutely! Duy Nguyen builds custom WordPress plugins for clients worldwide. With 290+ completed projects and a 100% Job Success rate, you can hire through Upwork for a custom plugin tailored to your needs.