68% fv-gravatar-cache

Code Review | FV Gravatar Cache

WordPress plugin FV Gravatar Cache scored68%from 54 tests.

About plugin

  • Plugin page: fv-gravatar-cache
  • Plugin version: 0.4.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.3
  • WordPress version: 6.3.1
  • First release: Sep 7, 2010
  • Latest release: Aug 22, 2023
  • Number of updates: 46
  • Update frequency: every 103.1 days
  • Top authors: FolioVision (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /35,091 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼10.49ms] Passed 4 tests

Server-side resources used by FV Gravatar Cache
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0832.32 ▼7.06
Dashboard /wp-admin3.44 ▲0.1051.98 ▼15.69
Posts /wp-admin/edit.php3.55 ▲0.2044.98 ▼3.79
Add New Post /wp-admin/post-new.php6.02 ▲0.1491.11 ▼15.41
Media Library /wp-admin/upload.php3.36 ▲0.1434.05 ▼0.66
FV Gravatar Cache /wp-admin/options-general.php?page=fv-gravatar-cache3.3332.31

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: 1 new table, 8 new options
New tables
wp_gravatars
New WordPress options
theysaidso_admin_options
can_compress_scripts
fv_gravatar_cache_nag
db_upgraded
widget_recent-comments
widget_recent-posts
fv_gravatar_cache
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for FV Gravatar Cache
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.18 ▼1.211.75 ▼0.0443.01 ▼2.62
Dashboard /wp-admin2,217 ▲295.80 ▼0.2498.05 ▼3.9036.90 ▼6.74
Posts /wp-admin/edit.php2,099 ▲72.13 ▲0.1239.28 ▼1.9933.09 ▼2.85
Add New Post /wp-admin/post-new.php1,524 ▼417.64 ▼0.54630.85 ▲22.3865.22 ▼2.43
Media Library /wp-admin/upload.php1,396 ▲114.25 ▲0.1296.98 ▼6.7941.01 ▼2.00
FV Gravatar Cache /wp-admin/options-general.php?page=fv-gravatar-cache9432.1722.4928.71

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_gravatars
  • The uninstall procedure has failed, leaving 8 options in the database
    • theysaidso_admin_options
    • fv_gravatar_cache
    • can_compress_scripts
    • fv_gravatar_cache_nag
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=fv-gravatar-cache
    • > Notice in wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php+667
    Undefined index: default

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php:877

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Screenshot #1 (FV Gravatar Cache screen) image required
The official readme.txt might help

fv-gravatar-cache/fv-gravatar-cache.php Passed 13 tests

"FV Gravatar Cache" version 0.4.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
120 characters long description:
Speeds up your website by making sure the gravatars are stored on your website and not loading from the gravatar server.

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
No dangerous file extensions were detected655 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1145172648
Markdown1507

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity109.00
▷ Minimum class complexity109.00
▷ Maximum class complexity109.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png111.88KB42.39KB▼ 62.12%