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.04MB] [CPU: ▼3.33ms] Passed 4 tests
This is a short check of server-side resources used by Simple User Avatar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.87 ▼1.62 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.47 ▼5.44 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 46.82 ▲0.50 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 90.82 ▼4.93 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.67 ▼1.33 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple User Avatar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.10 ▼0.53 | 1.60 ▼0.20 | 37.81 ▼0.84 |
Dashboard /wp-admin | 2,198 ▲26 | 5.63 ▼0.23 | 90.56 ▼8.40 | 39.16 ▼4.56 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 1.94 ▼0.00 | 40.59 ▲6.40 | 35.70 ▼0.05 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 18.45 ▼4.53 | 603.52 ▼66.29 | 62.76 ▼17.64 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.15 ▼0.07 | 94.54 ▲0.63 | 43.23 ▲1.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-user-avatar/public/class-sua-public.php:101
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-user-avatar/admin/class-sua-admin.php:335
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: gravatar, avatar, picture, media library, theme...
simple-user-avatar/simple-user-avatar.php Passed 13 tests
The entry point to "Simple User Avatar" version 4.3 is a PHP file that has certain tags in its header comment area
55 characters long description:
Add a user avatar using images from your Media Library.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected644 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 2 | 89 | 0 | 332 |
PHP | 4 | 119 | 143 | 227 |
JavaScript | 1 | 27 | 26 | 46 |
Sass | 2 | 8 | 0 | 38 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 13 | |
▷ Static methods | 2 | 15.38% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.16MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 50.92KB | 53.20KB | 0.00% |
screenshot-2.png | 73.24KB | 76.25KB | 0.00% |
screenshot-3.png | 39.61KB | 40.69KB | 0.00% |