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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.44ms] Passed 4 tests
Analyzing server-side resources used by Dynamic Pricing & Discounts Lite for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 42.28 ▼0.15 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.72 ▼4.82 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.03 ▼2.93 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.73 ▼1.78 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.90 ▼0.22 |
Server storage [IO: ▲1.75MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 92 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dynamic Pricing & Discounts Lite for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.40 ▼0.99 | 4.34 ▲2.49 | 42.37 ▼3.45 |
Dashboard /wp-admin | 2,225 ▲37 | 6.07 ▲0.26 | 97.98 ▼8.88 | 41.02 ▼0.63 |
Posts /wp-admin/edit.php | 2,105 ▲19 | 2.04 ▲0.01 | 35.72 ▼3.50 | 34.51 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,560 ▲22 | 18.03 ▼5.45 | 593.99 ▼58.32 | 70.79 ▲4.32 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.17 ▼0.06 | 97.53 ▲0.54 | 41.43 ▲0.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 34× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-dynamic-pricing-discounts-lite/admin/partials/rtwwdpdl_subtabs/rtwwdpdl_variation_rule.php:160
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-dynamic-pricing-discounts-lite/admin/partials/rtwwdpdl_tabs/rtwwdpdl_pro_section.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/woo-dynamic-pricing-discounts-lite/admin/partials/rtwwdpdl_subtabs/rtwwdpdl_cate_rule.php:349
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/woo-dynamic-pricing-discounts-lite/admin/partials/rtwwdpdl_subtabs/rtwwdpdl_prod_rule.php:356
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-dynamic-pricing-discounts-lite/admin/partials/rtwwdpdl_subtabs/rtwwdpdl_tiered_cat.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-dynamic-pricing-discounts-lite/admin/partials/rtwwdpdl_subtabs/rtwwdpdl_least_amt_pro.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-dynamic-pricing-discounts-lite/admin/partials/rtwwdpdl_subtabs/rtwwdpdl_nth_order.php:1
- > PHP Fatal error
Uncaught Error: Class 'RTWWDPDL_Module_Base' not found in wp-content/plugins/woo-dynamic-pricing-discounts-lite/public/classes/modules/rtwwdpdl-class-adv-base.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-dynamic-pricing-discounts-lite/admin/partials/rtwwdpdl_subtabs/rtwwdpdl_shipping_method.php:2
- > PHP Fatal error
Uncaught Error: Class 'RTWWDPDL_Adjustment_Set' not found in wp-content/plugins/woo-dynamic-pricing-discounts-lite/public/classes/rtwwdpdl-class-adj-set-category.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 15 tag instead of maximum 10
- Screenshots: Screenshot #1 (Product Discount Rule.) image missing
woo-dynamic-pricing-discounts-lite/dynamic-pricing-discounts-lite-for-woocommerce.php 77% from 13 tests
"Dynamic Pricing & Discounts Lite for WooCommerce" version 1.6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.0.0" instead of "3.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("woo-dynamic-pricing-discounts-lite.php" instead of "dynamic-pricing-discounts-lite-for-woocommerce.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin23,243 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 963 | 930 | 12,642 |
CSS | 9 | 1,118 | 68 | 9,380 |
JavaScript | 9 | 85 | 45 | 1,221 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 312)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 54.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 404.00 |
Average method complexity | 11.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 312.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 3 | 18.75% |
▷ Concrete classes | 13 | 81.25% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 11 | 13.41% |
▷ Public methods | 72 | 87.80% |
▷ Protected methods | 4 | 4.88% |
▷ Private methods | 6 | 7.32% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
18 PNG files occupy 0.19MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/special-offer.png | 24.89KB | 10.91KB | ▼ 56.17% |
assets/Datatables/images/dragndropp.png | 0.53KB | 0.40KB | ▼ 24.63% |
assets/Datatables/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/Datatables/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/images/trending-offer.png | 87.41KB | 25.57KB | ▼ 70.75% |