Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.70ms] Passed 4 tests
A check of server-side resources used by Affiliates WooCommerce Light
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.68 ▲0.83 |
Dashboard /wp-admin | 3.39 ▲0.08 | 47.28 ▲1.14 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.81 ▲2.74 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 82.88 ▼11.13 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.10 ▲2.36 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Affiliates WooCommerce Light
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲107 | 13.24 ▼1.50 | 1.73 ▼0.20 | 41.07 ▼1.68 |
Dashboard /wp-admin | 2,220 ▲32 | 5.85 ▲0.94 | 101.33 ▼40.34 | 43.42 ▲1.12 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.05 ▲0.03 | 39.42 ▼2.59 | 36.89 ▼1.89 |
Add New Post /wp-admin/post-new.php | 1,531 ▼12 | 17.85 ▼4.94 | 683.72 ▲82.64 | 70.74 ▲7.20 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.21 ▼0.03 | 101.27 ▼2.03 | 41.42 ▼1.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- 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
The smoke test was a success, however most plugin functionality was not tested
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Referral rate setting - Here, a referral rate set at 0.25 credits affiliates with 25% commissions on sales.), #2 (Referrals created automatically for sales - Each referral is linked to its order.)
- Tags: Please reduce the number of tags, currently 31 tag instead of maximum 10
affiliates-woocommerce-light/affiliates-woocommerce-light.php 85% from 13 tests
Analyzing the main PHP file in "Affiliates WooCommerce Light" version 2.1.0
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)
- Requires at least: The required version number must match the one declared in readme.txt ("6.0" instead of "7.4")
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
Everything looks great! No dangerous files found in this plugin448 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 45 | 181 | 347 |
PO File | 1 | 18 | 23 | 101 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 77.00 |
▷ Minimum class complexity | 77.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 7.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 12 | |
▷ Static methods | 12 | 100.00% |
▷ Public methods | 12 | 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 | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 40.07KB | 15.03KB | ▼ 62.49% |
screenshot-1.png | 12.10KB | 5.61KB | ▼ 53.61% |