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.17MB] [CPU: ▼8.56ms] Passed 4 tests
Server-side resources used by BD Buttons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 45.07 ▲3.26 |
Dashboard /wp-admin | 3.42 ▲0.11 | 47.35 ▼3.35 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.74 ▼0.40 |
Add New Post /wp-admin/post-new.php | 4.91 ▼0.99 | 62.48 ▼29.76 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.04 ▼0.74 |
BD Buttons /wp-admin/admin.php?page=bdbuttons | 3.31 | 43.95 |
BD Plugins /wp-admin/admin.php?page=bearlydoug | 3.32 | 33.11 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_bdButtons |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
BD Buttons: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲68 | 14.33 ▼0.10 | 1.61 ▼0.24 | 37.09 ▼7.90 |
Dashboard /wp-admin | 2,231 ▲57 | 5.61 ▼0.01 | 95.35 ▼5.45 | 81.29 ▲37.95 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.16 ▲0.15 | 40.97 ▼1.71 | 36.08 ▲2.27 |
Add New Post /wp-admin/post-new.php | 1,561 ▲26 | 23.39 ▼2.08 | 694.68 ▲76.73 | 65.42 ▼4.35 |
Media Library /wp-admin/upload.php | 1,456 ▲62 | 4.22 ▲0.03 | 99.79 ▲1.27 | 80.84 ▲37.61 |
BD Buttons /wp-admin/admin.php?page=bdbuttons | 1,308 | 2.34 | 36.96 | 49.75 |
BD Plugins /wp-admin/admin.php?page=bearlydoug | 1,422 | 2.05 | 29.14 | 39.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_bdButtons
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/bd-buttons/includes/index.php
- > /wp-content/plugins/bd-buttons/bdButtons/index.php
- > /wp-content/plugins/bd-buttons/images/index.php
- > /wp-content/plugins/bd-buttons/bdButtons.php
- 2× 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/bd-buttons/functions-bd.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bd-buttons/includes/BDPluginsNews.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: link buttons, links, button link, stylize links
bd-buttons/bdButtons.php 77% from 13 tests
The main PHP file in "BD Buttons" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 223 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bd-buttons.php" instead of "bdButtons.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected1,264 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 75 | 206 | 754 |
CSS | 3 | 88 | 46 | 507 |
JavaScript | 1 | 1 | 7 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.24MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/delete.png | 0.96KB | 0.69KB | ▼ 27.68% |
images/gutenborg.png | 161.82KB | 51.46KB | ▼ 68.20% |
images/disable-gutenberg-plugin-icon.png | 16.22KB | 16.21KB | 0.05% |
images/spacer.png | 0.27KB | 0.09KB | ▼ 64.60% |
images/vimeo.png | 0.55KB | 0.67KB | 0.00% |