Linux 软件免费装
Banner图

Smart Spam Cleaner

开发者 ceowizzyweb
ceodigitecholic
shivampatel
ishahinakhter
更新时间 2026年11月5日 03:15
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

delete users bulk delete spam removal bulk post removal spam comment delete

下载

2.3.0 2.3.1 3.0.0 1.0.0 2.1.0 2.0.2 2.0.3

详情介绍:

Smart Spam Cleaner provides an efficient way to remove spam users, posts, and comments from your WordPress site. It uses background processing via WordPress cron jobs to handle large datasets without impacting your site's performance. Key Features What Gets Deleted Users: The plugin uses your configured filters to determine which users to delete: Posts: Comments: Use Cases Safety Features

安装:

  1. Upload the plugin files to the /wp-content/plugins/smart-spam-cleaner directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Use the Users → Delete Users & Spam Posts screen to configure and run the cleanup

屏幕截图:

  • Filter settings page - Dynamic configuration of keywords, domains, and conditions
  • Progress tracking - Real-time progress bar and status updates
  • Log viewer - Detailed logging of all cleanup activities

升级注意事项:

2.3.0 Detection release. Defaults stay subscriber, published posts. Administrator accounts are never deleted. Comment cleanup is off until you select it. Backup first. 2.2.0 Safety release. Preview and dry run do not delete. Cancel stops the next batch and does not restore items already removed. Backup first. 2.1.0 Filter correctness release. User domain/condition settings now match the admin UI; exclude lists fully protect those domains. Backup first. 2.0.2 Bug fix release. Improves file paths and WordPress guidelines compliance. 2.0.0 Major update with dynamic filters and improved UI. Backup your database first. 1.0.0 Initial release.

常见问题:

Where is the user guide?

Open Delete Spams → How to Use in wp-admin. The same topics are available from the Help tab on the cleanup, settings, and guide screens.

Can I schedule automatic cleanups?

Yes. On Spam Filter Settings, enable Scheduled Cleanup, choose weekly or monthly, pick users/posts/comments, and save. Scheduled dry run is on by default. A scheduled tick is skipped if a cleanup is already running. WordPress cron needs traffic (or a real server cron hitting wp-cron.php).

Is there WP-CLI support?

Yes: wp wwssc status, wp wwssc preview --users|--posts|--comments, wp wwssc run [--dry-run] [--users] [--posts] [--comments], and wp wwssc cancel.

Is this plugin safe to use?

Yes, the plugin includes several safety measures:

  • Defaults to the subscriber role and never deletes administrators
  • Protect list, dry run, and preview are available before a real deletion
  • Requires administrator privileges to run
  • Includes confirmation dialogs
  • Provides detailed logging for transparency
  • Always backup your database before running cleanup operations

How do I configure the filters?

  1. Go to Users → Spam Filter Settings
  2. Add your desired keywords and domains
  3. Choose your filter condition (AND/OR)
  4. Save settings
  5. Run the cleanup from the main plugin page

What's the difference between AND and OR conditions?

  • OR Condition - Delete user if they match ANY keyword OR domain filter
  • AND Condition - Delete user only if they match ALL keyword AND domain filters

How do include/exclude domains work?

  • Include Domains - Only delete users with these email domains
  • Exclude Domains - Never delete users with these email domains (e.g., gmail.com)
  • If Include is empty, all domains are targeted except excluded ones
  • If Exclude is empty, no domains are protected

What's the difference between trash and permanent deletion for posts?

  • Move to Trash - Posts are moved to WordPress trash bin where they can be recovered or permanently deleted later
  • Permanent Delete - Posts are immediately and permanently deleted from the database (cannot be recovered)
  • Recommendation - Use "Move to Trash" for safety, then review and permanently delete from trash if needed

How long does the cleanup take?

The duration depends on:

  • Number of users/posts to process
  • Server performance
  • Batch size settings
  • WordPress cron frequency For large sites, the process may take several hours but runs in the background.

Can I stop the cleanup process?

Yes. While a cleanup is running, use Cancel cleanup on the main plugin screen. The current batch is allowed to finish. Scheduled follow-up batches are cleared, the saved cursor is discarded, and the dry-run flag is cleared. Users or posts already deleted in earlier batches are not restored. You do not need to deactivate the plugin.

What is a dry run?

Check Dry run on the cleanup form before starting. The plugin walks the same batches and writes "would delete" or "would trash" lines to the log, including the match reason. It does not call user or post deletion. The flag lasts only for that run.

What is the protect list?

On Spam Filter Settings, add one email per line and one user ID per line. Those accounts are never deleted, even when they match keyword or domain filters. User preview does not count them as matches. The list is saved with the other filter settings and is removed on uninstall.

What happens if the process is interrupted?

The plugin uses batch processing with progress tracking. If a batch stops without cancel, open the plugin screen again and it can continue from the saved cursor. Cancel cleanup clears that cursor, so the next start begins a new scan.

Can I customize the spam keywords?

Yes! You can add, remove, or modify keywords through the Spam Filter Settings page. The interface allows you to dynamically manage your keyword lists.

Does this affect my site's performance?

The plugin is designed to minimize performance impact:

  • Runs in background via cron jobs
  • Processes data in small batches
  • Uses efficient database queries
  • Includes built-in delays between batches

Where can I find the cleanup log?

All cleanup activities are logged to: wp-content/uploads/smart-spam-cleaner/smart-spam-cleaner.log The log file contains:

  • Timestamps for all operations
  • Number of users/posts processed in each batch
  • Success/failure status for each deletion
  • Completion messages

Can I use this plugin programmatically?

Yes! You can customize filters using WordPress filters: ` add_filter('wwssc_user_filters', function($filters) { $filters['keywords'][] = 'custom_keyword1'; $filters['keywords'][] = 'custom_keyword2'; $filters['domains']['include'][] = 'spamdomain.com'; $filters['domains']['exclude'][] = 'trusted.com'; $filters['condition'] = 'AND'; return $filters; }); add_filter('wwssc_post_filters', function($filters) { $filters['keywords'][] = 'custom_keyword1'; $filters['keywords'][] = 'custom_keyword2'; return $filters; }); `

Can I change the batch size?

Yes! You can configure batch size in the settings page (range: 50-2000). You can also define a custom batch size in your wp-config.php file: define('WWSSC_BATCH_SIZE', 1000);

更新日志:

3.0.0 2.3.0 2.2.0 2.1.0 2.0.2 2.0.0 1.0.0