84% easy-author-image

Code Review | Easy Author Image

WordPress plugin Easy Author Image scored84%from 54 tests.

About plugin

  • Plugin page: easy-author-image
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2013
  • Latest release: May 14, 2019
  • Number of updates: 32
  • Update frequency: every 67.2 days
  • Top authors: lawsonry (87.5%)Queenhound (15.63%)

Code review

54 tests

User reviews

17 reviews

Install metrics

3,000+ active /82,369 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.02MB] [CPU: ▼5.35ms] Passed 4 tests

This is a short check of server-side resources used by Easy Author Image
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.47 ▼4.12
Dashboard /wp-admin3.34 ▼0.0144.91 ▼14.13
Posts /wp-admin/edit.php3.39 ▲0.0344.78 ▼1.32
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.45 ▼1.84
Media Library /wp-admin/upload.php3.26 ▲0.0335.26 ▼0.31

Server storage [IO: ▲0.21MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Easy Author Image
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,781 ▲3514.58 ▼0.001.58 ▼0.1536.86 ▼7.74
Dashboard /wp-admin2,195 ▲185.55 ▼0.0283.40 ▼3.1369.72 ▲23.58
Posts /wp-admin/edit.php2,103 ▼02.00 ▼0.0240.15 ▼2.2934.61 ▼2.56
Add New Post /wp-admin/post-new.php1,689 ▲15624.44 ▲1.41693.72 ▲26.6564.73 ▲9.65
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0194.58 ▼10.3867.68 ▲19.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-author-image/easy-author-image.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: author image, avatar, profile

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

The main file in "Easy Author Image" v. 1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
131 characters long description:
Adds an author image uploader to your profile page. 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected194 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14437137
CSS12033
JavaScript19924

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
6 PNG files occupy 0.19MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-6.png69.33KB20.00KB▼ 71.16%
assets/screenshot-5.png11.98KB1.58KB▼ 86.78%
assets/screenshot-1.png17.66KB3.58KB▼ 79.72%
assets/screenshot-4.png13.43KB2.15KB▼ 83.97%
assets/screenshot-3.png47.64KB12.68KB▼ 73.39%