Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.47ms] Passed 4 tests
An overview of server-side resources used by Wholesale Market
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.71 ▼8.73 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.60 ▲0.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.62 ▼3.88 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.75 ▼3.71 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.12 ▼1.54 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Wholesale Market
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.29 ▼1.03 | 4.73 ▲2.77 | 40.89 ▼0.70 |
Dashboard /wp-admin | 2,206 ▲15 | 5.83 ▲0.74 | 97.64 ▼10.24 | 39.44 ▼2.24 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.00 | 37.33 ▼4.08 | 32.11 ▼9.82 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.02 ▲4.71 | 601.77 ▼54.91 | 59.95 ▼3.52 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.28 ▲0.04 | 98.10 ▼0.38 | 42.18 ▼0.88 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
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 no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wholesale-market/addons/wholesale-request/widgets/wholesale-request-widgets.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: woocommerce, wholesale customer, woocommerce wholesale, wholesale prices, woocommerce wholesale pricing...
wholesale-market/wholesale-market.php 92% from 13 tests
The entry point to "Wholesale Market" version 2.2.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 173 characters long)
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
Good job! No executable or dangerous file extensions detected6,345 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 610 | 1,274 | 3,750 |
CSS | 10 | 97 | 40 | 1,448 |
JavaScript | 9 | 80 | 16 | 653 |
PO File | 1 | 209 | 272 | 494 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 20.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 155 | |
▷ Static methods | 14 | 9.03% |
▷ Public methods | 153 | 98.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.29% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
7 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cross.png | 1.74KB | 1.79KB | 0.00% |
assets/images/cedcommerce.png | 2.21KB | 1.28KB | ▼ 42.26% |
addons/wholesale-request/assets/images/cancel.png | 0.55KB | 0.31KB | ▼ 44.19% |
assets/images/promotional.png | 48.11KB | 19.02KB | ▼ 60.47% |
addons/wholesale-request/assets/images/accept.png | 0.77KB | 0.53KB | ▼ 31.82% |