94% add-new-default-avatar-emrikols-fork

Code Review | Add New Default Avatar [Emrikol's Fork]

WordPress plugin Add New Default Avatar [Emrikol's Fork] scored 94% from 54 tests.

About plugin

  • Plugin page: add-new-default-a...
  • Plugin version: 3.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.2-4.5.2
  • WordPress version: 5.8.1
  • First release: Aug 30, 2010
  • Latest release: Jun 14, 2016
  • Number of updates: 12
  • Update frequency: every 176.3 days
  • Top authors: emrikol (83.33%)decarbonated (25%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 7,428 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼134.76ms] Passed 4 tests

An overview of server-side resources used by Add New Default Avatar [Emrikol's Fork]
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1537.83 ▲13.01
Dashboard /wp-admin3.09 ▲0.0475.93 ▲25.38
Posts /wp-admin/edit.php3.15 ▲0.0462.77 ▲15.27
Add New Post /wp-admin/post-new.php5.45 ▲0.0295.76 ▼566.57
Media Library /wp-admin/upload.php3.04 ▲0.0436.60 ▼0.76
Add New Avatar /wp-admin/themes.php?page=add-new-default-avatar3.0134.12

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add New Default Avatar [Emrikol's Fork]
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,715 ▲11915.82 ▲0.1810.07 ▲0.8056.52 ▲3.92
Dashboard /wp-admin2,980 ▲435.94 ▲0.00167.62 ▲15.95140.27 ▲24.52
Posts /wp-admin/edit.php2,752 ▲132.72 ▼0.0185.88 ▲14.54104.44 ▲4.88
Add New Post /wp-admin/post-new.php1,692 ▲918.76 ▲0.08400.78 ▼12.27111.19 ▼3.92
Media Library /wp-admin/upload.php1,820 ▲135.04 ▲0.00167.45 ▲3.83125.71 ▲4.28
Add New Avatar /wp-admin/themes.php?page=add-new-default-avatar1,0942.1256.4777.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-new-default-avatar-emrikols-fork/add-new-default-avatar-emrikols-fork.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (The plugin page showing a few added avatars.), #2 (The "Discussion" settings showing the available avatars.), #3 (twentysixteen theme showing the Hellow World post and comment with new avatar)
The official readme.txt is a good inspiration

add-new-default-avatar-emrikols-fork/add-new-default-avatar-emrikols-fork.php Passed 13 tests

The main PHP script in "Add New Default Avatar [Emrikol's Fork]" version 3.0.0 is automatically included on every request by WordPress
42 characters long description:
Add new option to the Default Avatar list.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin168 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.14MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png92.73KB33.57KB▼ 63.80%