Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼35.11ms] Passed 4 tests
Analyzing server-side resources used by Bulk Change Role
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.32 ▲2.28 |
Dashboard /wp-admin | 3.01 ▼0.30 | 23.38 ▼27.64 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 23.38 ▼26.68 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 26.69 ▼72.58 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 25.15 ▼13.54 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Bulk Change Role
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.28 ▼0.38 | 1.79 ▲0.14 | 46.60 ▼0.14 |
Dashboard /wp-admin | 2,203 ▲29 | 5.67 ▲0.09 | 98.46 ▲5.84 | 42.49 ▼4.03 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 2.00 ▲0.01 | 36.82 ▼1.93 | 33.84 ▼1.57 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 22.90 ▼0.14 | 655.51 ▼41.44 | 56.44 ▲2.60 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.21 ▲0.01 | 98.80 ▼18.27 | 48.09 ▲0.94 |
Bulk change role /wp-admin/bulk_change_role_page.php | 26 | 0.42 | 0.13 | 13.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
Please fix the following items
- 4× 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-role-change/includes/admin-enqueue-scripts.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-role-change/includes/admin-enqueue-scripts.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-role-change/includes/view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-role-change/includes/ajax.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/bulk_change_role_page.php
- > Network (severe)
wp-admin/bulk_change_role_page.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: role, migrate, users, transfer, reassign
bulk-role-change/w3dev-bulk-role-change.php 92% from 13 tests
The primary PHP file in "Bulk Change Role" version 1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("bulk-role-change.php" instead of "w3dev-bulk-role-change.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
There were no executable files found in this plugin313 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 1 | 4 | 122 |
PHP | 4 | 24 | 15 | 121 |
JavaScript | 1 | 3 | 8 | 70 |
PHP code Passed 2 tests
An short overview of 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 code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.63MB with 0.44MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 154.83KB | 48.48KB | ▼ 68.69% |
screenshot-2.png | 162.23KB | 50.76KB | ▼ 68.71% |
screenshot-4.png | 166.77KB | 51.06KB | ▼ 69.38% |
screenshot-3.png | 164.70KB | 51.09KB | ▼ 68.98% |