84% withinweb-remove-spam-subscribers

Code Review | Remove Unwanted Subscribers

WordPress plugin Remove Unwanted Subscribers scored84%from 54 tests.

About plugin

  • Plugin page: withinweb-remove-...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Aug 18, 2017
  • Latest release: Dec 7, 2019
  • Number of updates: 14
  • Update frequency: every 60.2 days
  • Top authors: paulvgibbs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,807 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Remove Unwanted Subscribers
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.61 ▼1.95
Dashboard /wp-admin3.33 ▲0.0348.41 ▼0.96
Posts /wp-admin/edit.php3.38 ▲0.0349.66 ▲2.16
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.87 ▼12.01
Media Library /wp-admin/upload.php3.26 ▲0.0337.36 ▼0.44
Remove Subs /wp-admin/admin.php?page=withinweb-remove-spam-subscribers/withinweb_wwrs_remove_subscribers.php3.2231.82
Settings /wp-admin/admin.php?page=withinweb-remove-spam-subscribers/withinweb_wwrs_remove_subscribers.php_settings3.2333.44

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
withinweb_wwrs_cron_array
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove Unwanted Subscribers
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲5613.70 ▼0.662.09 ▼0.6943.47 ▼3.08
Dashboard /wp-admin2,251 ▲455.85 ▼0.0897.08 ▼25.9538.53 ▼10.65
Posts /wp-admin/edit.php2,127 ▲272.00 ▼0.0133.47 ▼2.7935.95 ▲1.05
Add New Post /wp-admin/post-new.php1,548 ▲2217.84 ▲0.31652.24 ▼25.5450.18 ▼12.31
Media Library /wp-admin/upload.php1,427 ▲274.24 ▲0.1097.10 ▼17.9741.88 ▼6.55
Remove Subs /wp-admin/admin.php?page=withinweb-remove-spam-subscribers/withinweb_wwrs_remove_subscribers.php8312.0322.5626.20
Settings /wp-admin/admin.php?page=withinweb-remove-spam-subscribers/withinweb_wwrs_remove_subscribers.php_settings8992.0224.8933.09

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • withinweb_wwrs_cron_array
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/withinweb-remove-spam-subscribers/views/adminhelp.php
    • > /wp-content/plugins/withinweb-remove-spam-subscribers/views/adminsettings.php

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: remove subscribers, spam subscribers, subscribers, spam users, cron job

withinweb-remove-spam-subscribers/withinweb_wwrs_remove_subscribers.php 92% from 13 tests

The main PHP script in "Remove Unwanted Subscribers" version 1.0.7 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("withinweb-remove-spam-subscribers.php" instead of "withinweb_wwrs_remove_subscribers.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected193 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP48863193

PHP code Passed 2 tests

This is a very shot 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.53
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png19.95KB9.78KB▼ 50.98%