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: ▲2.40MB] [CPU: ▼130.34ms] Passed 4 tests
Server-side resources used by Price Bands for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.55 ▲2.71 | 49.38 ▲11.85 |
Dashboard /wp-admin | 5.57 ▲2.51 | 62.50 ▲4.81 |
Posts /wp-admin/edit.php | 5.57 ▲2.46 | 58.24 ▲4.57 |
Add New Post /wp-admin/post-new.php | 7.50 ▲2.07 | 112.22 ▼542.59 |
Media Library /wp-admin/upload.php | 5.57 ▲2.56 | 48.68 ▲12.05 |
Upgrade ➤ /wp-admin/edit.php?post_type=pbfwc_price_band&page=price-bands-for-woocommerce-pricing | 5.57 | 38.03 |
Contact Us /wp-admin/edit.php?post_type=pbfwc_price_band&page=price-bands-for-woocommerce-contact | 5.57 | 33.16 |
Freemius Debug [v.1.2.4] /wp-admin/admin.php?page=freemius | 5.57 | 46.03 |
Server storage [IO: ▲1.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 182 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_active_plugins |
fs_accounts |
fs_api_cache |
fs_debug_mode |
fs_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Price Bands for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲151 | 15.87 ▲0.14 | 8.99 ▼2.05 | 48.19 ▼5.34 |
Dashboard /wp-admin | 2,990 ▲60 | 5.91 ▼0.06 | 148.63 ▼25.08 | 108.09 ▼3.26 |
Posts /wp-admin/edit.php | 2,762 ▲23 | 2.71 ▼0.13 | 71.11 ▲4.33 | 92.87 ▼5.16 |
Add New Post /wp-admin/post-new.php | 1,596 ▲88 | 17.49 ▼2.83 | 454.26 ▲36.20 | 117.98 ▲5.01 |
Media Library /wp-admin/upload.php | 1,828 ▲21 | 5.01 ▼0.03 | 190.62 ▲42.57 | 148.67 ▲26.82 |
Upgrade ➤ /wp-admin/edit.php?post_type=pbfwc_price_band&page=price-bands-for-woocommerce-pricing | 28 | 0.90 | 0.34 | 11.46 |
Contact Us /wp-admin/edit.php?post_type=pbfwc_price_band&page=price-bands-for-woocommerce-contact | 28 | 0.90 | 0.40 | 10.03 |
Freemius Debug [v.1.2.4] /wp-admin/admin.php?page=freemius | 1,457 | 2.12 | 55.36 | 85.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 5 options in the database
- fs_options
- fs_accounts
- fs_active_plugins
- fs_debug_mode
- fs_api_cache
Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/price-bands-for-woocommerce/freemius/templates/ajax-loader.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=pbfwc_price_band&page=price-bands-for-woocommerce-pricing
- > Network (severe)
wp-admin/edit.php?post_type=pbfwc_price_band&page=price-bands-for-woocommerce-pricing - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/edit.php?post_type=pbfwc_price_band&page=price-bands-for-woocommerce-contact
- > Network (severe)
wp-admin/edit.php?post_type=pbfwc_price_band&page=price-bands-for-woocommerce-contact - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
price-bands-for-woocommerce/price-bands-for-woocommerce.php 69% from 13 tests
This is the main PHP file of "Price Bands for WooCommerce" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Description: Please don't use more than 140 characters for the plugin description (currently 236 characters long)
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin27,842 lines of code in 143 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 96 | 4,616 | 10,869 | 19,087 |
PO File | 6 | 2,778 | 3,058 | 6,111 |
Sass | 21 | 345 | 76 | 2,159 |
Markdown | 2 | 68 | 0 | 214 |
JavaScript | 3 | 34 | 59 | 194 |
YAML | 2 | 2 | 0 | 28 |
JSON | 1 | 0 | 0 | 27 |
CSS | 12 | 1 | 0 | 22 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,332)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 45.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,332.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 804 | |
▷ Static methods | 125 | 15.55% |
▷ Public methods | 608 | 75.62% |
▷ Protected methods | 14 | 1.74% |
▷ Private methods | 182 | 22.64% |
Functions | 87 | |
▷ Named functions | 87 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 105 | |
▷ Global constants | 85 | 80.95% |
▷ Class constants | 20 | 19.05% |
▷ Public constants | 20 | 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/price-bands-for-woocommerce.png | 4.59KB | 2.45KB | ▼ 46.59% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |