84% gravatar-alt-title-fix

Code Review | Gravatar ALT & TITLE Fix

WordPress plugin Gravatar ALT & TITLE Fix scored84%from 54 tests.

About plugin

  • Plugin page: gravatar-alt-titl...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.5
  • WordPress version: 6.3.1
  • First release: Oct 25, 2014
  • Latest release: Apr 14, 2016
  • Number of updates: 6
  • Update frequency: every 90.5 days
  • Top authors: ciordia9 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,567 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.00MB] [CPU: ▼1.81ms] Passed 4 tests

Analyzing server-side resources used by Gravatar ALT & TITLE Fix
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.45 ▼4.05
Dashboard /wp-admin3.31 ▲0.0150.27 ▼4.73
Posts /wp-admin/edit.php3.36 ▲0.0050.33 ▲0.60
Add New Post /wp-admin/post-new.php5.89 ▲0.01108.29 ▲8.26
Media Library /wp-admin/upload.php3.23 ▲0.0037.52 ▲0.93

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Gravatar ALT & TITLE Fix: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.25 ▼1.125.30 ▲3.4143.99 ▼1.34
Dashboard /wp-admin2,206 ▲184.84 ▼0.05107.10 ▼7.8840.90 ▼4.05
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0240.33 ▲3.6036.04 ▼1.00
Add New Post /wp-admin/post-new.php1,533 ▼023.25 ▼0.01688.09 ▲10.4653.85 ▲4.29
Media Library /wp-admin/upload.php1,385 ▼34.32 ▲0.13105.05 ▼5.4446.90 ▼2.52

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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)
Even though no errors were found, this is by no means 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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gravatar-alt-title-fix/gravatar-alt-title-fix.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: hotfix, seo, gravatar

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

Analyzing the main PHP file in "Gravatar ALT & TITLE Fix" version 0.1.1
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 201 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1289

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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

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