Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-admin-buttons/include/library/admin-page-framework/wp-admin-buttons-admin-page-framework.min.php+4428
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.65ms] Passed 4 tests
Server-side resources used by WP Admin Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.80 ▲2.75 |
Dashboard /wp-admin | 3.36 ▲0.02 | 50.86 ▼12.18 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 46.06 ▲3.51 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.92 ▼27.57 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.40 ▼1.60 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_wpadminbuttons_widget |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP Admin Buttons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.25 ▼0.10 | 1.68 ▼0.24 | 45.60 ▲1.20 |
Dashboard /wp-admin | 2,198 ▲18 | 5.57 ▲0.06 | 89.04 ▼1.55 | 38.17 ▼3.60 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.00 ▲0.04 | 35.25 ▼1.20 | 33.11 ▼4.95 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.55 ▲5.24 | 684.07 ▲49.48 | 61.40 ▼7.33 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.21 ▲0.03 | 95.96 ▼13.65 | 40.93 ▼4.24 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_wpadminbuttons_widget
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WPAdminButtons_AdminPageFramework_Widget' not found in wp-content/plugins/wp-admin-buttons/include/class/widget/WPAdminButtons_Widget.php:15
- > PHP Fatal error
Uncaught Error: Class 'WPAdminButtons_Registry' not found in wp-content/plugins/wp-admin-buttons/include/class-list.php:3
- > PHP Fatal error
Uncaught Error: Class 'WPAdminButtons_AdminPageFramework_PluginBootstrap' not found in wp-content/plugins/wp-admin-buttons/include/class/boot/WPAdminButtons_Bootstrap.php:20
- > PHP Fatal error
Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/wp-admin-buttons/include/library/admin-page-framework/wp-admin-buttons-admin-page-framework.min.php:7466
- > PHP Fatal error
Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/wp-admin-buttons/include/library/admin-page-framework/wp-admin-buttons-admin-page-framework.min.php:7466
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: button, buttons, link button, admin-ui, shortcode...
wp-admin-buttons/wp-admin-buttons.php Passed 13 tests
"WP Admin Buttons" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
56 characters long description:
Displays WordPress admin style buttons in the front end.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin7,441 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 203 | 2,483 | 7,319 |
Markdown | 1 | 45 | 0 | 122 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 13.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 181 | |
▷ Abstract classes | 73 | 40.33% |
▷ Concrete classes | 108 | 59.67% |
▷ Final classes | 5 | 4.63% |
Methods | 970 | |
▷ Static methods | 134 | 13.81% |
▷ Public methods | 572 | 58.97% |
▷ Protected methods | 237 | 24.43% |
▷ Private methods | 161 | 16.60% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 27 | 100.00% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin