83% signature-widget-for-genesis

Code Review | Signature Widget for Genesis

WordPress plugin Signature Widget for Genesis scored83%from 54 tests.

About plugin

  • Plugin page: signature-widget-...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.4-5.9.0
  • WordPress version: 6.3.1
  • First release: May 24, 2016
  • Latest release: Feb 3, 2022
  • Number of updates: 29
  • Update frequency: every 71.8 days
  • Top authors: mymothersdaughter (93.1%)GaryJ (10.34%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /4,886 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.01MB] [CPU: ▼8.62ms] Passed 4 tests

An overview of server-side resources used by Signature Widget for Genesis
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.24 ▲4.61
Dashboard /wp-admin3.31 ▼0.0445.45 ▼12.66
Posts /wp-admin/edit.php3.36 ▲0.0041.39 ▼0.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.48 ▼18.18
Media Library /wp-admin/upload.php3.23 ▲0.0033.39 ▼2.65

Server storage [IO: ▲0.60MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Signature Widget for Genesis
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲4314.26 ▼0.092.09 ▲0.3643.65 ▲4.19
Dashboard /wp-admin2,195 ▲175.49 ▼0.1981.43 ▼15.4537.80 ▼5.84
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0033.72 ▼1.1233.16 ▼2.73
Add New Post /wp-admin/post-new.php1,526 ▼222.96 ▼0.13598.14 ▼114.7763.13 ▲10.71
Media Library /wp-admin/upload.php1,400 ▼04.26 ▲0.1592.74 ▼16.0140.99 ▼5.63

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/signature-widget-for-genesis/tags/1.3.0/genesis-signature-widget.php
    • > /wp-content/plugins/signature-widget-for-genesis/trunk/genesis-signature-widget.php
    • > /wp-content/plugins/signature-widget-for-genesis/genesis-signature-widget.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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:
  • Plugin Name: You should set the name of your plugin on the first line ( === signature-widget-for-genesis === )
You can take inspiration from this readme.txt

signature-widget-for-genesis/genesis-signature-widget.php 85% from 13 tests

This is the main PHP file of "Signature Widget for Genesis" version 1.3.1, 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:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("signature-widget-for-genesis.php" instead of "genesis-signature-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected141 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2568484
Markdown119048
CSS14129

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of 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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.59MB with 0.34MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
banner-772x250.png599.33KB250.15KB▼ 58.26%