89% show-support-ribbon

Code Review | Show Support Ribbon

WordPress plugin Show Support Ribbon scored89%from 54 tests.

About plugin

  • Plugin page: show-support-ribbon
  • Plugin version: 20231025...
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Nov 14, 2012
  • Latest release: Oct 26, 2023
  • Number of updates: 44
  • Update frequency: every 90.9 days
  • Top authors: specialk (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

200+ active /19,596 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼2.71ms] Passed 4 tests

This is a short check of server-side resources used by Show Support Ribbon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1334.95 ▼0.73
Dashboard /wp-admin3.44 ▲0.1346.26 ▼3.72
Posts /wp-admin/edit.php3.55 ▲0.1944.43 ▼4.16
Add New Post /wp-admin/post-new.php6.02 ▲0.1393.97 ▼1.62
Media Library /wp-admin/upload.php3.36 ▲0.1333.83 ▼1.34
Support Ribbon /wp-admin/options-general.php?page=show-support-ribbon/show-support-ribbon.php3.3529.92

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
ssr_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Show Support Ribbon: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.251.62 ▼0.0839.03 ▼0.28
Dashboard /wp-admin2,202 ▲225.63 ▲0.0385.54 ▲2.9938.57 ▼4.79
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0434.06 ▼7.2935.16 ▼2.46
Add New Post /wp-admin/post-new.php1,538 ▲1018.24 ▼4.81588.84 ▼54.8668.70 ▲5.83
Media Library /wp-admin/upload.php1,407 ▲44.23 ▲0.0199.40 ▼1.1342.76 ▼0.33
Support Ribbon /wp-admin/options-general.php?page=show-support-ribbon/show-support-ribbon.php1,5581.7526.4144.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

show-support-ribbon/show-support-ribbon.php 92% from 13 tests

The main PHP file in "Show Support Ribbon" ver. 20231025... adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "20231025...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin628 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP318294628

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
ssr-logo.png56.07KB17.65KB▼ 68.52%