84% gmail-like-gravatar-fallback

Code Review | Gmail Like Gravatar Fallback

WordPress plugin Gmail Like Gravatar Fallback scored84%from 54 tests.

About plugin

  • Plugin page: gmail-like-gravat...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 16, 2014
  • Latest release: Nov 19, 2014
  • Number of updates: 20
  • Update frequency: every 0.2 days
  • Top authors: pradeep.sonawane (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,507 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Gmail Like Gravatar Fallback
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.37 ▲3.71
Dashboard /wp-admin3.31 ▲0.0144.60 ▼0.72
Posts /wp-admin/edit.php3.36 ▲0.0146.64 ▼2.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.22 ▼2.15
Media Library /wp-admin/upload.php3.23 ▲0.0133.99 ▼0.98

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Gmail Like Gravatar Fallback
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5713.20 ▼1.195.63 ▲3.7242.35 ▲0.85
Dashboard /wp-admin2,217 ▲265.83 ▲0.9499.68 ▼1.1438.20 ▼3.89
Posts /wp-admin/edit.php2,097 ▲52.05 ▲0.0133.69 ▼9.0931.93 ▼2.11
Add New Post /wp-admin/post-new.php1,544 ▲218.25 ▲0.20621.99 ▲11.1548.04 ▼1.62
Media Library /wp-admin/upload.php1,399 ▲174.23 ▼0.0194.88 ▼0.0844.26 ▲4.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • avatar_default_old
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gmail-like-gravatar-fallback/rtp-gravatar-ext.php:21

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Screenshot 1: Before Activating the plugin), #2 (Screenshot 2: After Activating the plugin)
You can take inspiration from this readme.txt

gmail-like-gravatar-fallback/rtp-gravatar-ext.php 92% from 13 tests

"Gmail Like Gravatar Fallback" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gmail-like-gravatar-fallback.php" instead of "rtp-gravatar-ext.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
There were no executable files found in this plugin79 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript110540
PHP171139

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions4
▷ Named functions4100.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
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png30.77KB12.34KB▼ 59.88%
screenshot-1.png33.03KB13.41KB▼ 59.42%