84% author-avatars

Code Review | Author Avatars List/Block

WordPress plugin Author Avatars List/Block scored84%from 54 tests.

About plugin

  • Plugin page: author-avatars
  • Plugin version: 2.1.16
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 8, 2008
  • Latest release: Nov 14, 2023
  • Number of updates: 370
  • Update frequency: every 14.8 days
  • Top authors: pbearne (54.32%)bforchhammer (45.95%)

Code review

54 tests

User reviews

30 reviews

Install metrics

7,000+ active /336,418 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.40 ▼2.94
Dashboard /wp-admin3.34 ▲0.0451.14 ▼0.80
Posts /wp-admin/edit.php3.46 ▲0.1045.01 ▼0.82
Add New Post /wp-admin/post-new.php5.94 ▲0.0686.96 ▼16.94
Media Library /wp-admin/upload.php3.27 ▲0.0433.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲1814.67 ▲0.271.76 ▼0.1642.91 ▼1.09
Dashboard /wp-admin2,198 ▲175.62 ▼0.1186.41 ▼24.5039.24 ▼8.17
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0035.13 ▼4.0934.07 ▲0.40
Add New Post /wp-admin/post-new.php1,538 ▲1222.85 ▼0.35634.02 ▲5.5133.23 ▼28.14
Media Library /wp-admin/upload.php1,397 ▼34.20 ▼0.01101.30 ▲2.3643.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

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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP209362,0993,703
PO File117808761,821
JavaScript201473351,501
CSS55231343
JSON310127
Sass32731104

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 code0.46
Average class complexity46.53
▷ Minimum class complexity9.00
▷ Maximum class complexity240.00
Average method complexity4.82
▷ Minimum method complexity1.00
▷ Maximum method complexity92.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods180
▷ Static methods137.22%
▷ Public methods17798.33%
▷ Protected methods10.56%
▷ Private methods21.11%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
blocks/src/icon128x128.png1.92KB1.70KB▼ 11.12%