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.01MB] [CPU: ▼3.50ms] Passed 4 tests
A check of server-side resources used by WooCommerce Bulk Discount
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.14 ▼3.17 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.94 ▼4.44 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 50.20 ▲2.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.23 ▼9.26 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.46 ▲4.94 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Bulk Discount
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 13.15 ▼1.43 | 5.18 ▲3.33 | 45.96 ▲2.57 |
Dashboard /wp-admin | 2,206 ▲15 | 4.86 ▼0.05 | 98.82 ▼18.05 | 38.84 ▼5.20 |
Posts /wp-admin/edit.php | 2,092 ▲24 | 2.01 ▼0.03 | 39.91 ▲3.29 | 36.74 ▲3.07 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.17 ▲0.31 | 668.49 ▲10.27 | 51.60 ▲1.61 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.29 ▲0.10 | 97.79 ▼2.81 | 43.80 ▼3.13 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Bulk Discount Settings page.), #2 (Setting the discount lines (see FAQ for further explanation). Often only one discount line is sufficient.), #3 (Showing an example of flat bulk discount visibility on the cart page.), #4 (Bulk discount is visible on the Checkout Page as well.), #5 (Bulk Discount is visible in WooCommerce e-mails.), #6 (Example of percentage bulk discount visibility on the cart page.)
woocommerce-bulk-discount/woocommerce-bulk-discount.php 92% from 13 tests
"WooCommerce Bulk Discount" version 3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.7.0")
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
Everything looks great! No dangerous files found in this plugin943 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 198 | 157 | 695 |
PO File | 2 | 78 | 98 | 227 |
CSS | 2 | 5 | 0 | 21 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 156.00 |
▷ Minimum class complexity | 156.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 5.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 68.57% |
▷ Protected methods | 11 | 31.43% |
▷ 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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.27MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-6.png | 34.96KB | 11.08KB | ▼ 68.32% |
screenshot-4.png | 38.22KB | 12.60KB | ▼ 67.03% |
screenshot-2.png | 35.92KB | 14.49KB | ▼ 59.67% |
screenshot-3.png | 35.96KB | 12.09KB | ▼ 66.39% |
screenshot-5.png | 38.86KB | 17.48KB | ▼ 55.01% |