Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▲2.25ms] Passed 4 tests
An overview of server-side resources used by WP User Profile Avatar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 48.16 ▼2.30 |
Dashboard /wp-admin | 3.41 ▲0.10 | 50.24 ▲1.81 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 54.00 ▲6.79 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 89.61 ▲3.65 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.87 ▲5.82 |
Profile Avatar Settings /wp-admin/users.php?page=wp-user-profile-avatar-settings | 3.32 | 46.96 |
Server storage [IO: ▲0.36MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 11 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
wpupa_version |
wpupa_rating |
wpupa_default |
wpupa_tinymce |
... |
Browser metrics Passed 4 tests
WP User Profile Avatar: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 13.36 ▼1.40 | 1.78 ▼0.27 | 43.21 ▲3.54 |
Dashboard /wp-admin | 2,212 ▲24 | 5.79 ▲0.79 | 103.89 ▼3.81 | 38.30 ▼5.88 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.07 ▲0.07 | 42.63 ▲3.41 | 36.49 ▲1.46 |
Add New Post /wp-admin/post-new.php | 1,524 ▲5 | 23.37 ▲0.19 | 669.45 ▲2.11 | 60.48 ▼11.90 |
Media Library /wp-admin/upload.php | 1,405 ▲14 | 4.24 ▲0.08 | 94.13 ▼1.24 | 43.55 ▲2.21 |
Profile Avatar Settings /wp-admin/users.php?page=wp-user-profile-avatar-settings | 1,185 | 3.24 | 43.72 | 56.71 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-user-profile-avatar/admin/templates/shortcode-popup.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-user-profile-avatar/shortcodes/wp-user-profile-avatar-shortcodes.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: avatar, custom profile picture, user profile, author photo, profile picture...
wp-user-profile-avatar/wp-user-profile-avatar.php Passed 13 tests
"WP User Profile Avatar" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
22 characters long description:
WP User Profile Avatar
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,806 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 7 | 462 | 595 | 1,429 |
PHP | 11 | 280 | 387 | 1,100 |
JavaScript | 4 | 71 | 82 | 236 |
CSS | 4 | 1 | 0 | 39 |
Markdown | 1 | 2 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.14MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wp-user-medium.png | 33.74KB | 7.35KB | ▼ 78.23% |
assets/images/wp-user-admin.png | 22.66KB | 2.81KB | ▼ 87.62% |
assets/images/wp-user-original.png | 43.93KB | 10.77KB | ▼ 75.50% |
assets/images/wp-user-thumbnail.png | 25.31KB | 3.95KB | ▼ 84.41% |
assets/images/wp-user-avatar.png | 19.45KB | 1.30KB | ▼ 93.32% |