83% bulk-remove-users

Code Review | Bulk Remove Users

WordPress plugin Bulk Remove Users scored83%from 54 tests.

About plugin

  • Plugin page: bulk-remove-users
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2016
  • Latest release: Jun 5, 2020
  • Number of updates: 7
  • Update frequency: every 184.0 days
  • Top authors: marcodedo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,002 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Bulk Remove Users
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.64 ▼4.32
Dashboard /wp-admin3.32 ▲0.0151.60 ▲0.41
Posts /wp-admin/edit.php3.37 ▲0.0147.34 ▼6.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.47 ▼19.03
Media Library /wp-admin/upload.php3.24 ▲0.0136.59 ▼1.23
Bulk Remove Users /wp-admin/options-general.php?page=juru_options_page_slug3.2028.61

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bulk Remove Users
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.61 ▲0.022.04 ▲0.1043.80 ▲3.73
Dashboard /wp-admin2,199 ▲195.59 ▼0.0682.87 ▼8.3543.67 ▼4.36
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0140.59 ▲2.8937.74 ▲0.43
Add New Post /wp-admin/post-new.php1,534 ▲823.57 ▲0.72659.53 ▲22.6755.90 ▲7.66
Media Library /wp-admin/upload.php1,407 ▲44.18 ▼0.0099.83 ▼5.5141.54 ▼1.42
Bulk Remove Users /wp-admin/options-general.php?page=juru_options_page_slug7742.1524.1228.19

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-remove-users/bulk_remove_users.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === bulk-remove-users === )
  • Screenshots: These screenshots require images: #1 (Settings->Bulk Remove Users), #2 (Response of those profiles have been deleted.)
You can look at the official readme.txt

bulk-remove-users/bulk_remove_users.php 92% from 13 tests

The primary PHP file in "Bulk Remove Users" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bulk-remove-users.php" instead of "bulk_remove_users.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 plugin52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17952

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png18.67KB5.89KB▼ 68.48%
screenshot-2.png21.27KB6.86KB▼ 67.77%