89% gosign-header-image-block

Code Review | Gosign - Header Image Block

WordPress plugin Gosign - Header Image Block scored 89% from 54 tests.

About plugin

  • Plugin page: gosign-header-ima...
  • Plugin version: 2.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0+
  • WordPress version: 6.3.1
  • First release: Mar 16, 2019
  • Latest release: May 19, 2022
  • Number of updates: 26
  • Update frequency: every 44.7 days
  • Top authors: gosign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,388 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.17ms] Passed 4 tests

An overview of server-side resources used by Gosign - Header Image Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.63 ▼2.91
Dashboard /wp-admin3.32 ▲0.0148.53 ▼9.00
Posts /wp-admin/edit.php3.37 ▲0.0148.95 ▼2.47
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.87 ▼14.28
Media Library /wp-admin/upload.php3.24 ▲0.0136.51 ▲5.46

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gosign - Header Image Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲18414.16 ▼0.0216.30 ▲13.7241.36 ▼5.07
Dashboard /wp-admin2,209 ▲184.89 ▲0.0195.38 ▼8.6239.91 ▼7.44
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0539.79 ▼2.7234.88 ▼3.65
Add New Post /wp-admin/post-new.php6,639 ▲5,11524.10 ▲0.59983.13 ▲341.3540.50 ▼9.37
Media Library /wp-admin/upload.php1,388 ▲64.19 ▼0.1196.21 ▼0.7444.33 ▼1.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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 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 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention: The official readme.txt might help

gosign-header-image-block/plugin.php 92% from 13 tests

The primary PHP file in "Gosign - Header Image Block" version 2.2.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gosign-header-image-block.php" instead of "plugin.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
Everything looks great! No dangerous files found in this plugin8,104 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JSON2006,947
JavaScript64363726
Sass3101304
Markdown136080
PHP2105243
CSS2004

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin