84% squelch-unspam

Code Review | Squelch Unspam

WordPress plugin Squelch Unspam scored84%from 54 tests.

About plugin

  • Plugin page: squelch-unspam
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: Feb 21, 2013
  • Latest release: May 6, 2022
  • Number of updates: 50
  • Update frequency: every 67.2 days
  • Top authors: squelch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,939 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.38ms] Passed 4 tests

Server-side resources used by Squelch Unspam
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0950.10 ▲5.27
Dashboard /wp-admin3.36 ▲0.0149.01 ▼12.59
Posts /wp-admin/edit.php3.48 ▲0.1253.19 ▲3.09
Add New Post /wp-admin/post-new.php5.95 ▲0.05105.99 ▲9.38
Media Library /wp-admin/upload.php3.29 ▲0.0544.25 ▼1.29

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
lstunspam_version
lstunspam_showmessage
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Squelch Unspam
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲14213.85 ▼0.5010.07 ▲8.4340.89 ▼0.46
Dashboard /wp-admin2,195 ▲185.66 ▼0.0288.04 ▲3.4240.34 ▼1.15
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0142.87 ▲7.2536.75 ▲1.13
Add New Post /wp-admin/post-new.php1,544 ▼118.32 ▼4.93609.04 ▼72.2777.30 ▲24.99
Media Library /wp-admin/upload.php1,397 ▼64.21 ▲0.0499.11 ▼14.1247.46 ▼5.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/squelch-unspam/squelch-unspam.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

squelch-unspam/squelch-unspam.php Passed 13 tests

The main PHP file in "Squelch Unspam" ver. 1.5.1 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
Stops spam at the root by renaming the fields on the comment forms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected264 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1141190255
JavaScript15125
CSS16124

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin