89% gosign-gallery-box-block

Code Review | Gosign - Gallery box Block

WordPress plugin Gosign - Gallery box Block scored89%from 54 tests.

About plugin

  • Plugin page: gosign-gallery-bo...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0+
  • WordPress version: 6.3.1
  • First release: May 30, 2019
  • Latest release: May 19, 2022
  • Number of updates: 9
  • Update frequency: every 121.6 days
  • Top authors: gosign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /12,191 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼2.83ms] Passed 4 tests

An overview of server-side resources used by Gosign - Gallery box Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.92 ▲3.04
Dashboard /wp-admin3.31 ▼0.0347.87 ▼9.42
Posts /wp-admin/edit.php3.36 ▲0.0147.17 ▲3.41
Add New Post /wp-admin/post-new.php5.84 ▼0.0587.61 ▼3.74
Media Library /wp-admin/upload.php3.24 ▲0.0133.67 ▼1.18

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Gosign - Gallery box Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲16313.63 ▼0.6013.00 ▲11.4441.96 ▲0.51
Dashboard /wp-admin2,198 ▲185.62 ▼0.0484.66 ▼1.3438.44 ▼4.56
Posts /wp-admin/edit.php2,100 ▲31.99 ▲0.0236.15 ▼0.6934.06 ▲2.19
Add New Post /wp-admin/post-new.php6,371 ▲4,84327.83 ▲4.73920.21 ▲248.8738.71 ▼17.88
Media Library /wp-admin/upload.php1,400 ▲34.25 ▲0.0199.04 ▲5.2047.37 ▲6.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
Please fix the following attributes: Please take inspiration from this readme.txt

gosign-gallery-box-block/gosign-gallery-box-block.php Passed 13 tests

The primary PHP file in "Gosign - Gallery box Block" version 2.0.1 is used by WordPress to initiate all plugin functionality
51 characters long description:
Simple Logo Slider to show your all clients as logo

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
There were no executable files found in this plugin5,092 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51,1806643,815
CSS613319748
Sass2275266
PHP12894110
Markdown122082
SVG31171

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected