Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.66MB] [CPU: ▲5.80ms] Passed 4 tests
Server-side resources used by Conditional Cart Messages for WooCommerce - YourPlugins.com
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.75 | 51.30 ▲9.38 |
Dashboard /wp-admin | 3.96 ▲0.66 | 58.71 ▲11.79 |
Posts /wp-admin/edit.php | 4.06 ▲0.70 | 57.61 ▲14.10 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.64 | 85.87 ▼6.45 |
Media Library /wp-admin/upload.php | 3.86 ▲0.64 | 40.80 ▲8.48 |
YourPlugins /wp-admin/admin.php?page=yourplugins | 5.28 | 111.24 |
Conditional Cart Notices /wp-admin/admin.php?page=yourplugins-wc-conditional-cart-notices | 4.05 | 46.94 |
Server storage [IO: ▲8.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 305 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_yps_wc_conditional_cart_notices |
wp_yps_wc_conditional_cart_notices_settings |
New WordPress options |
---|
theysaidso_admin_options |
yourplugins-wc-conditional-cart-notices |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Conditional Cart Messages for WooCommerce - YourPlugins.com
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,007 ▲272 | 14.57 ▲0.22 | 2.60 ▲0.92 | 37.97 ▼10.52 |
Dashboard /wp-admin | 2,366 ▲178 | 6.46 ▲1.56 | 121.74 ▲19.40 | 81.90 ▲42.28 |
Posts /wp-admin/edit.php | 2,287 ▲198 | 3.56 ▲1.51 | 52.77 ▲17.28 | 66.85 ▲32.55 |
Add New Post /wp-admin/post-new.php | 1,555 ▲19 | 23.21 ▲0.30 | 562.68 ▼61.37 | 136.12 ▲79.82 |
Media Library /wp-admin/upload.php | 1,426 ▲35 | 4.16 ▼0.07 | 79.47 ▼22.58 | 85.68 ▲37.91 |
YourPlugins /wp-admin/admin.php?page=yourplugins | 1,063 | 4.49 | 72.06 | 26.75 |
Conditional Cart Notices /wp-admin/admin.php?page=yourplugins-wc-conditional-cart-notices | 1,401 | 5.27 | 97.05 | 61.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_yps_wc_conditional_cart_notices_settings
- wp_yps_wc_conditional_cart_notices
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- yourplugins-wc-conditional-cart-notices
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/yourplugins-wc-conditional-cart-notices/vendor/yps/framework-plugin/view/header.php
- > /wp-content/plugins/yourplugins-wc-conditional-cart-notices/vendor/yps/framework-plugin/view/footer.php
- > /wp-content/plugins/yourplugins-wc-conditional-cart-notices/vendor/yps/framework-form/view/form/field/tree-select.php
- 186× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/yourplugins-wc-conditional-cart-notices/vendor/yps/framework-core/includes/helper.php on line 220
- > PHP Fatal error
Uncaught Error: Class 'YPS\\Framework\\Core\\v020_769_691\\Controller' not found in wp-content/plugins/yourplugins-wc-conditional-cart-notices/vendor/yps/framework-plugin/includes/plugin-controller.php:7
- > PHP Warning
Class 'YPS\\Framework\\Query_Builder\\v020_769_691\\Query_Builder_Form_Field' not found in wp-content/plugins/yourplugins-wc-conditional-cart-notices/autoload/aliases.php on line 112
- > PHP Fatal error
Uncaught Error: Class 'YPS\\Framework\\Database\\v020_769_691\\Model' not found in wp-content/plugins/yourplugins-wc-conditional-cart-notices/vendor/yps/framework-database/includes/session-model.php:5
- > PHP Fatal error
Uncaught Error: Class 'YPS\\Framework\\Core\\v020_769_691\\Base' not found in wp-content/plugins/yourplugins-wc-conditional-cart-notices/vendor/yps/framework-form/includes/form.php:8
- > PHP Fatal error
Uncaught Error: Class 'YPS\\Framework\\Form\\v020_769_691\\Form_Field' not found in wp-content/plugins/yourplugins-wc-conditional-cart-notices/vendor/yps/framework-form/includes/numeric-form-field.php:5
- > PHP Warning
Class 'YPS\\Framework\\Database\\v020_769_691\\Database_Helper' not found in wp-content/plugins/yourplugins-wc-conditional-cart-notices/autoload/aliases.php on line 31
- > PHP Fatal error
Uncaught Error: Class 'YPS\\Framework\\Form\\v020_769_691\\Form_Field' not found in wp-content/plugins/yourplugins-wc-conditional-cart-notices/vendor/yps/framework-form/includes/color-form-field.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/yourplugins-wc-conditional-cart-notices/vendor/yps/framework-form/view/form/compact-form.php:5
- > PHP Fatal error
Uncaught Error: Class 'YPS\\WC_Conditional_Cart_Notices\\Framework\\Record\\Record_Model' not found in wp-content/plugins/yourplugins-wc-conditional-cart-notices/app/notice/notice-model.php:7
- > PHP Warning
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3 in yourplugins-wc-conditional-cart-notices/assets to your readme.txt
yourplugins-wc-conditional-cart-notices/yourplugins-wc-conditional-cart-notices.php 92% from 13 tests
The entry point to "Conditional Cart Messages for WooCommerce - YourPlugins.com" version 1.2.10 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected59,844 lines of code in 249 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 62 | 7,077 | 12,048 | 28,842 |
CSS | 33 | 309 | 104 | 10,891 |
SVG | 3 | 0 | 12 | 8,954 |
PHP | 142 | 3,179 | 3,460 | 8,668 |
JSON | 5 | 10 | 0 | 1,349 |
Markdown | 2 | 139 | 0 | 517 |
Sass | 1 | 42 | 0 | 501 |
PO File | 1 | 53 | 54 | 122 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 28 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 160 | |
▷ Abstract classes | 3 | 1.88% |
▷ Concrete classes | 157 | 98.12% |
▷ Final classes | 0 | 0.00% |
Methods | 844 | |
▷ Static methods | 120 | 14.22% |
▷ Public methods | 803 | 95.14% |
▷ Protected methods | 35 | 4.15% |
▷ Private methods | 6 | 0.71% |
Functions | 17 | |
▷ Named functions | 1 | 5.88% |
▷ Anonymous functions | 16 | 94.12% |
Constants | 37 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 37 | 100.00% |
▷ Public constants | 37 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/externals/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
vendor/externals/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
vendor/yps/framework-plugin/images/logo-24x24.png | 1.18KB | 0.88KB | ▼ 25.02% |