Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.07ms] Passed 4 tests
A check of server-side resources used by WholesaleX - WooCommerce Wholesale Plugin (Wholesale Prices, Dynamic Pricing, Tiered Pricing)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 33.96 ▼10.32 |
Dashboard /wp-admin | 3.34 ▲0.04 | 52.77 ▲2.73 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 51.19 ▲2.50 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 94.30 ▲4.80 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.92 ▲5.71 |
Setup Wizard /wp-admin/admin.php?page=wholesalex-setup-wizard | 3.25 | 31.74 |
Server storage [IO: ▲2.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 136 new files
Database: no new tables, 10 new options
New WordPress options |
---|
__wholesalex_single_product_db_update_v2 |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
wholesalex_settings |
can_compress_scripts |
widget_recent-comments |
wholesalex_installation_date |
_wholesalex_roles |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WholesaleX - WooCommerce Wholesale Plugin (Wholesale Prices, Dynamic Pricing, Tiered Pricing)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲51 | 14.72 ▲0.63 | 1.85 ▲0.00 | 44.41 ▼0.39 |
Dashboard /wp-admin | 2,215 ▲51 | 5.53 ▼0.03 | 89.18 ▼25.24 | 42.38 ▲4.03 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 1.95 ▲0.01 | 40.47 ▼4.99 | 37.61 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.51 ▼0.10 | 624.22 ▼71.16 | 46.99 ▲4.16 |
Media Library /wp-admin/upload.php | 1,423 ▲29 | 4.21 ▲0.03 | 95.20 ▼1.52 | 42.78 ▲1.60 |
Setup Wizard /wp-admin/admin.php?page=wholesalex-setup-wizard | 863 | 2.48 | 46.82 | 37.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 10 options in the database
- can_compress_scripts
- wholesalex_settings
- __wholesalex_single_product_db_update_v2
- db_upgraded
- _wholesalex_roles
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- wholesalex_installation_date
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (WholesaleX Dashboard), #2 (User Roles), #3 (Dynamic Rules Builder), #4 (Registration Form Builder), #5 (Product Single Rules), #6 (Product Single Frontend)
wholesalex/wholesalex.php 92% from 13 tests
The main PHP script in "WholesaleX - WooCommerce Wholesale Plugin (Wholesale Prices, Dynamic Pricing, Tiered Pricing)" version 1.2.17 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 218 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected19,751 lines of code in 119 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 2,889 | 5,578 | 17,095 |
CSS | 2 | 146 | 120 | 1,524 |
SVG | 41 | 8 | 4 | 892 |
JavaScript | 19 | 35 | 39 | 240 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 120)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 67.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 863.00 |
Average method complexity | 5.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 120.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 2 | 4.76% |
▷ Concrete classes | 40 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 618 | |
▷ Static methods | 27 | 4.37% |
▷ Public methods | 531 | 85.92% |
▷ Protected methods | 80 | 12.94% |
▷ Private methods | 7 | 1.13% |
Functions | 33 | |
▷ Named functions | 8 | 24.24% |
▷ Anonymous functions | 25 | 75.76% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 compressed PNG files occupy 0.33MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/setup-wizard/play.png | 13.99KB | 13.98KB | 0.05% |
assets/img/setup-wizard/footer_banner.png | 44.17KB | 43.85KB | ▼ 0.73% |
assets/img/layout_six.png | 13.63KB | 13.63KB | 0.03% |
assets/img/setup-wizard/intro.png | 28.02KB | 28.02KB | 0.01% |
assets/img/layout_seven.png | 12.00KB | 12.00KB | 0.00% |