Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.02ms] Passed 4 tests
Analyzing server-side resources used by Bubbleyes for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.20 ▼3.33 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.42 ▼6.96 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.39 ▼1.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.99 ▼12.18 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.10 ▲0.87 |
Server storage [IO: ▲0.22MB] [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: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bubbleyes for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.33 | 1.83 ▼0.14 | 41.28 ▼3.54 |
Dashboard /wp-admin | 2,192 ▲12 | 5.57 ▼0.00 | 87.15 ▼3.68 | 40.34 ▲0.94 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.95 ▼0.03 | 36.19 ▼0.19 | 36.26 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.57 ▲0.56 | 663.90 ▲13.07 | 53.33 ▲1.44 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.20 ▼0.00 | 100.70 ▼1.22 | 45.80 ▲1.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
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)
Even though no errors were found, 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
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bubbleyes-for-woocommerce/admin/partials/category-edit-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bubbleyes-for-woocommerce/admin/partials/options.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bubbleyes-for-woocommerce/admin/partials/category-add-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/bubbleyes-for-woocommerce/public/partials/button.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function selected() in wp-content/plugins/bubbleyes-for-woocommerce/admin/partials/meta-box.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (16 tag instead of maximum 10)
bubbleyes-for-woocommerce/woocommerce-bubbleyes.php 85% from 13 tests
The entry point to "Bubbleyes for WooCommerce" version 1.0.7 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("bubbleyes-for-woocommerce.php" instead of "woocommerce-bubbleyes.php")
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
Success! There were no dangerous files found in this plugin1,421 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 370 | 828 | 1,272 |
JavaScript | 2 | 31 | 0 | 93 |
CSS | 2 | 3 | 12 | 56 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 1 | 6.25% |
Methods | 105 | |
▷ Static methods | 8 | 7.62% |
▷ Public methods | 93 | 88.57% |
▷ Protected methods | 2 | 1.90% |
▷ Private methods | 10 | 9.52% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 1 | 9.09% |
▷ Class constants | 10 | 90.91% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 20.92KB | 10.04KB | ▼ 52.03% |
assets/banner-772x250.png | 20.88KB | 8.68KB | ▼ 58.45% |
assets/screenshot-1.png | 111.17KB | 55.40KB | ▼ 50.17% |