78% baw-gravatar-google-image

Code Review | Gravatar Google Image

WordPress plugin Gravatar Google Image scored78%from 54 tests.

About plugin

  • Plugin page: baw-gravatar-goog...
  • Plugin version: 1.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4.1
  • WordPress version: 6.3.1
  • First release: Jul 19, 2012
  • Latest release: Sep 27, 2012
  • Number of updates: 13
  • Update frequency: every 5.4 days
  • Top authors: juliobox (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /7,071 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.19MB] [CPU: ▲289.65ms] 75% from 4 tests

This is a short check of server-side resources used by Gravatar Google Image
Please have a look at the following items
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 289.65ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.06342.72 ▲302.70
Dashboard /wp-admin3.13 ▼0.17349.31 ▲294.99
Posts /wp-admin/edit.php3.26 ▼0.10333.56 ▲285.28
Add New Post /wp-admin/post-new.php5.45 ▼0.43370.19 ▲275.62
Media Library /wp-admin/upload.php3.19 ▼0.04344.10 ▲308.73

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 9 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Gravatar Google Image
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.33 ▼1.052.31 ▲0.6337.69 ▼7.47
Dashboard /wp-admin2,209 ▲175.82 ▲0.7192.64 ▼18.7980.39 ▲33.10
Posts /wp-admin/edit.php2,092 ▲62.00 ▲0.0333.64 ▼2.2533.44 ▲2.69
Add New Post /wp-admin/post-new.php1,528 ▲1418.41 ▲0.99670.66 ▼7.0064.46 ▲10.84
Media Library /wp-admin/upload.php1,385 ▼34.23 ▲0.01103.46 ▲2.2549.69 ▲8.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 9 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • avatar_default_save
    • gravatars_cache
    • widget_theysaidso_widget
    • avatar_google
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/baw-gravatar-google-image/tyniaf.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/baw-gravatar-google-image/bawggi.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: You can look at the official readme.txt

baw-gravatar-google-image/bawggi.php 92% from 13 tests

The primary PHP file in "Gravatar Google Image" version 1.9.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("baw-gravatar-google-image.php" instead of "bawggi.php")

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
Everything looks great! No dangerous files found in this plugin633 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File1385894

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions21100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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