Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.39ms] Passed 4 tests
This is a short check of server-side resources used by Variation Price Display Range for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 36.80 ▼2.55 |
Dashboard /wp-admin | 3.34 ▼0.01 | 49.02 ▼16.19 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.47 ▲3.39 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.91 ▼1.89 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.01 ▲3.06 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Variation Price Display Range for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲76 | 14.34 ▼0.01 | 1.58 ▼0.03 | 36.80 ▼6.76 |
Dashboard /wp-admin | 2,203 ▲26 | 5.63 ▲0.02 | 90.94 ▼7.12 | 41.58 ▼4.64 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.01 ▲0.07 | 41.87 ▲2.46 | 36.52 ▲1.28 |
Add New Post /wp-admin/post-new.php | 1,539 ▲9 | 23.29 ▲0.15 | 587.20 ▼94.48 | 52.76 ▼7.88 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.21 ▲0.01 | 95.97 ▼4.09 | 41.15 ▼2.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/variation-price-display/includes/class-variation-price-display.php
- > /wp-content/plugins/variation-price-display/variation-price-display.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/variation-price-display/includes/setting-tab/advanced.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/variation-price-display/includes/layout.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/variation-price-display/includes/setting-tab/general.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
10 plugin tags: woocommerce variation price, price range, price display, woocommerce show from price, woocommerce remove price range...
variation-price-display/variation-price-display.php Passed 13 tests
"Variation Price Display Range for WooCommerce" version 1.3.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
106 characters long description:
Adds lots of advanced options to control how you display the price for your WooCommerce variable products.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,758 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 432 | 196 | 1,402 |
CSS | 7 | 40 | 18 | 217 |
JavaScript | 5 | 62 | 35 | 139 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 28.83 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 25 | 42.37% |
▷ Public methods | 59 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin