100% adorable-avatars

Code Review | Adorable Avatars

WordPress plugin Adorable Avatars scored 100% 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: 5.9.2
  • 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,477 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Adorable Avatars
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0455.35 ▲9.33
Dashboard /wp-admin3.45 ▲0.0433.24 ▲0.53
Posts /wp-admin/edit.php3.67 ▲0.0337.59 ▲0.46
Add New Post /wp-admin/post-new.php6.91 ▼0.0697.66 ▼1,184.03
Media Library /wp-admin/upload.php3.32 ▲0.0325.21 ▲1.19

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Adorable Avatars
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2916.21 ▲0.565.83 ▼0.312.44 ▼0.02
Dashboard /wp-admin2,888 ▲306.12 ▼0.06118.64 ▼16.92155.23 ▼8.89
Posts /wp-admin/edit.php2,694 ▼03.23 ▼0.1461.59 ▼1.41141.89 ▼4.88
Add New Post /wp-admin/post-new.php1,773 ▲7721.80 ▲0.83452.90 ▲32.54156.06 ▲0.57
Media Library /wp-admin/upload.php1,698 ▼05.48 ▼0.06147.71 ▲3.09189.14 ▲0.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
No output text or server-side errors detected on direct access of PHP files

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 uses markdown syntax to describe your plugin to the world
4 plugin tags: user, image, avatar, profile

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

The main PHP script in "Adorable Avatars" version 2.1.0 is automatically included on every request by WordPress
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
Success! There were no dangerous files found in this plugin105 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP347107105

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected