Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.48MB] [CPU: ▲8.79ms] 75% from 4 tests
An overview of server-side resources used by Whols - WooCommerce Wholesale Prices and WooCommerce B2B Store Solution
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 2,162.57ms on /wp-admin/admin.php?page=whols_recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.95 ▲1.48 | 47.94 ▲8.27 |
Dashboard /wp-admin | 4.78 ▲1.48 | 52.54 ▲4.96 |
Posts /wp-admin/edit.php | 4.90 ▲1.54 | 60.20 ▲12.30 |
Add New Post /wp-admin/post-new.php | 7.36 ▲1.48 | 101.00 ▲12.99 |
Media Library /wp-admin/upload.php | 4.70 ▲1.48 | 43.45 ▲9.64 |
Recommendations /wp-admin/admin.php?page=whols_recommendations | 9.08 | 2,162.57 |
Server storage [IO: ▲2.00MB] [DB: ▲0.70MB] 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, 8 new options
New WordPress options |
---|
whols_version |
whols_installed |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Whols - WooCommerce Wholesale Prices and WooCommerce B2B Store Solution: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲61 | 14.31 ▼0.04 | 1.89 ▼0.02 | 41.96 ▲0.51 |
Dashboard /wp-admin | 2,203 ▲23 | 5.62 ▲0.01 | 85.44 ▼2.46 | 39.43 ▼0.40 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 1.95 ▼0.06 | 39.50 ▲2.37 | 39.95 ▲6.00 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.18 ▲0.07 | 609.25 ▼17.90 | 50.36 ▼1.71 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.27 ▲0.04 | 98.99 ▼3.76 | 42.47 ▼1.45 |
Recommendations /wp-admin/admin.php?page=whols_recommendations | 1,319 | 2.18 | 25.97 | 31.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.70MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- whols_installed
- theysaidso_admin_options
- whols_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'CSF_Fields' not found in wp-content/plugins/whols/includes/Admin/CSF_Field_whols_image.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function Whols\\add_action() in wp-content/plugins/whols/includes/Email_Notifications.php:13
- > 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 97% 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
Please fix the following attributes:
- Screenshots: Please describe screenshot #10 in whols/assets to your readme.txt
whols/whols.php Passed 13 tests
The main PHP script in "Whols - WooCommerce Wholesale Prices and WooCommerce B2B Store Solution" version 1.2.8 is automatically included on every request by WordPress
134 characters long description:
This plugin provides all the necessary features that you will ever need to sell wholesale products from your WooCommerce online store.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected38,017 lines of code in 161 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 107 | 4,068 | 2,387 | 17,832 |
PO File | 20 | 3,197 | 3,594 | 6,490 |
Sass | 15 | 952 | 3 | 4,803 |
CSS | 8 | 318 | 497 | 4,632 |
JavaScript | 9 | 1,325 | 424 | 4,258 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 23.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 6.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 80 | |
▷ Abstract classes | 2 | 2.50% |
▷ Concrete classes | 78 | 97.50% |
▷ Final classes | 1 | 1.28% |
Methods | 350 | |
▷ Static methods | 45 | 12.86% |
▷ Public methods | 347 | 99.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 0.86% |
Functions | 47 | |
▷ Named functions | 46 | 97.87% |
▷ Anonymous functions | 1 | 2.13% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
9 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/Admin/recommended-plugins/assets/images/extensions/hashbar-pro.png | 4.01KB | 2.16KB | ▼ 46.22% |
includes/Admin/recommended-plugins/assets/images/extensions/just-tables-pro.png | 1.02KB | 1.05KB | 0.00% |
assets/images/woolentor-logo.png | 8.23KB | 8.96KB | 0.00% |
includes/Admin/recommended-plugins/assets/images/extensions/email-candy-pro.png | 5.27KB | 2.53KB | ▼ 52.04% |
includes/Admin/recommended-plugins/assets/images/extensions/wc-builder-pro.png | 15.60KB | 10.08KB | ▼ 35.39% |