89% spam-comments-cleaner

Code Review | Spam Comments Cleaner

WordPress plugin Spam Comments Cleaner scored 89% from 54 tests.

About plugin

  • Plugin page: spam-comments-cle...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Dec 30, 2013
  • Latest release: Feb 2, 2018
  • Number of updates: 41
  • Update frequency: every 36.5 days
  • Top authors: manishkrag (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

2,000+ active / 45,466 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.53ms] Passed 4 tests

An overview of server-side resources used by Spam Comments Cleaner
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.49 ▼6.00
Dashboard /wp-admin3.34 ▲0.0444.67 ▼3.41
Posts /wp-admin/edit.php3.39 ▲0.0343.93 ▼1.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.12 ▼11.05
Media Library /wp-admin/upload.php3.26 ▲0.0335.75 ▼1.23
WordPress Spam Cleaner /wp-admin/options-general.php?page=wsc-options3.2333.19

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Spam Comments Cleaner
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.21 ▼0.734.67 ▲3.0541.55 ▲1.61
Dashboard /wp-admin2,207 ▲215.85 ▲0.9197.82 ▼11.6240.36 ▲2.13
Posts /wp-admin/edit.php2,072 ▼202.03 ▼0.0136.70 ▼1.8931.72 ▲1.91
Add New Post /wp-admin/post-new.php1,536 ▲223.17 ▲0.06599.16 ▼29.9957.43 ▼2.41
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0696.50 ▼22.4642.24 ▼8.03
WordPress Spam Cleaner /wp-admin/options-general.php?page=wsc-options9782.0425.2630.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

spam-comments-cleaner/spam-comments-cleaner.php 92% from 13 tests

Analyzing the main PHP file in "Spam Comments Cleaner" version 1.3
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 189 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin240 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12323215
CSS10025

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin