Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.47ms] Passed 4 tests
An overview of server-side resources used by Remove admin menus by roles
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 35.46 ▼2.96 |
Dashboard /wp-admin | 3.34 ▲0.03 | 43.44 ▼1.63 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.10 ▲0.61 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.32 ▼5.89 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.36 ▲0.72 |
Server storage [IO: ▲0.05MB] [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: 9 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_remove_menu_admin_profiles |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Remove admin menus by roles: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲42 | 13.78 ▼0.42 | 1.67 ▼0.30 | 42.69 ▲3.67 |
Dashboard /wp-admin | 2,216 ▲33 | 4.95 ▲0.03 | 99.90 ▼12.81 | 77.50 ▲32.06 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 1.99 ▼0.04 | 39.39 ▲2.74 | 38.46 ▲1.84 |
Add New Post /wp-admin/post-new.php | 1,526 ▲5 | 17.50 ▼5.57 | 753.10 ▲60.60 | 56.26 ▲2.70 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.13 ▼0.05 | 117.72 ▲0.25 | 47.92 ▼1.16 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/remove-admin-menus-by-role/remove-admin-menus-by-role.php:14
- > PHP Fatal error
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 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== remove-admin-menus-by-role ===
) - Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
- Screenshots: Please describe screenshot #1 in remove-admin-menus-by-role/assets to your readme.txt
remove-admin-menus-by-role/remove-admin-menus-by-role.php Passed 13 tests
The main PHP script in "Remove admin menus by roles" version 1.35 is automatically included on every request by WordPress
28 characters long description:
Remove admin menus by roles.
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 plugin267 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 62 | 17 | 204 |
PO File | 1 | 9 | 10 | 33 |
CSS | 1 | 2 | 0 | 30 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
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 | 7 | |
▷ Named functions | 7 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pro_version.png | 32.40KB | 10.34KB | ▼ 68.08% |
images/fb.png | 1.59KB | 1.00KB | ▼ 37.42% |
images/icon.png | 0.97KB | 0.99KB | 0.00% |