Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.36ms] Passed 4 tests
A check of server-side resources used by Manage User Avatar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.41 ▼3.77 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.01 ▼3.92 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.80 ▼4.94 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.75 ▼12.81 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.21 ▲3.61 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Manage User Avatar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.35 ▲0.00 | 2.01 ▲0.31 | 45.97 ▲2.19 |
Dashboard /wp-admin | 2,195 ▲15 | 5.64 ▼0.02 | 81.63 ▼10.07 | 59.93 ▲19.13 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 1.98 ▲0.01 | 38.35 ▼1.62 | 34.23 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,541 ▲4 | 22.96 ▲4.67 | 756.20 ▲121.60 | 54.85 ▼15.39 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▲0.02 | 97.62 ▼15.62 | 79.38 ▲33.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
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 errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2 in manage-user-avatar/assets to your readme.txt
manage-user-avatar/ss_wp_user_avatar.php 85% from 13 tests
This is the main PHP file of "Manage User Avatar" version 0.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 190 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("manage-user-avatar.php" instead of "ss_wp_user_avatar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected32 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 11 | 13 | 32 |
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.69 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
26 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/avatars/alphabets/z.png | 2.79KB | 0.85KB | ▼ 69.72% |
assets/avatars/alphabets/p.png | 2.50KB | 0.89KB | ▼ 64.38% |
assets/avatars/alphabets/x.png | 3.98KB | 1.56KB | ▼ 60.86% |
assets/avatars/alphabets/c.png | 4.16KB | 1.75KB | ▼ 57.91% |
assets/avatars/alphabets/j.png | 2.41KB | 0.85KB | ▼ 64.60% |