89% gosign-grid-container-block

Code Review | Gosign - Grid Container Block

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

About plugin

  • Plugin page: gosign-grid-conta...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0+
  • WordPress version: 6.3.1
  • First release: Jul 25, 2019
  • Latest release: May 19, 2022
  • Number of updates: 25
  • Update frequency: every 41.2 days
  • Top authors: gosign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,014 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Gosign - Grid Container Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.74 ▼2.94
Dashboard /wp-admin3.33 ▲0.0248.55 ▲1.22
Posts /wp-admin/edit.php3.38 ▲0.0247.59 ▼2.67
Add New Post /wp-admin/post-new.php5.86 ▼0.0382.86 ▼14.55
Media Library /wp-admin/upload.php3.25 ▲0.0240.70 ▲4.56

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Gosign - Grid Container Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲14813.54 ▼0.738.15 ▲6.4337.50 ▼12.36
Dashboard /wp-admin2,209 ▲185.86 ▲0.95101.25 ▼0.0540.03 ▼3.84
Posts /wp-admin/edit.php2,089 ▲31.98 ▲0.0240.50 ▲3.7935.78 ▲2.21
Add New Post /wp-admin/post-new.php6,359 ▲4,82528.24 ▲5.16959.60 ▲285.2158.65 ▲1.53
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0495.21 ▼4.9539.37 ▼4.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% 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:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #8, #9 in gosign-grid-container-block/assets to your readme.txt
  • Requires php: Version format is invalid
Please take inspiration from this readme.txt

gosign-grid-container-block/gosign-grid-container-block.php Passed 13 tests

"Gosign - Grid Container Block" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
42 characters long description:
Gosign Grid Container block to add columns

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
No dangerous file extensions were detected386 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
SVG5701235
PHP2289584
Markdown111059
JavaScript20196
CSS2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected