84% wp-delete-user-accounts

Code Review | WP Delete User Accounts

WordPress plugin WP Delete User Accounts scored 84% from 54 tests.

About plugin

  • Plugin page: wp-delete-user-ac...
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 19, 2016
  • Latest release: Sep 20, 2022
  • Number of updates: 18
  • Update frequency: every 135.3 days
  • Top authors: renventura (66.67%)EngageWP (38.89%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active / 14,699 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.87ms] Passed 4 tests

An overview of server-side resources used by WP Delete User Accounts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.28 ▼4.68
Dashboard /wp-admin3.36 ▲0.0645.19 ▼6.44
Posts /wp-admin/edit.php3.47 ▲0.1249.45 ▲6.46
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.58 ▼1.99
Media Library /wp-admin/upload.php3.28 ▲0.0534.19 ▼2.35

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Delete User Accounts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.22 ▼1.161.66 ▼0.5241.65 ▼7.74
Dashboard /wp-admin2,206 ▲185.90 ▲0.04108.11 ▼7.3241.43 ▼6.81
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0738.88 ▲2.1334.88 ▲2.50
Add New Post /wp-admin/post-new.php1,533 ▲1423.35 ▲0.40576.94 ▼69.1045.16 ▼12.01
Media Library /wp-admin/upload.php1,388 ▼04.13 ▼0.0796.33 ▼0.4843.88 ▲2.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-delete-user-accounts/includes/frontend.php:23
    • > PHP Notice
      Undefined variable: label in wp-content/plugins/wp-delete-user-accounts/templates/shortcode-wp_delete_user_accounts.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_delete_user_account_delete_button() in wp-content/plugins/wp-delete-user-accounts/templates/shortcode-wp_delete_user_accounts.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-delete-user-accounts/includes/process-ajax.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-delete-user-accounts/includes/admin-profile.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-delete-user-accounts/wp-delete-user-accounts.php:74

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: profiles, accounts

wp-delete-user-accounts/wp-delete-user-accounts.php Passed 13 tests

"WP Delete User Accounts" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
Allow your users to manually delete their own accounts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected380 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP694116203
Markdown128085
JavaScript2101381
CSS12411

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity6.75
▷ Minimum class complexity2.00
▷ Maximum class complexity17.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
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
No PNG images were found in this plugin