89% gosign-buttonblock

Code Review | Gosign - Button Block

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

About plugin

  • Plugin page: gosign-buttonblock
  • Plugin version: 2.8.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0+
  • WordPress version: 6.3.1
  • First release: Jul 15, 2019
  • Latest release: May 19, 2022
  • Number of updates: 32
  • Update frequency: every 33.5 days
  • Top authors: gosign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,569 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▲3.15ms] Passed 4 tests

This is a short check of server-side resources used by Gosign - Button Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0248.27 ▲8.65
Dashboard /wp-admin3.32 ▲0.0251.08 ▲0.07
Posts /wp-admin/edit.php3.38 ▲0.0345.50 ▲2.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.12 ▲8.62
Media Library /wp-admin/upload.php3.25 ▲0.0334.34 ▲1.75

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

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

Browser metrics Passed 4 tests

Gosign - Button Block: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,090 ▲35528.55 ▲13.9743.56 ▲41.6444.74 ▲1.33
Dashboard /wp-admin2,279 ▲9411.42 ▲6.56164.94 ▲49.5346.04 ▲4.77
Posts /wp-admin/edit.php2,191 ▲10212.25 ▲10.2591.38 ▲51.2631.79 ▼2.87
Add New Post /wp-admin/post-new.php6,417 ▲4,90320.79 ▲3.24742.93 ▲72.2136.55 ▼10.08
Media Library /wp-admin/upload.php1,551 ▲16313.09 ▲8.89150.27 ▲47.3143.36 ▲1.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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 require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #2 (Define size of your button.), #3 (Border Styling.), #4 (Add icon.), #5 (Cutom Color option of background, text and border.)
  • Requires php: Invalid version format
The official readme.txt might help

gosign-buttonblock/plugin.php 92% from 13 tests

"Gosign - Button Block" version 2.8.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gosign-buttonblock.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin8,787 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JSON2007,178
JavaScript6123621,321
Sass341136
Markdown134090
PHP2105960
CSS2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin