Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.38ms] Passed 4 tests
This is a short check of server-side resources used by Author Avatars List/Block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.40 ▼2.94 |
Dashboard /wp-admin | 3.34 ▲0.04 | 51.14 ▼0.80 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 45.01 ▼0.82 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 86.96 ▼16.94 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.23 ▲0.77 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 79 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
author_avatars_version |
widget_author_avatars |
Browser metrics Passed 4 tests
Author Avatars List/Block: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲18 | 14.67 ▲0.27 | 1.76 ▼0.16 | 42.91 ▼1.09 |
Dashboard /wp-admin | 2,198 ▲17 | 5.62 ▼0.11 | 86.41 ▼24.50 | 39.24 ▼8.17 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.00 | 35.13 ▼4.09 | 34.07 ▲0.40 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 22.85 ▼0.35 | 634.02 ▲5.51 | 33.23 ▼28.14 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▼0.01 | 101.30 ▲2.36 | 43.45 ▲2.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_author_avatars
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/author-avatars/lib/BuddyPressSupport.class.php:94
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/author-avatars/lib/AuthorAvatarsWidget.class.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/author-avatars/lib/AuthorAvatarsWidget.class.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/author-avatars/lib/AuthorAvatarsWidget.class.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 22 tag instead of maximum 10
author-avatars/author-avatars.php 92% from 13 tests
"Author Avatars List/Block" version 2.1.16's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 168 characters long)
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 detected7,599 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 936 | 2,099 | 3,703 |
PO File | 11 | 780 | 876 | 1,821 |
JavaScript | 20 | 147 | 335 | 1,501 |
CSS | 5 | 52 | 31 | 343 |
JSON | 3 | 1 | 0 | 127 |
Sass | 3 | 27 | 31 | 104 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 46.53 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 92.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 180 | |
▷ Static methods | 13 | 7.22% |
▷ Public methods | 177 | 98.33% |
▷ Protected methods | 1 | 0.56% |
▷ Private methods | 2 | 1.11% |
Functions | 19 | |
▷ Named functions | 18 | 94.74% |
▷ Anonymous functions | 1 | 5.26% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
blocks/src/icon128x128.png | 1.92KB | 1.70KB | ▼ 11.12% |