Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲4.98MB] [CPU: ▲25.46ms] 75% from 4 tests
This is a short check of server-side resources used by Dynamic Pricing for WooCommerce
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 1,777.40ms on /wp-admin/admin.php?page=livemesh-dynamic-pricing)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.87 ▲5.41 | 72.66 ▲30.70 |
Dashboard /wp-admin | 8.89 ▲5.59 | 69.93 ▲20.14 |
Posts /wp-admin/edit.php | 8.89 ▲5.54 | 85.17 ▲34.31 |
Add New Post /wp-admin/post-new.php | 9.25 ▲3.36 | 110.52 ▲16.94 |
Media Library /wp-admin/upload.php | 8.89 ▲5.67 | 65.64 ▲34.04 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.89 | 57.59 |
Dynamic Pricing for WooCommerce /wp-admin/admin.php?page=livemesh-dynamic-pricing | 8.89 | 1,777.40 |
Server storage [IO: ▲3.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 269 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_active_plugins |
fs_accounts |
widget_theysaidso_widget |
fs_debug_mode |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Dynamic Pricing for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 14.48 ▲0.12 | 1.81 ▲0.12 | 32.59 ▼6.94 |
Dashboard /wp-admin | 2,224 ▲33 | 5.83 ▼0.10 | 109.41 ▲9.73 | 46.81 ▲3.39 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.02 ▲0.01 | 36.01 ▼9.37 | 38.07 ▲2.61 |
Add New Post /wp-admin/post-new.php | 1,523 ▲4 | 22.78 ▼0.28 | 672.20 ▲16.27 | 63.54 ▲4.52 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.23 ▲0.00 | 99.30 ▲0.99 | 43.79 ▼2.86 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,065 | 2.05 | 24.17 | 27.29 |
Dynamic Pricing for WooCommerce /wp-admin/admin.php?page=livemesh-dynamic-pricing | 975 | 1.71 | 25.59 | 53.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
- > Notice in wp-content/plugins/livemesh-dynamic-pricing/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- fs_accounts
- fs_active_plugins
- fs_debug_mode
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 8× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: condition_type in wp-content/plugins/livemesh-dynamic-pricing/includes/admin/single-product/views/html-product-data-pricing-rule.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/livemesh-dynamic-pricing/includes/admin/views/pricing-methods/bulk-pricing-row.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/livemesh-dynamic-pricing/includes/admin/single-product/views/html-product-data-pricing-rule.php:22
- > PHP Notice
Undefined variable: condition_type in wp-content/plugins/livemesh-dynamic-pricing/includes/admin/single-product/views/html-product-data-pricing-rule.php on line 10
- > PHP Notice
Undefined variable: condition_type in wp-content/plugins/livemesh-dynamic-pricing/includes/admin/single-product/views/html-product-data-pricing-rule.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function ldp_parse_args() in wp-content/plugins/livemesh-dynamic-pricing/includes/admin/single-product/views/pricing-methods/bulk-pricing-row.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/livemesh-dynamic-pricing/includes/admin/single-product/views/html-product-data-pricing.php:5
- > PHP Notice
Undefined variable: condition_type in wp-content/plugins/livemesh-dynamic-pricing/includes/admin/single-product/views/html-product-data-pricing-rule.php on line 19
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
5 plugin tags: dynamic pricing, woocommerce discounts, woocommerce dynamic pricing, conditional pricing, woocommerce
livemesh-dynamic-pricing/livemesh-dynamic-pricing.php 77% from 13 tests
Analyzing the main PHP file in "Dynamic Pricing for WooCommerce" version 1.2.1
Please take the time to fix the following:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
- Requires at least: The required version number must match the one declared in readme.txt ("5.5" instead of "5.2")
- Domain Path: The domain path must begin with a forward slash character ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin39,427 lines of code in 217 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 183 | 9,103 | 18,261 | 37,175 |
CSS | 17 | 16 | 18 | 557 |
JavaScript | 9 | 125 | 106 | 514 |
PO File | 1 | 234 | 392 | 504 |
Sass | 2 | 58 | 7 | 429 |
Markdown | 1 | 68 | 0 | 214 |
SVG | 4 | 0 | 3 | 34 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 51.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 92 | |
▷ Abstract classes | 3 | 3.26% |
▷ Concrete classes | 89 | 96.74% |
▷ Final classes | 1 | 1.12% |
Methods | 1,478 | |
▷ Static methods | 198 | 13.40% |
▷ Public methods | 1,081 | 73.14% |
▷ Protected methods | 17 | 1.15% |
▷ Private methods | 380 | 25.71% |
Functions | 112 | |
▷ Named functions | 112 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 154 | |
▷ Global constants | 107 | 69.48% |
▷ Class constants | 47 | 30.52% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/livemesh-dynamic-pricing.png | 27.35KB | 8.66KB | ▼ 68.36% |