
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
- Pending comments are fetched by WP-Cron or manual trigger.
- AI analyzes each comment against the post content to determine if it’s relevant or spam.
- Relevant comments are auto-approved as-is.
- Spam comments are rewritten to be on-topic with a generated admin reply.
- 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 contextPOST /wp-json/sct/v1/transform— Transform a single commentPOST /wp-json/sct/v1/transform-batch— Batch transform multiple commentsGET /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 handlersSCT_AI_Provider— Abstraction layer for Gemini/OpenAI APIsSCT_REST_API— Custom REST endpoints for CLI modeSCT_Spam_Detector— AI-powered comment classificationSCT_Processor— Comment transform, approve, and reply logicSCT_Cron— WP-Cron schedule management with lockingSCT_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.