72% stop-spammer-registrations-plugin

Code Review | Stop Spammers Security | Block Spam Users, Comments, Forms

WordPress plugin Stop Spammers Security | Block Spam Users, Comments, Forms scored72%from 54 tests.

About plugin

  • Plugin page: stop-spammer-regi...
  • Plugin version: 2023.4.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 10, 2010
  • Latest release: Aug 21, 2023
  • Number of updates: 237
  • Update frequency: every 20.2 days
  • Top authors: bhadaway (45.57%)kpgraham (41.77%)Trumani (13.5%)

Code review

54 tests

User reviews

234 reviews

Install metrics

50,000+ active /2,155,538 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.67MB] [CPU: ▼1.60ms] Passed 4 tests

This is a short check of server-side resources used by Stop Spammers Security | Block Spam Users, Comments, Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.13 ▲0.6646.28 ▲5.04
Dashboard /wp-admin4.00 ▲0.7051.18 ▼0.21
Posts /wp-admin/edit.php4.04 ▲0.6852.20 ▲3.72
Add New Post /wp-admin/post-new.php6.52 ▲0.6389.77 ▼14.93
Media Library /wp-admin/upload.php3.93 ▲0.7046.03 ▲9.44
Web Services /wp-admin/admin.php?page=ss_webservices_settings3.9638.19
Log Report /wp-admin/admin.php?page=ss_reports4.0038.34
Cache /wp-admin/admin.php?page=ss_cache3.9836.12
Premium Security /wp-admin/admin.php?page=ss_premium3.9037.58
Challenge & Block /wp-admin/admin.php?page=ss_challenge4.0137.84
Cleanup /wp-admin/admin.php?page=ss_option_maint6.7446.90
Block Lists /wp-admin/admin.php?page=ss_block_list3.9737.31
Summary /wp-admin/admin.php?page=stop_spammers4.1039.88
Diagnostics /wp-admin/admin.php?page=ss_diagnostics4.3846.66
Protection Options /wp-admin/admin.php?page=ss_options4.1638.10

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 324 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
ss_stop_sp_reg_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
ss_stop_sp_reg_stats
widget_theysaidso_widget

Browser metrics Passed 4 tests

Stop Spammers Security | Block Spam Users, Comments, Forms: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14514.17 ▼0.081.67 ▼0.0239.66 ▼4.17
Dashboard /wp-admin2,297 ▲1205.58 ▼0.0782.94 ▼3.6689.61 ▲49.79
Posts /wp-admin/edit.php2,200 ▲1002.18 ▲0.1735.31 ▲0.0346.80 ▲10.56
Add New Post /wp-admin/post-new.php1,614 ▲8523.33 ▼0.32698.63 ▲20.4367.94 ▲5.36
Media Library /wp-admin/upload.php1,500 ▲974.10 ▼0.11106.04 ▲11.8789.28 ▲44.79
Web Services /wp-admin/admin.php?page=ss_webservices_settings1,0531.8225.6156.81
Log Report /wp-admin/admin.php?page=ss_reports1,0261.6924.1940.69
Cache /wp-admin/admin.php?page=ss_cache1,0211.8226.2939.10
Premium Security /wp-admin/admin.php?page=ss_premium9601.8325.4052.38
Challenge & Block /wp-admin/admin.php?page=ss_challenge1,4531.8527.4357.90
Cleanup /wp-admin/admin.php?page=ss_option_maint1,4271.8327.6746.10
Block Lists /wp-admin/admin.php?page=ss_block_list1,1001.8225.0659.50
Summary /wp-admin/admin.php?page=stop_spammers2,09933.311,024.57142.40
Diagnostics /wp-admin/admin.php?page=ss_diagnostics6,4831.8830.3443.93
Protection Options /wp-admin/admin.php?page=ss_options2,2291.8226.3747.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • ss_stop_sp_reg_options
    • db_upgraded
    • ss_stop_sp_reg_stats
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=ss_option_maint
    • > Notice in wp-content/plugins/stop-spammer-registrations-plugin/settings/ss_user_filter_list.php+189
    Undefined index: max_size_output

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/stop-spammer-registrations-plugin/settings/ss_user_list.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ss_get_options() in wp-content/plugins/stop-spammer-registrations-plugin/modules/pluggable-functions.php:86
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/stop-spammer-registrations-plugin/settings/ss_user_list.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/stop-spammer-registrations-plugin/stop-spammer-registrations-new.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/stop-spammer-registrations-plugin/settings/ss_user_filter_list.php:8
    • > PHP Notice
      Undefined variable: user_list in wp-content/plugins/stop-spammer-registrations-plugin/settings/ss_user_list.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=stop_spammers
    • > Deprecation (warning) in unknown
    https://www.paypalobjects.com/api/checkout.js 16216 Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/admin.php?page=stop_spammers
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'speaker-selection'.
    • > GET request to /wp-admin/admin.php?page=stop_spammers
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: There are too many tags (21 tag instead of maximum 10)
  • Screenshots: These screenshots lack descriptions #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in stop-spammer-registrations-plugin/assets to your readme.txt
You can take inspiration from this readme.txt

stop-spammer-registrations-plugin/stop-spammer-registrations-new.php 85% from 13 tests

This is the main PHP file of "Stop Spammers Security | Block Spam Users, Comments, Forms" version 2023.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 205 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("stop-spammer-registrations-plugin.php" instead of "stop-spammer-registrations-new.php")

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
Everything looks great! No dangerous files found in this plugin44,567 lines of code in 287 files:
LanguageFilesBlank linesComment linesLines of code
PHP2821,0682,48243,876
CSS210517545
JavaScript272145
JSON1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity3.03
▷ Minimum class complexity1.00
▷ Maximum class complexity71.00
Average method complexity7.22
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes263
▷ Abstract classes00.00%
▷ Concrete classes263100.00%
▷ Final classes00.00%
Methods86
▷ Static methods1517.44%
▷ Public methods8295.35%
▷ Protected methods00.00%
▷ Private methods44.65%
Functions129
▷ Named functions12899.22%
▷ Anonymous functions10.78%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
31 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/search.png0.79KB1.32KB0.00%
images/tdown.png0.41KB0.66KB0.00%
images/stop-spammers-premium.png14.32KB7.04KB▼ 50.84%
images/database-cleanup.png1.84KB1.90KB0.00%
images/themed-login_stop-spammers-premium_trumani.png1.99KB2.05KB0.00%