89% harrys-gravatar-cache

Code Review | Harrys Gravatar Cache

WordPress plugin Harrys Gravatar Cache scored89%from 54 tests.

About plugin

  • Plugin page: harrys-gravatar-c...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.9
  • WordPress version: 6.3.1
  • First release: Nov 3, 2015
  • Latest release: Jan 23, 2022
  • Number of updates: 119
  • Update frequency: every 19.1 days
  • Top authors: Harry Milatz (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /14,148 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
Install script ran successfully

Server metrics [RAM: ▲0.48MB] [CPU: ▲4.23ms] Passed 4 tests

A check of server-side resources used by Harrys Gravatar Cache
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5048.17 ▲5.21
Dashboard /wp-admin3.78 ▲0.4858.02 ▼0.59
Posts /wp-admin/edit.php3.89 ▲0.5459.25 ▲11.06
Add New Post /wp-admin/post-new.php6.36 ▲0.4798.41 ▲7.01
Media Library /wp-admin/upload.php3.70 ▲0.4743.75 ▲5.29
Harrys Gravatar Cache Settings /wp-admin/options-general.php?page=harrys-gravatar-cache-options3.6746.87

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 35 new files
Database: 2 new tables, 6 new options
New tables
wp_harrys_gravatar_cache
wp_harrys_gravatar_store
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Harrys Gravatar Cache
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.73 ▲0.341.64 ▼0.2940.49 ▼3.11
Dashboard /wp-admin2,210 ▲194.84 ▼1.02112.57 ▲6.7941.64 ▼5.49
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0139.21 ▲3.4534.92 ▼1.79
Add New Post /wp-admin/post-new.php1,536 ▲323.08 ▼0.16655.20 ▲37.0847.66 ▼11.16
Media Library /wp-admin/upload.php1,395 ▲74.20 ▲0.0697.49 ▼4.0743.42 ▲0.91
Harrys Gravatar Cache Settings /wp-admin/options-general.php?page=harrys-gravatar-cache-options1,3072.2124.3037.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings Page), #2 (Settings Page 2), #3 (Build the cache and Check 1), #4 (Build the cache and Check 2), #5 (Errorpage: Database), #6 (Errorpage: Cachefolder doesn't exist), #7 (Errorpage: Cachefolder has not the correct permissions), #8 (Errorpage: Cachefolder is not writeable), #9 (Errorpage: no Copyoption available)
The official readme.txt might help

harrys-gravatar-cache/harrys-gravatar-cache.php 92% from 13 tests

Analyzing the main PHP file in "Harrys Gravatar Cache" version 2.0.2
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 221 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin4,710 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File99301,3712,723
PHP156821,987

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.69
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%
Functions25
▷ Named functions25100.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
3 PNG files occupy 0.27MB with 0.18MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
database.png227.19KB91.08KB▼ 59.91%
amazon.de-logo.png26.14KB7.03KB▼ 73.09%
paypal-donate.png22.02KB6.69KB▼ 69.62%