Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.72ms] Passed 4 tests
This is a short check of server-side resources used by PW WooCommerce Affiliates
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 41.44 ▲2.41 |
Dashboard /wp-admin | 3.42 ▲0.07 | 48.04 ▼10.52 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 51.60 ▲4.76 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 81.27 ▼9.42 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.31 ▲2.64 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 54 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_pimwick_affiliate |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
PW WooCommerce Affiliates: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.10 ▼0.25 | 2.13 ▲0.43 | 46.10 ▲5.49 |
Dashboard /wp-admin | 2,195 ▲15 | 5.59 ▼0.07 | 80.53 ▼7.87 | 34.01 ▼6.60 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.05 | 39.03 ▲3.95 | 36.59 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.17 ▲0.26 | 677.74 ▼22.92 | 52.11 ▼9.08 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▲0.08 | 99.51 ▼3.67 | 45.58 ▲0.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_pimwick_affiliate
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: referrals, pimwick, affiliates, woocommerce
pw-woocommerce-affiliates/pw-affiliates.php 85% from 13 tests
Analyzing the main PHP file in "PW WooCommerce Affiliates" version 1.42
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pw-woocommerce-affiliates.php" instead of "pw-affiliates.php")
- Requires at least: Required version must be the same as 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 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected3,554 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 383 | 244 | 1,485 |
PO File | 6 | 546 | 631 | 1,430 |
JavaScript | 4 | 73 | 8 | 342 |
CSS | 3 | 63 | 5 | 297 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 26.67 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 2 | 66.67% |
Methods | 53 | |
▷ Static methods | 2 | 3.77% |
▷ Public methods | 52 | 98.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.89% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
15 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
admin/assets/images/pimwick.png | 2.74KB | 2.49KB | ▼ 9.09% |
assets/css/images/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
assets/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
assets/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |