90% adorable-avatars

Code Review | Adorable Avatars

WordPress plugin Adorable Avatars scored90%from 54 tests.

About plugin

  • Plugin page: adorable-avatars
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-4.7
  • WordPress version: 6.3.1
  • First release: Feb 3, 2016
  • Latest release: Jan 4, 2017
  • Number of updates: 6
  • Update frequency: every 56.0 days
  • Top authors: tfrommen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,799 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.38ms] Passed 4 tests

Server-side resources used by Adorable Avatars
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.99 ▼3.95
Dashboard /wp-admin3.31 ▲0.0146.85 ▼8.22
Posts /wp-admin/edit.php3.36 ▲0.0150.55 ▼2.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.41 ▼18.78
Media Library /wp-admin/upload.php3.24 ▲0.0135.33 ▲0.39

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Adorable Avatars: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.69 ▲0.531.75 ▲0.0940.60 ▼5.68
Dashboard /wp-admin2,195 ▲155.54 ▼0.0485.36 ▼8.9137.26 ▼10.03
Posts /wp-admin/edit.php2,100 ▲31.99 ▲0.0239.01 ▲2.1137.39 ▼1.43
Add New Post /wp-admin/post-new.php1,526 ▼223.37 ▲0.30627.68 ▼32.9057.29 ▲4.77
Media Library /wp-admin/upload.php1,397 ▲64.20 ▲0.0595.83 ▼3.5949.13 ▲5.82

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: image, avatar, user, profile

adorable-avatars/adorable-avatars.php Passed 13 tests

"Adorable Avatars" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
86 characters long description:
This plugin integrates the Adorable Avatars avatar placeholder service into WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin105 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP347107105

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods350.00%
▷ Protected methods00.00%
▷ Private methods350.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin