Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.63ms] Passed 4 tests
A check of server-side resources used by Remove meta boxes per user role
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 34.49 ▼0.24 |
Dashboard /wp-admin | 3.07 ▲0.02 | 42.35 ▲0.98 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 46.58 ▲5.41 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 80.45 ▼572.79 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 33.78 ▲1.53 |
Remove meta boxes per user role /wp-admin/options-general.php?page=remove-meta-boxes-per-user-role | 2.98 | 28.51 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
Checking browser requirements for Remove meta boxes per user role
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 16.19 ▲0.64 | 7.51 ▼0.55 | 48.32 ▲1.18 |
Dashboard /wp-admin | 2,975 ▲44 | 5.97 ▼0.15 | 141.69 ▼3.50 | 113.96 ▼2.50 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.00 | 65.35 ▲1.14 | 86.13 ▼1.68 |
Add New Post /wp-admin/post-new.php | 2,060 ▲3 | 19.29 ▼0.37 | 364.85 ▲4.02 | 104.18 ▲1.08 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.02 ▼0.01 | 141.34 ▼2.54 | 118.59 ▲3.88 |
Remove meta boxes per user role /wp-admin/options-general.php?page=remove-meta-boxes-per-user-role | 874 | 1.85 | 34.41 | 46.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 1 option in the database
- recovery_mode_email_last_sent
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
- > GET request to /wp-admin/options-general.php?page=remove-meta-boxes-per-user-role
- > Parse error in wp-content/plugins/remove-meta-boxes-per-user-role/admin_pages/settings.php+66
syntax error, unexpected '}', expecting end of file
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Parse error
syntax error, unexpected '}', expecting end of file in wp-content/plugins/remove-meta-boxes-per-user-role/admin_pages/settings.php on line 66
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/remove-meta-boxes-per-user-role/remove-meta-boxes-per-role.php:13
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Settings page) image required
- Plugin Name: You should set the name of your plugin on the first line (
=== remove-meta-boxes-per-user-role ===
)
remove-meta-boxes-per-user-role/remove-meta-boxes-per-role.php 92% from 13 tests
The principal PHP file in "Remove meta boxes per user role" v. 1.01 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("remove-meta-boxes-per-user-role.php" instead of "remove-meta-boxes-per-role.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin182 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 25 | 25 | 106 |
PO File | 1 | 20 | 22 | 57 |
JavaScript | 1 | 1 | 3 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 58.85KB | 25.30KB | ▼ 57.01% |