90% hidpi-gravatars

Code Review | HiDPI Gravatars

WordPress plugin HiDPI Gravatars scored90%from 54 tests.

About plugin

  • Plugin page: hidpi-gravatars
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.3
  • WordPress version: 6.3.1
  • First release: Nov 6, 2012
  • Latest release: Aug 8, 2015
  • Number of updates: 40
  • Update frequency: every 25.2 days
  • Top authors: miqrogroove (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

90+ active /11,709 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.57ms] Passed 4 tests

A check of server-side resources used by HiDPI Gravatars
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.23 ▼4.52
Dashboard /wp-admin3.33 ▲0.0350.27 ▼8.93
Posts /wp-admin/edit.php3.38 ▲0.0361.32 ▲14.57
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.26 ▲1.56
Media Library /wp-admin/upload.php3.25 ▲0.0241.95 ▲1.61

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for HiDPI Gravatars
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.25 ▼0.031.66 ▼0.2139.15 ▼4.45
Dashboard /wp-admin2,194 ▲175.50 ▼0.0789.33 ▼2.4040.30 ▲1.03
Posts /wp-admin/edit.php2,105 ▲22.01 ▼0.0138.85 ▼5.8732.61 ▼8.67
Add New Post /wp-admin/post-new.php1,528 ▼323.02 ▲0.01679.31 ▲76.4654.96 ▲2.61
Media Library /wp-admin/upload.php1,399 ▼14.12 ▼0.0897.20 ▼9.3843.42 ▲0.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: ipad, retina, kindle, gravatars, avatars...

hidpi-gravatars/hidpi-gravatars.php Passed 13 tests

The primary PHP file in "HiDPI Gravatars" version 1.5.1 is used by WordPress to initiate all plugin functionality
74 characters long description:
Enables high resolution Gravatar images on any browser that supports them.

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
Good job! No executable or dangerous file extensions detected172 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11785109
JavaScript20263

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions6
▷ Named functions6100.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
No PNG images were found in this plugin