Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲1.50MB] [CPU: ▲15.10ms] Passed 4 tests
This is a short check of server-side resources used by Cart Notices for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.95 ▲1.49 | 56.10 ▲8.86 |
Dashboard /wp-admin | 4.85 ▲1.55 | 74.06 ▲23.60 |
Posts /wp-admin/edit.php | 4.90 ▲1.54 | 72.61 ▲15.63 |
Add New Post /wp-admin/post-new.php | 7.37 ▲1.48 | 118.32 ▲12.68 |
Media Library /wp-admin/upload.php | 4.71 ▲1.48 | 60.27 ▲23.21 |
Server storage [IO: ▲2.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 102 new files
Database: no new tables, 8 new options
New WordPress options |
---|
br-cart_notices-options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
berocket_admin_notices_rate_stars |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cart Notices for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲20 | 14.25 ▼0.10 | 1.77 ▼0.13 | 41.17 ▼6.12 |
Dashboard /wp-admin | 2,197 ▲17 | 5.57 ▼0.10 | 94.29 ▼0.50 | 82.51 ▲39.91 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.00 ▼0.13 | 37.35 ▼1.31 | 32.63 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.31 ▲0.21 | 719.32 ▲28.45 | 56.94 ▼6.67 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.07 ▼0.18 | 97.80 ▼13.76 | 76.89 ▲29.86 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- berocket_key_activated_plugins
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- berocket_admin_notices_rate_stars
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cart-notices-for-woocommerce/berocket/sale/sale.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cart-notices-for-woocommerce/berocket/libraries/wpml_compatibility.php:2
- > PHP Fatal error
Uncaught Error: Class 'BeRocket_plugin_variations' not found in wp-content/plugins/cart-notices-for-woocommerce/includes/paid.php:2
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/cart-notices-for-woocommerce/divi/includes/modules/cartNotice/cartNotice.php:3
- > PHP Fatal error
Uncaught Error: Class 'BeRocket_plugin_variations' not found in wp-content/plugins/cart-notices-for-woocommerce/includes/tripwire.php:2
- > PHP Notice
Undefined variable: framework_version in wp-content/plugins/cart-notices-for-woocommerce/berocket/framework_version.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cart-notices-for-woocommerce/berocket/libraries/popup.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cart-notices-for-woocommerce/berocket/libraries/tutorial.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cart-notices-for-woocommerce/berocket/templates/settings_footer.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cart-notices-for-woocommerce/berocket/includes/updater.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (24 tag instead of maximum 10)
- Screenshots: These screenshots do not have images: #1 (General settings), #2 (Notices list), #3 (Notice creation)
cart-notices-for-woocommerce/woocommerce-cart-notices.php 85% from 13 tests
The entry point to "Cart Notices for WooCommerce" version 3.5.7.8 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
- Main file name: The principal plugin file should be the same as the plugin slug ("cart-notices-for-woocommerce.php" instead of "woocommerce-cart-notices.php")
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
No dangerous file extensions were detected21,592 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 468 | 1,007 | 9,902 |
CSS | 16 | 2,513 | 76 | 9,439 |
JavaScript | 10 | 49 | 61 | 1,700 |
PO File | 2 | 194 | 216 | 430 |
JSX | 1 | 6 | 1 | 79 |
XML | 2 | 0 | 0 | 42 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 45.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 402 | |
▷ Static methods | 151 | 37.56% |
▷ Public methods | 402 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
9 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ad_white_on_orange.png | 20.67KB | 15.57KB | ▼ 24.67% |
berocket/assets/css/mail.png | 2.59KB | 1.92KB | ▼ 26.02% |
berocket/includes/ico.png | 1.90KB | 1.41KB | ▼ 25.89% |
berocket/assets/images/submenu-icon.png | 0.62KB | 0.50KB | ▼ 20.13% |
berocket/libraries/templates/default.png | 3.87KB | 2.63KB | ▼ 31.94% |