93% bulk-delete-users-by-email

Code Review | Bulk Delete Users by Email

WordPress plugin Bulk Delete Users by Email scored 93% from 54 tests.

About plugin

  • Plugin page: bulk-delete-users...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-5.5.3
  • WordPress version: 5.9.2
  • First release: Sep 4, 2014
  • Latest release: Nov 27, 2020
  • Number of updates: 5
  • Update frequency: every 455.2 days
  • Top authors: bkonyn (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

300+ active / 3,495 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼297.60ms] Passed 4 tests

A check of server-side resources used by Bulk Delete Users by Email
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0252.94 ▲0.82
Dashboard /wp-admin3.42 ▲0.0131.55 ▼5.56
Posts /wp-admin/edit.php3.65 ▲0.0135.44 ▲0.26
Add New Post /wp-admin/post-new.php6.89 ▼0.0892.46 ▼1,183.61
Media Library /wp-admin/upload.php3.30 ▲0.0124.59 ▼1.47

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Bulk Delete Users by Email
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,815 ▲6216.22 ▲0.445.98 ▼0.112.77 ▼0.07
Dashboard /wp-admin2,912 ▲586.15 ▼0.05117.12 ▼15.69157.03 ▼3.26
Posts /wp-admin/edit.php2,677 ▼113.25 ▲0.0264.42 ▲2.88140.36 ▼2.50
Add New Post /wp-admin/post-new.php1,674 ▼3716.52 ▼5.04449.23 ▼23.66150.67 ▼7.26
Media Library /wp-admin/upload.php1,721 ▲235.52 ▲0.01143.80 ▼0.72184.34 ▼3.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-delete-users-by-email/plugin.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === bulk-delete-users-by-email === )
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

bulk-delete-users-by-email/plugin.php 92% from 13 tests

"Bulk Delete Users by Email" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bulk-delete-users-by-email.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin58 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1131658

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions4
▷ Named functions4100.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
PNG images were not found in this plugin