89% hyperise-opengraph-tags

Code Review | HYPERISE Website Personalisation and OpenGraph personalised link previews

WordPress plugin HYPERISE Website Personalisation and OpenGraph personalised link previews scored89%from 54 tests.

About plugin

  • Plugin page: hyperise-opengrap...
  • Plugin version: 2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-5.6
  • WordPress version: 6.3.1
  • First release: Oct 21, 2019
  • Latest release: May 13, 2021
  • Number of updates: 30
  • Update frequency: every 19.0 days
  • Top authors: hyperise (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,506 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by HYPERISE Website Personalisation and OpenGraph personalised link previews
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0328.02 ▼13.73
Dashboard /wp-admin3.36 ▲0.0548.28 ▼13.40
Posts /wp-admin/edit.php3.41 ▲0.0550.59 ▲1.05
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.34 ▼6.81
Media Library /wp-admin/upload.php3.28 ▲0.0539.10 ▲0.78

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

HYPERISE Website Personalisation and OpenGraph personalised link previews: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲4314.73 ▲0.381.77 ▼0.2442.45 ▼3.50
Dashboard /wp-admin2,206 ▲295.61 ▼0.0583.22 ▼17.4940.94 ▼3.60
Posts /wp-admin/edit.php2,117 ▲172.03 ▲0.0640.51 ▼0.3937.89 ▲3.48
Add New Post /wp-admin/post-new.php1,554 ▲2620.47 ▼2.54658.64 ▼64.9058.67 ▲9.19
Media Library /wp-admin/upload.php1,417 ▲144.28 ▲0.1298.54 ▼14.6040.98 ▼5.01

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
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)
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Contributors: Plugin contributors field is missing
You can take inspiration from this readme.txt

hyperise-opengraph-tags/hyperise-opengraph-tags.php 85% from 13 tests

The primary PHP file in "HYPERISE Website Personalisation and OpenGraph personalised link previews" version 2.8 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 407 characters long)
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 73 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin280 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15220259
CSS12021

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 4.87MB with 3.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/screenshot-3.png470.08KB151.28KB▼ 67.82%
assets/icon-128x128.png2.51KB1.36KB▼ 45.85%
assets/images/screenshot-2.png1,304.86KB333.78KB▼ 74.42%
assets/screenshot-3.png470.08KB151.28KB▼ 67.82%
assets/icon-512x512.png10.08KB3.94KB▼ 60.90%