Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼7.22ms] Passed 4 tests
A check of server-side resources used by User Avatar For Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▼0.60 | 20.63 ▼23.01 |
Dashboard /wp-admin | 3.34 ▲0.03 | 51.12 ▼2.35 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.33 ▲1.26 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 98.39 ▲5.20 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.76 ▼4.76 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
avatar_woocommerce_impostazioni |
Browser metrics Passed 4 tests
An overview of browser requirements for User Avatar For Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,461 ▼300 | 14.66 ▲0.40 | 0.47 ▼1.48 | 23.08 ▼22.14 |
Dashboard /wp-admin | 2,208 ▲28 | 5.65 ▼0.02 | 91.60 ▼8.91 | 43.07 ▲1.31 |
Posts /wp-admin/edit.php | 2,116 ▲19 | 2.02 ▲0.01 | 40.17 ▲3.16 | 34.74 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.21 ▲0.29 | 617.41 ▼69.49 | 62.28 ▲7.90 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.18 ▲0.02 | 106.07 ▼6.01 | 47.57 ▼1.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- avatar_woocommerce_impostazioni
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/user-avatar-for-woocommerce/user-avatar-for-woocommerce.php:98
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: avatar, woocommerce, picture profile
user-avatar-for-woocommerce/user-avatar-for-woocommerce.php 92% from 13 tests
The entry point to "User Avatar For Woocommerce" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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 plugin586 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 127 | 210 | 461 |
PO File | 2 | 30 | 34 | 125 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin