99% wp-gravatar-https

Code Review | WP Gravatar Https

WordPress plugin WP Gravatar Https scored 99% from 54 tests.

About plugin

  • Plugin page: wp-gravatar-https
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 5.8.1
  • First release: Nov 19, 2014
  • Latest release: Nov 19, 2015
  • Number of updates: 10
  • Update frequency: every 36.6 days
  • Top authors: 0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,114 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.00MB] [CPU: ▼141.54ms] Passed 4 tests

Analyzing server-side resources used by WP Gravatar Https
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0035.93 ▲3.07
Dashboard /wp-admin3.06 ▲0.0144.48 ▼4.79
Posts /wp-admin/edit.php3.11 ▲0.0140.66 ▼0.27
Add New Post /wp-admin/post-new.php5.42 ▼0.0187.30 ▼559.48
Media Library /wp-admin/upload.php3.00 ▲0.0033.20 ▼1.60

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WP Gravatar Https: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲10715.99 ▲0.548.48 ▲0.6142.04 ▼1.54
Dashboard /wp-admin2,967 ▲365.94 ▼0.04133.13 ▼9.1296.23 ▼10.72
Posts /wp-admin/edit.php2,739 ▼02.82 ▲0.1266.05 ▼0.4182.10 ▼3.97
Add New Post /wp-admin/post-new.php1,498 ▼18518.86 ▲0.36376.72 ▲13.69106.58 ▲3.81
Media Library /wp-admin/upload.php1,810 ▲35.01 ▼0.03149.36 ▼3.24107.99 ▼0.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Enable HTTPS. 启用HTTPS。)
You can look at the official readme.txt

wp-gravatar-https/wp-gravatar-https.php 92% from 13 tests

The main PHP script in "WP Gravatar Https" version 1.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 368 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12128

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/screenshot-1.png98.24KB31.76KB▼ 67.67%