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.18MB] [CPU: ▼9.18ms] Passed 4 tests
This is a short check of server-side resources used by User Avatar - Reloaded
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 37.21 ▼6.19 |
Dashboard /wp-admin | 3.48 ▲0.17 | 46.99 ▼2.51 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 48.60 ▼17.11 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 81.83 ▼9.74 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 32.00 ▼3.66 |
Settings /wp-admin/admin.php?page=wp-user-avatar | 3.45 | 39.99 |
Library /wp-admin/admin.php?page=wp-user-avatar-library | 3.57 | 35.90 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 20 new options
New WordPress options |
---|
wp_user_avatar_resize_crop |
avatar_default_wp_user_avatar |
wp_user_avatar_media_updated |
wp_user_avatar_upload_size_limit |
wp_user_avatar_resize_w |
wp_user_avatar_edit_avatar |
wp_user_avatar_resize_h |
wp_user_avatar_users_updated |
can_compress_scripts |
wp_user_avatar_resize_upload |
... |
Browser metrics Passed 4 tests
User Avatar - Reloaded: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲130 | 13.26 ▼1.32 | 1.71 ▼0.24 | 38.50 ▼9.51 |
Dashboard /wp-admin | 2,281 ▲93 | 5.82 ▲0.93 | 108.35 ▼7.79 | 69.06 ▲25.11 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 1.99 ▼0.02 | 39.73 ▲0.16 | 35.49 ▲2.80 |
Add New Post /wp-admin/post-new.php | 1,550 ▲17 | 18.38 ▼4.95 | 702.59 ▲20.87 | 59.72 ▲6.89 |
Media Library /wp-admin/upload.php | 1,417 ▲32 | 4.21 ▲0.04 | 96.33 ▼10.45 | 69.75 ▲24.80 |
Settings /wp-admin/admin.php?page=wp-user-avatar | 1,343 | 3.44 | 50.25 | 64.11 |
Library /wp-admin/admin.php?page=wp-user-avatar-library | 1,163 | 2.01 | 30.53 | 42.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_wp_user_avatar_profile
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/user-avatar-reloaded/wp-user-avatar-reloaded.php
- > /wp-content/plugins/user-avatar-reloaded/uninstall.php
- > /wp-content/plugins/user-avatar-reloaded/includes/tinymce/window.php
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-avatar-reloaded/includes/class-wp-user-avatar-update.php:116
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-avatar-reloaded/includes/wpua-tinymce.php:22
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/user-avatar-reloaded/includes/wpua-media-page.php on line 36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-avatar-reloaded/includes/class-wp-user-avatar.php:494
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-avatar-reloaded/includes/class-wp-user-avatar-shortcode.php:264
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/user-avatar-reloaded/includes/class-wp-user-avatar-widget.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-avatar-reloaded/includes/class-wp-user-avatar-functions.php:733
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-avatar-reloaded/includes/mo-notice.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-avatar-reloaded/includes/class-wp-user-avatar-admin.php:412
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-avatar-reloaded/includes/wpua-functions.php:107
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: You are using too many tags: 13 tag instead of maximum 10
user-avatar-reloaded/wp-user-avatar-reloaded.php 77% from 13 tests
The main PHP script in "User Avatar - Reloaded" version 1.2.2 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("user-avatar-reloaded.php" instead of "wp-user-avatar-reloaded.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 211 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,771 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 299 | 1,455 | 2,274 |
CSS | 2 | 46 | 46 | 1,062 |
PO File | 1 | 96 | 113 | 226 |
JavaScript | 4 | 2 | 14 | 209 |
HTML | 1 | 0 | 2 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 35.18 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 4.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 96 | |
▷ Static methods | 7 | 7.29% |
▷ Public methods | 90 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 6.25% |
Functions | 25 | |
▷ Named functions | 22 | 88.00% |
▷ Anonymous functions | 3 | 12.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wp-user-avatar-banner.png | 40.19KB | 16.38KB | ▼ 59.25% |
images/wpua.png | 11.74KB | 6.40KB | ▼ 45.50% |
images/wpua-icon.png | 1.27KB | 0.54KB | ▼ 57.32% |
images/wpua-32x32.png | 1.56KB | 0.67KB | ▼ 56.94% |
images/wpua-20x20.png | 0.55KB | 0.67KB | 0.00% |