89% gosign-background-container

Code Review | Gosign - Background Container Block

WordPress plugin Gosign - Background Container Block scored89%from 54 tests.

About plugin

  • Plugin page: gosign-background...
  • Plugin version: 2.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0+
  • WordPress version: 6.3.1
  • First release: Nov 20, 2018
  • Latest release: May 20, 2022
  • Number of updates: 50
  • Update frequency: every 25.5 days
  • Top authors: ahmedcassini (50%)gosign (48%)malikzohaib42 (6%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /22,095 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Gosign - Background Container Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.27 ▼1.84
Dashboard /wp-admin3.31 ▼0.0446.74 ▼13.43
Posts /wp-admin/edit.php3.36 ▲0.0043.45 ▼3.67
Add New Post /wp-admin/post-new.php5.89 ▼0.0090.29 ▼6.63
Media Library /wp-admin/upload.php3.23 ▲0.0036.55 ▲5.07

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gosign - Background Container Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲15014.27 ▼0.3417.02 ▲15.3348.20 ▲7.29
Dashboard /wp-admin2,192 ▲125.51 ▼0.1489.72 ▲6.9941.39 ▼3.52
Posts /wp-admin/edit.php2,103 ▲31.97 ▼0.0534.15 ▼1.7232.71 ▼4.70
Add New Post /wp-admin/post-new.php6,198 ▲4,67219.29 ▼3.78944.05 ▲271.2638.42 ▼12.47
Media Library /wp-admin/upload.php1,400 ▼34.15 ▲0.01109.99 ▲13.6446.04 ▼0.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions 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 a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Requires php: The plugin version is formatted incorrectly
The official readme.txt might help

gosign-background-container/plugin.php 85% from 13 tests

The primary PHP file in "Gosign - Background Container Block" version 2.7.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gosign-background-container.php" instead of "plugin.php")
  • Description: The description should be shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin8,842 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JSON2008,290
JavaScript36710394
Markdown1290109
PHP2126147
CSS2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
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%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin