Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.10ms] Passed 4 tests
An overview of server-side resources used by YITH WooCommerce Affiliates
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.29 ▼4.71 |
Dashboard /wp-admin | 3.33 ▼0.01 | 46.53 ▼8.38 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 40.95 ▼6.14 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.78 ▼9.15 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 31.61 ▼3.50 |
Server storage [IO: ▲9.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 508 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
yit_recently_activated |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by YITH WooCommerce Affiliates
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲9 | 14.54 ▲0.29 | 1.85 ▼0.14 | 43.68 ▼0.72 |
Dashboard /wp-admin | 2,198 ▲18 | 5.56 ▼0.09 | 86.80 ▼7.63 | 39.60 ▼1.94 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.00 ▲0.02 | 36.96 ▼1.80 | 36.86 ▼2.63 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.53 ▲0.28 | 653.62 ▼40.93 | 51.93 ▼0.62 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▼0.07 | 100.48 ▲0.50 | 41.65 ▼4.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- yit_recently_activated
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 30 tag instead of maximum 10
yith-woocommerce-affiliates/init.php 77% from 13 tests
The main PHP file in "YITH WooCommerce Affiliates" ver. 3.1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("yith-woocommerce-affiliates.php" instead of "init.php")
- Description: Keep the plugin description shorter than 140 characters (currently 392 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("6.2" instead of "8.1")
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
There were no executable files found in this plugin102,125 lines of code in 434 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 304 | 7,612 | 19,334 | 32,347 |
JavaScript | 71 | 3,358 | 3,563 | 31,003 |
PO File | 13 | 10,584 | 22,712 | 23,194 |
CSS | 23 | 1,705 | 1,002 | 12,375 |
SVG | 21 | 4 | 1 | 3,142 |
XML | 1 | 12 | 9 | 40 |
JSON | 1 | 0 | 0 | 24 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 30.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 84.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 4 | |
Classes | 113 | |
▷ Abstract classes | 8 | 7.08% |
▷ Concrete classes | 105 | 92.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,509 | |
▷ Static methods | 292 | 19.35% |
▷ Public methods | 1,312 | 86.94% |
▷ Protected methods | 175 | 11.60% |
▷ Private methods | 22 | 1.46% |
Functions | 210 | |
▷ Named functions | 176 | 83.81% |
▷ Anonymous functions | 34 | 16.19% |
Constants | 26 | |
▷ Global constants | 22 | 84.62% |
▷ Class constants | 4 | 15.38% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
29 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-fw/assets/images/sleep.png | 0.11KB | 0.11KB | ▼ 5.13% |
plugin-fw/assets/css/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png | 0.07KB | 0.08KB | 0.00% |
plugin-fw/assets/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
plugin-fw/assets/css/jquery-ui/images/ui-icons_cd0a0a_256x240.png | 3.69KB | 4.18KB | 0.00% |
plugin-fw/assets/css/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.09KB | 0.14KB | 0.00% |