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
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.98ms] Passed 4 tests
Server-side resources used by One User Avatar | User Profile Picture
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 37.96 ▲3.30 |
Dashboard /wp-admin | 3.41 ▲0.07 | 49.61 ▼13.17 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 50.28 ▲3.11 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 78.61 ▼9.16 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.53 ▲3.45 |
Settings /wp-admin/admin.php?page=one-user-avatar | 3.43 | 42.27 |
Library /wp-admin/admin.php?page=wp-user-avatar-library | 3.43 | 48.49 |
Server storage [IO: ▲0.47MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 22 new options
New WordPress options |
---|
wp_user_avatar_disable_gravatar |
wp_user_avatar_force_file_uploader |
wp_user_avatar_resize_upload |
wp_user_avatar_resize_crop |
wp_user_avatar_upload_size_limit |
wp_user_avatar_edit_avatar |
avatar_default_wp_user_avatar |
can_compress_scripts |
widget_recent-comments |
wp_user_avatar_allow_upload |
... |
Browser metrics Passed 4 tests
One User Avatar | User Profile Picture: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 14.22 ▼0.13 | 1.71 ▲0.11 | 40.46 ▼4.54 |
Dashboard /wp-admin | 2,238 ▲60 | 5.74 ▲0.16 | 83.88 ▼16.98 | 81.32 ▲37.59 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.00 ▼0.01 | 35.64 ▼0.40 | 32.91 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,702 ▲176 | 22.19 ▼0.80 | 658.79 ▲49.06 | 56.99 ▲6.73 |
Media Library /wp-admin/upload.php | 1,441 ▲38 | 4.20 ▼0.00 | 96.00 ▲1.57 | 77.06 ▲31.41 |
Settings /wp-admin/admin.php?page=one-user-avatar | 1,325 | 3.12 | 44.89 | 64.96 |
Library /wp-admin/admin.php?page=wp-user-avatar-library | 1,306 | 3.31 | 39.98 | 70.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- wp_user_avatar_disable_um_avatars
- widget_recent-comments
- widget_wp_user_avatar_profile
- wp_user_avatar_force_file_uploader
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Please fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/one-user-avatar/uninstall.php
- > /wp-content/plugins/one-user-avatar/one-user-avatar.php
- > /wp-content/plugins/one-user-avatar/includes/wpua-tinymce-window.php
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/one-user-avatar/includes/wpua-media-page.php on line 43
- > PHP Fatal error
Uncaught Error: Class 'One_User_Avatar' not found in wp-content/plugins/one-user-avatar/includes/class-wp-user-avatar-setup.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/one-user-avatar/includes/class-wp-user-avatar-functions.php:924
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/one-user-avatar/includes/class-wp-user-avatar-list-table.php:17
- > PHP Warning
require_once(ABSPATHwp-admin/admin.php): failed to open stream: No such file or directory in wp-content/plugins/one-user-avatar/includes/wpua-media-page.php on line 43
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/one-user-avatar/includes/class-wp-user-avatar.php:695
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/one-user-avatar/includes/wpua-tinymce.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/one-user-avatar/includes/class-wp-user-avatar-subscriber.php:84
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/one-user-avatar/includes/class-wp-user-avatar-admin.php:595
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/one-user-avatar/includes/class-wp-user-avatar-widget.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
one-user-avatar/one-user-avatar.php Passed 13 tests
The principal PHP file in "One User Avatar | User Profile Picture" v. 2.4.0 is loaded by WordPress automatically on each request
133 characters long description:
Use any image from your WordPress Media Library as a custom user avatar. Add your own Default Avatar. Fork of WP User Avatar v2.2.16.
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
Success! There were no dangerous files found in this plugin6,125 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 784 | 1,693 | 2,720 |
PO File | 9 | 933 | 1,271 | 2,310 |
Markdown | 1 | 271 | 0 | 661 |
JavaScript | 5 | 82 | 57 | 305 |
CSS | 2 | 25 | 14 | 129 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 37.55 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 8 | 8.25% |
▷ Public methods | 91 | 93.81% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 6.19% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.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
7 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wpua-96x96.png | 2.34KB | 2.09KB | ▼ 10.76% |
assets/images/wpua.png | 11.74KB | 6.40KB | ▼ 45.50% |
assets/images/wpua-150x150.png | 3.45KB | 2.69KB | ▼ 21.95% |
assets/images/wpua-20x20.png | 0.55KB | 0.67KB | 0.00% |
assets/images/wpua-300x300.png | 7.29KB | 4.56KB | ▼ 37.46% |