83% gravatar-favicon

Code Review | Gravatar Favicon

WordPress plugin Gravatar Favicon scored 83% from 54 tests.

About plugin

  • Plugin page: gravatar-favicon
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.3.2
  • WordPress version: 6.3.1
  • First release: Jul 5, 2009
  • Latest release: Jun 10, 2012
  • Number of updates: 37
  • Update frequency: every 29.0 days
  • Top authors: mypatricks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 20,521 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.12MB] [CPU: ▼10.04ms] Passed 4 tests

Server-side resources used by Gravatar Favicon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0338.36 ▼17.20
Dashboard /wp-admin3.32 ▲0.0243.64 ▼7.57
Posts /wp-admin/edit.php3.37 ▼0.4851.91 ▲0.81
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.04 ▼16.19
Media Library /wp-admin/upload.php3.24 ▲0.0136.71 ▲5.08

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Gravatar Favicon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4713.24 ▼1.071.79 ▼0.3439.71 ▼8.01
Dashboard /wp-admin2,214 ▲264.86 ▼0.04110.28 ▼5.9441.98 ▲2.75
Posts /wp-admin/edit.php2,094 ▲22.00 ▼0.0638.78 ▲4.4634.93 ▲2.40
Add New Post /wp-admin/post-new.php1,545 ▲3123.28 ▲5.44653.95 ▼22.3755.10 ▼8.43
Media Library /wp-admin/upload.php1,399 ▲174.24 ▼0.0098.16 ▲0.3342.06 ▲0.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • 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
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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravatar-favicon/gravatar-favicon.php:139

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Gravatar favicon in Admin Panel, Site and Address bar.) image required
The official readme.txt is a good inspiration

gravatar-favicon/gravatar-favicon.php 92% from 13 tests

The main PHP script in "Gravatar Favicon" version 3.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 456 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin148 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12715108
PO File1121440

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions10
▷ Named functions10100.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
PNG images were not found in this plugin