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.02MB] [CPU: ▼8.22ms] Passed 4 tests
A check of server-side resources used by YayPricing - WooCommerce Dynamic Pricing & Discounts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.37 ▼3.86 |
Dashboard /wp-admin | 3.33 ▼0.01 | 44.92 ▼20.11 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 48.98 ▲3.46 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 85.40 ▼7.93 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 30.95 ▼0.98 |
Other plugins /wp-admin/admin.php?page=yaycommerce-other-plugins | 3.06 | 25.03 |
Help /wp-admin/admin.php?page=yaycommerce-help | 3.06 | 23.77 |
Server storage [IO: ▲4.30MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 165 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
YayPricing - WooCommerce Dynamic Pricing & Discounts: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲81 | 14.23 ▲0.11 | 1.55 ▼0.14 | 36.17 ▼6.40 |
Dashboard /wp-admin | 2,251 ▲71 | 5.66 ▲0.06 | 96.33 ▲8.82 | 42.05 ▼2.44 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 2.05 ▲0.10 | 40.18 ▲0.05 | 37.46 ▼0.01 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.50 ▲0.33 | 680.15 ▲62.27 | 55.82 ▲1.59 |
Media Library /wp-admin/upload.php | 1,456 ▲62 | 4.19 ▼0.02 | 97.92 ▼1.24 | 44.33 ▲3.78 |
Other plugins /wp-admin/admin.php?page=yaycommerce-other-plugins | 809 | 2.06 | 27.93 | 24.90 |
Help /wp-admin/admin.php?page=yaycommerce-help | 28 | 0.41 | 0.06 | 3.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=yaycommerce-other-plugins
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class '\YayMail\YayCommerceMenu\OtherPluginsMenu' not found
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Trait 'YAYDP\\Traits\\YAYDP_Singleton' not found in wp-content/plugins/yaypricing/includes/core/sale-display/class-yaydp-sale-flash.php on line 15
- > PHP Fatal error
Trait 'YAYDP\\Traits\\YAYDP_Singleton' not found in wp-content/plugins/yaypricing/includes/class-yaydp-constants.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'YAYDP\\Abstracts\\YAYDP_Tooltip' not found in wp-content/plugins/yaypricing/includes/core/tooltip/class-yaydp-product-pricing-tooltip.php:15
- > PHP Fatal error
Uncaught Error: Class 'YAYDP\\Abstracts\\YAYDP_Tooltip' not found in wp-content/plugins/yaypricing/includes/core/tooltip/class-yaydp-cart-discount-tooltip.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/yaypricing/includes/admin/views/html-notice-require-wc.php:5
- > PHP Fatal error
Trait 'YAYDP\\Traits\\YAYDP_Singleton' not found in wp-content/plugins/yaypricing/includes/class-yaydp-ajax.php on line 13
- > PHP Fatal error
Trait 'YAYDP\\Traits\\YAYDP_Singleton' not found in wp-content/plugins/yaypricing/includes/core/shortcode/class-yaydp-shortcode-handler.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'YAYDP\\Abstracts\\YAYDP_Adjustment' not found in wp-content/plugins/yaypricing/includes/core/single-adjustment/class-yaydp-cart-discount-adjustment.php:15
- > PHP Fatal error
Uncaught Error: Class 'YAYDP\\Abstracts\\YAYDP_Adjustments' not found in wp-content/plugins/yaypricing/includes/core/adjustments/class-yaydp-checkout-fee-adjustments.php:15
- > PHP Fatal error
Uncaught Error: Class 'YAYDP\\Abstracts\\YAYDP_Adjustments' not found in wp-content/plugins/yaypricing/includes/core/adjustments/class-yaydp-product-pricing-adjustments.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=yaycommerce-help
- > Network (severe)
wp-admin/admin.php?page=yaycommerce-help - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: tiered pricing, woocommerce discount, woocommerce dynamic pricing, woocommerce bulk discounts, cart fee...
yaypricing/yaypricing.php 92% from 13 tests
The main PHP file in "YayPricing - WooCommerce Dynamic Pricing & Discounts" ver. 2.4.9.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("3.0" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected13,591 lines of code in 153 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 135 | 1,699 | 5,173 | 11,459 |
PO File | 1 | 404 | 418 | 1,008 |
CSS | 7 | 59 | 6 | 589 |
JavaScript | 7 | 36 | 863 | 509 |
JSON | 1 | 0 | 0 | 22 |
SVG | 2 | 0 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 13.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 129.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 108 | |
▷ Abstract classes | 13 | 12.04% |
▷ Concrete classes | 95 | 87.96% |
▷ Final classes | 0 | 0.00% |
Methods | 690 | |
▷ Static methods | 200 | 28.99% |
▷ Public methods | 598 | 86.67% |
▷ Protected methods | 30 | 4.35% |
▷ Private methods | 62 | 8.99% |
Functions | 176 | |
▷ Named functions | 69 | 39.20% |
▷ Anonymous functions | 107 | 60.80% |
Constants | 13 | |
▷ Global constants | 13 | 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
PNG images were not found in this plugin