Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼0.59ms] Passed 4 tests
Analyzing server-side resources used by WholeSale Products Dynamic Pricing Management WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 44.46 ▲2.29 |
Dashboard /wp-admin | 3.48 ▲0.13 | 50.55 ▼13.48 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.65 ▲1.33 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 119.17 ▲21.83 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 42.91 ▲7.50 |
WholeSale Management /wp-admin/admin.php?page=wholesale-products-dynamic-pricing-management-woocommerce | 3.37 | 32.97 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
WholeProdDynWooCommerceuserRoles |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WholeSale Products Dynamic Pricing Management WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲101 | 14.52 ▲0.17 | 1.67 ▼0.01 | 42.64 ▼1.82 |
Dashboard /wp-admin | 2,253 ▲76 | 5.54 ▼0.12 | 84.32 ▼18.64 | 83.59 ▲42.09 |
Posts /wp-admin/edit.php | 2,170 ▲70 | 2.00 ▲0.02 | 40.16 ▲2.15 | 37.15 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,753 ▲227 | 22.08 ▼1.08 | 688.15 ▼4.12 | 50.58 ▼2.96 |
Media Library /wp-admin/upload.php | 1,470 ▲67 | 4.18 ▼0.00 | 98.74 ▼2.27 | 71.57 ▲24.08 |
WholeSale Management /wp-admin/admin.php?page=wholesale-products-dynamic-pricing-management-woocommerce | 983 | 2.05 | 24.99 | 26.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- WholeProdDynWooCommerceuserRoles
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #3 (Product Edit Screen wholesale prices fields) image required
wholesale-products-dynamic-pricing-management-woocommerce/wholesale-products-dynamic-pricing-management-woocommerce.php 92% from 13 tests
The main PHP script in "WholeSale Products Dynamic Pricing Management WooCommerce" version 1.1 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "2.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,431 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 685 |
PHP | 2 | 192 | 36 | 475 |
CSS | 2 | 37 | 9 | 243 |
JavaScript | 1 | 8 | 2 | 28 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/extendwp.png | 5.75KB | 3.37KB | ▼ 41.46% |
images/wholesale-products-dynamic-pricing-management-woocommerce-pro.png | 36.50KB | 18.96KB | ▼ 48.06% |