89% gosign-promo-box-block

Code Review | Gosign - Promo Box Block

WordPress plugin Gosign - Promo Box Block scored89%from 54 tests.

About plugin

  • Plugin page: gosign-promo-box-...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0+
  • WordPress version: 6.3.1
  • First release: Mar 8, 2019
  • Latest release: May 19, 2022
  • Number of updates: 20
  • Update frequency: every 58.5 days
  • Top authors: gosign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,469 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: ▲0.08ms] Passed 4 tests

This is a short check of server-side resources used by Gosign - Promo Box Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.54 ▼2.81
Dashboard /wp-admin3.31 ▲0.0144.87 ▼2.40
Posts /wp-admin/edit.php3.36 ▲0.0151.55 ▲3.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.02 ▲2.42
Media Library /wp-admin/upload.php3.24 ▲0.0138.73 ▲4.03

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gosign - Promo Box Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7514.74 ▲0.451.70 ▼0.1244.94 ▼3.88
Dashboard /wp-admin2,206 ▲155.88 ▲0.77107.55 ▼7.4743.06 ▼0.34
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0141.07 ▲3.0034.06 ▼3.72
Add New Post /wp-admin/post-new.php6,417 ▲4,88428.38 ▲5.05817.22 ▲146.4749.71 ▼3.93
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.0894.91 ▼21.3041.04 ▼6.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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
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
The SRP test was a success

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Requires php: Version format is invalid
You can look at the official readme.txt

gosign-promo-box-block/plugin.php 92% from 13 tests

This is the main PHP file of "Gosign - Promo Box Block" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gosign-promo-box-block.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected492 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31599231
Sass33187
Markdown125075
CSS222355
PHP284831
JSON10013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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
There are no PNG files in this plugin