Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲4.56MB] [CPU: ▼292.72ms] 75% from 4 tests
An overview of server-side resources used by Extend Filter Products By Price Widget
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,809.12ms on /wp-admin/admin.php?page=extend-filter-products-by-price-widget)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.43 ▲4.92 | 74.94 ▲27.73 |
Dashboard /wp-admin | 8.45 ▲5.04 | 53.79 ▲19.48 |
Posts /wp-admin/edit.php | 8.45 ▲4.81 | 60.35 ▲23.62 |
Add New Post /wp-admin/post-new.php | 10.44 ▲3.47 | 114.25 ▼1,235.80 |
Media Library /wp-admin/upload.php | 8.45 ▲5.15 | 46.10 ▲21.82 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 8.45 | 45.59 |
Extend Filter Products By Price Widget /wp-admin/admin.php?page=extend-filter-products-by-price-widget | 8.45 | 1,809.12 |
Server storage [IO: ▲3.94MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 197 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_debug_mode |
fs_gdpr |
fs_active_plugins |
fs_accounts |
Browser metrics Passed 4 tests
Checking browser requirements for Extend Filter Products By Price Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,960 ▲218 | 16.35 ▲0.71 | 8.89 ▲2.99 | 2.51 ▲0.18 |
Dashboard /wp-admin | 2,945 ▲87 | 6.17 ▲0.02 | 120.37 ▼16.88 | 171.57 ▲13.04 |
Posts /wp-admin/edit.php | 2,743 ▲52 | 3.24 ▼0.00 | 67.08 ▲5.10 | 170.26 ▲28.36 |
Add New Post /wp-admin/post-new.php | 1,649 ▼12 | 16.67 ▲0.57 | 501.03 ▲76.67 | 149.88 ▼0.82 |
Media Library /wp-admin/upload.php | 1,750 ▲52 | 5.53 ▲0.03 | 146.21 ▲2.61 | 213.33 ▲30.35 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 1,433 | 2.54 | 57.32 | 119.54 |
Extend Filter Products By Price Widget /wp-admin/admin.php?page=extend-filter-products-by-price-widget | 1,291 | 2.58 | 54.20 | 171.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 4 options
- fs_debug_mode
- fs_active_plugins
- fs_gdpr
- fs_accounts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/extend-filter-products-by-price-widget/public/partials/wc-change-filter-by-price-display-public-display.php
- > /wp-content/plugins/extend-filter-products-by-price-widget/admin/partials/wc-change-filter-by-price-display-admin-display.php
- > /wp-content/plugins/extend-filter-products-by-price-widget/freemius/templates/ajax-loader.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/extend-filter-products-by-price-widget/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/extend-filter-products-by-price-widget/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/extend-filter-products-by-price-widget/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/extend-filter-products-by-price-widget/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/extend-filter-products-by-price-widget/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/extend-filter-products-by-price-widget/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/extend-filter-products-by-price-widget/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/extend-filter-products-by-price-widget/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% 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
5 plugin tags: slider, widget, sorting, filter, woocommerce
extend-filter-products-by-price-widget/wc-change-filter-by-price-display.php 69% from 13 tests
The main PHP script in "Extend Filter Products By Price Widget" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.0.0")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 269 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("extend-filter-products-by-price-widget.php" instead of "wc-change-filter-by-price-display.php")
- 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 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin45,663 lines of code in 151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 118 | 7,234 | 16,508 | 29,969 |
PO File | 13 | 6,964 | 8,462 | 15,261 |
JavaScript | 5 | 38 | 113 | 200 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 1 | 0 | 0 | 27 |
CSS | 13 | 0 | 8 | 14 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,772)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 75.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,772.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,157 | |
▷ Static methods | 176 | 15.21% |
▷ Public methods | 811 | 70.10% |
▷ Protected methods | 15 | 1.30% |
▷ Private methods | 331 | 28.61% |
Functions | 97 | |
▷ Named functions | 97 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 123 | |
▷ Global constants | 98 | 79.67% |
▷ Class constants | 25 | 20.33% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/extend-filter-products-by-price-widget.png | 2.22KB | 1.06KB | ▼ 52.46% |