84% redirect-gravatar-requests

Code Review | Redirect Gravatar requests

WordPress plugin Redirect Gravatar requests scored84%from 54 tests.

About plugin

  • Plugin page: redirect-gravatar...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Feb 21, 2019
  • Latest release: May 25, 2022
  • Number of updates: 39
  • Update frequency: every 30.5 days
  • Top authors: spartelfant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,772 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: ▼10.04ms] Passed 4 tests

An overview of server-side resources used by Redirect Gravatar requests
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.20 ▼5.77
Dashboard /wp-admin3.34 ▼0.0154.42 ▼8.93
Posts /wp-admin/edit.php3.39 ▲0.0352.20 ▼1.05
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.00 ▼22.91
Media Library /wp-admin/upload.php3.26 ▲0.0337.13 ▼2.56

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

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

Browser metrics Passed 4 tests

Redirect Gravatar requests: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,779 ▲1814.24 ▼0.111.52 ▼0.4837.12 ▼5.79
Dashboard /wp-admin2,198 ▲245.57 ▲0.0488.22 ▼3.2539.29 ▼4.05
Posts /wp-admin/edit.php2,103 ▲32.03 ▼0.0034.52 ▼6.2633.31 ▼9.41
Add New Post /wp-admin/post-new.php1,526 ▼223.55 ▲0.46683.73 ▲22.7755.25 ▼2.52
Media Library /wp-admin/upload.php1,394 ▼64.21 ▼0.0499.87 ▼4.4545.02 ▲2.58

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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
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 fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/redirect-gravatar-requests/redirect-gravatar-requests.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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
6 plugin tags: block, disable, local, avatar, redirect...

redirect-gravatar-requests/redirect-gravatar-requests.php 92% from 13 tests

The principal PHP file in "Redirect Gravatar requests" v. 2.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 159 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected98 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21913767
PO File191131

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods8
▷ Static methods112.50%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected