84% fix-gravatar-alt-text-title-tag

Code Review | Fix Gravatar Alt Text & Title Tag

WordPress plugin Fix Gravatar Alt Text & Title Tag scored84%from 54 tests.

About plugin

  • Plugin page: fix-gravatar-alt-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.9.9
  • WordPress version: 6.3.1
  • First release: Sep 13, 2017
  • Latest release: Dec 16, 2018
  • Number of updates: 4
  • Update frequency: every 116.3 days
  • Top authors: newtlabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,383 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Fix Gravatar Alt Text & Title Tag
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0132.80 ▼4.26
Dashboard /wp-admin3.31 ▲0.0150.18 ▲3.69
Posts /wp-admin/edit.php3.36 ▲0.0146.90 ▲0.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.49 ▼18.51
Media Library /wp-admin/upload.php3.23 ▲0.0034.26 ▲2.45

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Fix Gravatar Alt Text & Title Tag: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.66 ▼0.901.83 ▲0.0242.17 ▼2.51
Dashboard /wp-admin2,209 ▲215.86 ▲0.9698.42 ▼3.9239.02 ▼1.34
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0440.21 ▲0.4136.39 ▼1.59
Add New Post /wp-admin/post-new.php1,514 ▼017.38 ▼0.05667.32 ▼17.5857.70 ▲5.60
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0599.63 ▼10.6543.76 ▲0.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/fix-gravatar-alt-text-title-tag/fix-gravatar-alt-text-title-tag.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
8 plugin tags: gravatar, accessibility, meta, seo, title...

fix-gravatar-alt-text-title-tag/fix-gravatar-alt-text-title-tag.php 92% from 13 tests

"Fix Gravatar Alt Text & Title Tag" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 306 characters long)

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
There were no executable files found in this plugin12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14812

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected