Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/woobag-cart-popup-lite/includes/settings/wb-product-settings.php+34
Uncaught Error: [] operator not supported for strings in wp-content/plugins/woobag-cart-popup-lite/includes/settings/wb-product-settings.php:34
Stack trace:
#0 wp-content/plugins/woobag-cart-popup-lite/woo-bag.php(339): wb_plugin_setting()
#1 wp-content/plugins/woobag-cart-popup-lite/includes/wb-core-functions.php(1733): Woo_Bag->wb_default_settings()
#2 wp-content/plugins/woobag-cart-popup-lite/includes/wb-template-functions.php(48): wb_default_options()
#3 wp-content/plugins/woobag-cart-popup-lite/includes/class-woo-bag-activator.php(88): wb_activate_plugin()
#4 wp-content/plugins/woobag-cart-popup-lite/includes/class-woo-bag-activator.php(64): Woo_Bag_Activator::wb_default_create_options()
#5 wp-includes/class-wp-hook.php(310): Woo_Bag_Activator::wb_install()
#6 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#7 wp-includes/p
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.51ms] Passed 4 tests
An overview of server-side resources used by WooBag Cart Popup Lite for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.32 ▼2.39 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.92 ▼9.52 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.59 ▼2.23 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.64 ▼7.91 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 47.73 ▲13.52 |
Server storage [IO: ▲2.85MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 71 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
wb_setting_install |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WooBag Cart Popup Lite for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.71 ▼0.70 | 1.84 ▼0.16 | 42.82 ▼10.00 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▲0.96 | 96.53 ▼19.11 | 37.75 ▼9.97 |
Posts /wp-admin/edit.php | 2,092 ▲24 | 2.05 ▲0.04 | 36.86 ▼0.71 | 33.54 ▲0.34 |
Add New Post /wp-admin/post-new.php | 1,539 ▲3 | 23.18 ▼0.17 | 673.70 ▲70.29 | 51.76 ▼9.90 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.23 ▲0.00 | 94.31 ▼4.64 | 41.37 ▼2.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
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 everything seems fine, this is not 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 items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function WB() in wp-content/plugins/woobag-cart-popup-lite/admin/templates/woo-bag-premium-features.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function WB() in wp-content/plugins/woobag-cart-popup-lite/admin/templates/woo-bag-template.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Requires at least: The plugin version is formatted incorrectly
woobag-cart-popup-lite/woo-bag.php 77% from 13 tests
The primary PHP file in "WooBag Cart Popup Lite for WooCommerce" version 1.1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woobag-cart-popup-lite.php" instead of "woo-bag.php")
- Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin21,292 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 61 | 95 | 9,898 |
PHP | 23 | 426 | 875 | 8,434 |
JavaScript | 12 | 184 | 268 | 2,178 |
SVG | 5 | 0 | 4 | 782 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 20.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 133.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 7 | 12.73% |
▷ Public methods | 45 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 18.18% |
Functions | 45 | |
▷ Named functions | 45 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
7 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/wb_menu_icon.png | 1.75KB | 0.81KB | ▼ 53.87% |
public/images/cart-empty.png | 2.85KB | 1.63KB | ▼ 42.62% |
admin/images/wb_logo.png | 4.64KB | 2.79KB | ▼ 39.83% |
admin/images/dummy-product-image.png | 38.15KB | 14.02KB | ▼ 63.24% |
public/images/bag-icon.png | 0.67KB | 0.49KB | ▼ 27.35% |