Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Error in wp-content/plugins/bon-toolkit/bon-toolkit.php+410
Uncaught Error: Call to undefined function bon_toolkit_set_options() in wp-content/plugins/bon-toolkit/bon-toolkit.php:410
Stack trace:
#0 wp-content/plugins/bon-toolkit/bon-toolkit.php(156): BON_Toolkit->get_option_array()
#1 wp-includes/class-wp-hook.php(310): BON_Toolkit->activate()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.79ms] Passed 4 tests
Server-side resources used by Bon Toolkit
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.39 ▼11.77 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.27 ▼5.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.11 ▲7.74 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.05 ▼13.36 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.97 ▼0.88 |
Server storage [IO: ▲1.45MB] [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: 98 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Bon Toolkit: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.80 ▲0.42 | 1.98 ▲0.20 | 41.09 ▼6.29 |
Dashboard /wp-admin | 2,203 ▲15 | 4.84 ▼0.04 | 113.53 ▼4.08 | 39.61 ▼8.38 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.02 ▲0.05 | 40.67 ▼2.22 | 35.56 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,537 ▼5 | 23.36 ▲4.72 | 655.43 ▼23.81 | 52.21 ▼13.60 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.23 ▲0.03 | 103.43 ▲6.77 | 47.70 ▲5.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 29× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/bon-toolkit/includes/widgets/widget-flickr.php
- > /wp-content/plugins/bon-toolkit/includes/widgets/widget-archives.php
- > /wp-content/plugins/bon-toolkit/includes/tinymce/init.php
- > /wp-content/plugins/bon-toolkit/includes/widgets/widget-calendar.php
- > /wp-content/plugins/bon-toolkit/includes/widgets/widget-contactform.php
- > /wp-content/plugins/bon-toolkit/includes/classes/class-quiz.php
- > /wp-content/plugins/bon-toolkit/includes/posttypes/quiz.php
- > /wp-content/plugins/bon-toolkit/includes/widgets/widget-nav-menu.php
- > /wp-content/plugins/bon-toolkit/includes/widgets/widget-dribbble.php
- > /wp-content/plugins/bon-toolkit/includes/posttypes/testimonial.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bon-toolkit/bon-toolkit-core-functions.php:144
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bon-toolkit/includes/shortcodes.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function bon_toolkit_get_prefix() in wp-content/plugins/bon-toolkit/includes/builder/builder.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (The Bon Toolkit widget will appear in your list of available widgets.), #2 (A view of the available settings for the Toolkit.), #3 (Widgets that will appear in your Widgets area once activated.), #4 (Retina social icons widget active in a footer.)
bon-toolkit/bon-toolkit.php Passed 13 tests
The main file in "Bon Toolkit" v. 1.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
65 characters long description:
Various widgets, shortcodes and elements for your WordPress site.
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
Everything looks great! No dangerous files found in this plugin12,784 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 2,126 | 2,018 | 7,240 |
PO File | 3 | 1,133 | 1,572 | 2,375 |
CSS | 10 | 129 | 6 | 1,285 |
JavaScript | 9 | 48 | 38 | 966 |
SVG | 3 | 0 | 0 | 918 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 18.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 2 | 5.41% |
▷ Concrete classes | 35 | 94.59% |
▷ Final classes | 0 | 0.00% |
Methods | 272 | |
▷ Static methods | 10 | 3.68% |
▷ Public methods | 254 | 93.38% |
▷ Protected methods | 9 | 3.31% |
▷ Private methods | 9 | 3.31% |
Functions | 61 | |
▷ Named functions | 61 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-testi.png | 1.84KB | 1.00KB | ▼ 45.54% |
assets/images/marker-orange.png | 4.82KB | 2.01KB | ▼ 58.35% |
assets/images/icon-poll.png | 2.10KB | 1.47KB | ▼ 30.02% |
assets/images/icon-quiz.png | 2.20KB | 1.41KB | ▼ 35.73% |
assets/images/icon-listings.png | 2.32KB | 1.36KB | ▼ 41.21% |