78% no-posts-user-delete

Code Review | Delete Spam Users

WordPress plugin Delete Spam Users scored78%from 54 tests.

About plugin

  • Plugin page: no-posts-user-delete
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Oct 5, 2013
  • Latest release: Jan 12, 2018
  • Number of updates: 38
  • Update frequency: every 41.1 days
  • Top authors: mcwebdesignro (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

200+ active /5,630 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.83ms] Passed 4 tests

Analyzing server-side resources used by Delete Spam Users
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.34 ▲1.65
Dashboard /wp-admin3.31 ▲0.0150.40 ▼4.29
Posts /wp-admin/edit.php3.36 ▲0.0051.75 ▲0.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.22 ▼7.09
Media Library /wp-admin/upload.php3.23 ▲0.0032.55 ▼3.96
Delete Spam Users /wp-admin/users.php?page=no-posts-user-delete/no-posts-user-delete.php3.1832.22

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Delete Spam Users
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.181.99 ▲0.2842.99 ▼2.04
Dashboard /wp-admin2,199 ▲195.67 ▲0.1085.59 ▼5.2441.96 ▼1.36
Posts /wp-admin/edit.php2,104 ▲11.97 ▼0.0135.08 ▼5.3936.55 ▲1.57
Add New Post /wp-admin/post-new.php1,530 ▼722.90 ▲4.81654.59 ▲38.7954.39 ▼15.17
Media Library /wp-admin/upload.php1,398 ▼24.16 ▼0.0796.38 ▼2.9339.93 ▼3.28
Delete Spam Users /wp-admin/users.php?page=no-posts-user-delete/no-posts-user-delete.php1,0492.1225.2431.60

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/users.php?page=no-posts-user-delete/no-posts-user-delete.php
    • > Notice in wp-content/plugins/no-posts-user-delete/no-posts-user-delete.php+83
    Undefined index: user_role_eq
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/users.php?page=no-posts-user-delete/no-posts-user-delete.php
    • > Notice in wp-content/plugins/no-posts-user-delete/no-posts-user-delete.php+98
    Undefined index: max_size_output
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/users.php?page=no-posts-user-delete/no-posts-user-delete.php
    • > Notice in wp-content/plugins/no-posts-user-delete/no-posts-user-delete.php+116
    Undefined index: sort_order

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 add_action() in wp-content/plugins/no-posts-user-delete/no-posts-user-delete.php:372

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
4 plugin tags: remove user, spam users, user delete, delete users

no-posts-user-delete/no-posts-user-delete.php 92% from 13 tests

"Delete Spam Users" version 3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin322 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14516322

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin