Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.79ms] Passed 4 tests
A check of server-side resources used by PW WooCommerce BOGO
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 34.79 ▼2.56 |
Dashboard /wp-admin | 3.38 ▲0.04 | 47.04 ▼11.09 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 49.29 ▼1.38 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 95.28 ▼8.11 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.04 ▲1.56 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
PW WooCommerce BOGO: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲3 | 14.41 ▼0.30 | 1.85 ▼0.05 | 36.22 ▼4.19 |
Dashboard /wp-admin | 2,198 ▲20 | 5.62 ▼0.31 | 93.45 ▼25.13 | 42.62 ▼3.84 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▲0.00 | 39.41 ▼4.35 | 36.86 ▼0.91 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.11 ▼0.35 | 571.46 ▼125.52 | 56.24 ▼16.26 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.20 ▲0.04 | 96.90 ▼3.34 | 40.89 ▼1.49 |
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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: pimwick, products, sale, discount, utilities...
pw-woocommerce-bogo-free/pw-woocommerce-bogo-free.php 92% from 13 tests
"PW WooCommerce BOGO" version 2.48's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.5" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected496 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 106 | 56 | 452 |
CSS | 2 | 10 | 0 | 44 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 31 | |
▷ Static methods | 5 | 16.13% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pimwick-icon-120x120.png | 3.89KB | 1.99KB | ▼ 48.71% |