Benchmarks
Plugin footprint 47% 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.55MB] [CPU: ▼1.15ms] 75% from 4 tests
A check of server-side resources used by Premmerce Wholesale Pricing for WooCommerce
Please fix the following
- CPU: You should keep total CPU usage under 500.00ms (currently 1,756.06ms on /wp-admin/admin.php?page=premmerce-woocommerce-wholesale-pricing)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 41.01 ▼2.34 |
Dashboard /wp-admin | 3.91 ▲0.61 | 52.42 ▲5.50 |
Posts /wp-admin/edit.php | 3.96 ▲0.61 | 54.72 ▲6.95 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.55 | 87.15 ▼13.80 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 40.98 ▲6.04 |
Premmerce Wholesale Pricing for WooCommerce /wp-admin/admin.php?page=premmerce-woocommerce-wholesale-pricing | 4.18 | 1,756.06 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.00 | 40.09 |
Prices /wp-admin/admin.php?page=premmerce-price-types | 3.69 | 38.59 |
Server storage [IO: ▲3.27MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 224 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_premmerce_price_types_roles |
wp_premmerce_price_types |
New WordPress options |
---|
widget_recent-comments |
fs_accounts |
widget_theysaidso_widget |
fs_active_plugins |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
fs_debug_mode |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Premmerce Wholesale Pricing for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲112 | 13.30 ▼1.39 | 1.71 ▼0.76 | 32.07 ▼16.48 |
Dashboard /wp-admin | 2,273 ▲81 | 5.80 ▲0.82 | 98.34 ▼14.63 | 43.45 ▼6.41 |
Posts /wp-admin/edit.php | 2,157 ▲68 | 2.05 ▲0.04 | 40.15 ▲3.15 | 39.43 ▲8.42 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 18.44 ▼0.06 | 651.07 ▲46.93 | 60.74 ▲1.57 |
Media Library /wp-admin/upload.php | 1,460 ▲75 | 4.12 ▼0.09 | 101.80 ▲2.17 | 43.77 ▲0.53 |
Premmerce Wholesale Pricing for WooCommerce /wp-admin/admin.php?page=premmerce-woocommerce-wholesale-pricing | 1,014 | 1.69 | 27.21 | 56.61 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,112 | 1.70 | 26.78 | 31.47 |
Prices /wp-admin/admin.php?page=premmerce-price-types | 1,100 | 2.18 | 37.03 | 32.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/premmerce-woocommerce-wholesale-pricing/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure failed, leaving 2 tables in the database
- wp_premmerce_price_types_roles
- wp_premmerce_price_types
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-posts
- fs_accounts
- widget_theysaidso_widget
- fs_active_plugins
- can_compress_scripts
- fs_debug_mode
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/premmerce-woocommerce-wholesale-pricing/src/Admin/PriceTypesTable.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: wholesale prices, custom prices, woocommerce custom prices, custom product prices, woocommerce wholesale pricing
premmerce-woocommerce-wholesale-pricing/premmerce-price-types.php 69% from 13 tests
This is the main PHP file of "Premmerce Wholesale Pricing for WooCommerce" version 1.1.10, 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:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: Required version does not match the one declared in readme.txt ("4.8" instead of "3.0.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("premmerce-woocommerce-wholesale-pricing.php" instead of "premmerce-price-types.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 177 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected35,556 lines of code in 175 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 148 | 8,466 | 18,178 | 34,808 |
Markdown | 3 | 129 | 0 | 326 |
JavaScript | 5 | 38 | 59 | 215 |
PO File | 2 | 63 | 86 | 130 |
JSON | 2 | 0 | 0 | 60 |
CSS | 15 | 0 | 0 | 17 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 75.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 2 | 3.28% |
▷ Concrete classes | 59 | 96.72% |
▷ Final classes | 0 | 0.00% |
Methods | 1,394 | |
▷ Static methods | 218 | 15.64% |
▷ Public methods | 970 | 69.58% |
▷ Protected methods | 23 | 1.65% |
▷ Private methods | 401 | 28.77% |
Functions | 108 | |
▷ Named functions | 101 | 93.52% |
▷ Anonymous functions | 7 | 6.48% |
Constants | 153 | |
▷ Global constants | 98 | 64.05% |
▷ Class constants | 55 | 35.95% |
▷ Public constants | 55 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB 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/premmerce-woocommerce-wholesale-pricing.png | 9.50KB | 5.07KB | ▼ 46.67% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |