84% easy-author-avatar-image

Code Review | Easy Author Avatar Image

WordPress plugin Easy Author Avatar Image scored84%from 54 tests.

About plugin

  • Plugin page: easy-author-avata...
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.9
  • WordPress version: 6.3.1
  • First release: Mar 1, 2022
  • Latest release: Mar 18, 2022
  • Number of updates: 6
  • Update frequency: every 3.8 days
  • Top authors: mukesh27 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /1,846 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.12ms] Passed 4 tests

Server-side resources used by Easy Author Avatar Image
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.47 ▼5.11
Dashboard /wp-admin3.35 ▲0.0445.37 ▼2.11
Posts /wp-admin/edit.php3.40 ▲0.0446.53 ▼3.99
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.43 ▼5.27
Media Library /wp-admin/upload.php3.27 ▲0.0435.08 ▼2.00

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Easy Author Avatar Image: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.29 ▼1.081.88 ▼0.0240.82 ▼5.35
Dashboard /wp-admin2,222 ▲345.90 ▲1.01110.78 ▲2.2442.84 ▲0.86
Posts /wp-admin/edit.php2,108 ▲192.01 ▼0.0142.33 ▼0.2334.23 ▼1.38
Add New Post /wp-admin/post-new.php1,556 ▲2318.19 ▼5.28606.13 ▼47.7355.47 ▼3.06
Media Library /wp-admin/upload.php1,407 ▲164.16 ▲0.0295.03 ▼3.4143.01 ▼2.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_setting() in wp-content/plugins/easy-author-avatar-image/easy-author-avatar-image.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: gravatar, user profile, avatar, custom profile picture, custom profile photo...

easy-author-avatar-image/easy-author-avatar-image.php Passed 13 tests

The main file in "Easy Author Avatar Image" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
78 characters long description:
Upload an author image right from your profile page with the click of a button

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected231 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1318149
JavaScript113052
CSS15030

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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