89% optimum-gravatar-cache

Code Review | Optimum Gravatar Cache

WordPress plugin Optimum Gravatar Cache scored89%from 54 tests.

About plugin

  • Plugin page: optimum-gravatar-...
  • Plugin version: 1.4.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Oct 12, 2017
  • Latest release: Jun 10, 2023
  • Number of updates: 174
  • Update frequency: every 11.9 days
  • Top authors: jomisica (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /6,650 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.60MB] [CPU: ▼6.16ms] Passed 4 tests

Server-side resources used by Optimum Gravatar Cache
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.08 ▲0.6240.34 ▼1.18
Dashboard /wp-admin3.94 ▲0.6448.81 ▲0.37
Posts /wp-admin/edit.php3.99 ▲0.6352.63 ▼0.89
Add New Post /wp-admin/post-new.php6.48 ▲0.5984.28 ▼22.95
Media Library /wp-admin/upload.php3.80 ▲0.5737.09 ▲2.90
Optimum Gravatar Cache /wp-admin/options-general.php?page=optimum-gravatar-cache3.8341.10

Server storage [IO: ▲0.36MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: 1 new table, 10 new options
New tables
wp_optimum_gravatar_cache
New WordPress options
can_compress_scripts
theysaidso_admin_options
OGC_apacheConfig
OGC_resolved
db_upgraded
OGC_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
OGC_avatarUsedSizes

Browser metrics Passed 4 tests

A check of browser resources used by Optimum Gravatar Cache
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.43 ▼0.221.58 ▼0.1339.03 ▼4.07
Dashboard /wp-admin2,210 ▲365.60 ▲0.0290.20 ▲5.2343.41 ▲4.70
Posts /wp-admin/edit.php2,115 ▲181.99 ▼0.0540.39 ▲0.2737.07 ▲1.17
Add New Post /wp-admin/post-new.php1,540 ▲523.67 ▲5.40682.47 ▲32.2249.49 ▼27.56
Media Library /wp-admin/upload.php1,415 ▲184.15 ▼0.0593.96 ▼7.3041.63 ▼2.27
Optimum Gravatar Cache /wp-admin/options-general.php?page=optimum-gravatar-cache1,0651.8226.5629.74

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% 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
These attributes need your attention:
  • Requires php: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

optimum-gravatar-cache/optimum-gravatar-cache.php 85% from 13 tests

This is the main PHP file of "Optimum Gravatar Cache" version 1.4.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 168 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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 plugin4,824 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP11432353,762
PO File1190219836
JavaScript260200
CSS21023
SVG3003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity573.00
▷ Minimum class complexity573.00
▷ Maximum class complexity573.00
Average method complexity6.37
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods107
▷ Static methods00.00%
▷ Public methods2523.36%
▷ Protected methods8276.64%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.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 images were found in this plugin