89% sidebars-blocks

Code Review | Sidebars Gutenberg Blocks

WordPress plugin Sidebars Gutenberg Blocks scored89%from 54 tests.

About plugin

  • Plugin page: sidebars-blocks
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Dec 13, 2021
  • Latest release: Aug 15, 2023
  • Number of updates: 13
  • Update frequency: every 46.9 days
  • Top authors: grandplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /718 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼12.49ms] Passed 4 tests

This is a short check of server-side resources used by Sidebars Gutenberg Blocks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.77 ▼5.10
Dashboard /wp-admin3.40 ▲0.0543.78 ▼19.58
Posts /wp-admin/edit.php3.51 ▲0.1547.16 ▲1.71
Add New Post /wp-admin/post-new.php5.98 ▲0.0979.17 ▼25.93
Media Library /wp-admin/upload.php3.32 ▲0.0934.32 ▲0.65

Server storage [IO: ▲0.03MB] [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: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Sidebars Gutenberg Blocks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.131.70 ▼0.0645.41 ▲2.36
Dashboard /wp-admin2,206 ▲184.85 ▼1.02107.24 ▼11.8641.05 ▼4.55
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0340.26 ▲3.8335.92 ▲1.47
Add New Post /wp-admin/post-new.php6,195 ▲4,67619.13 ▼3.95877.10 ▲213.2655.53 ▲8.02
Media Library /wp-admin/upload.php1,391 ▼04.17 ▼0.0594.77 ▼4.1641.37 ▼1.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 | 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 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: The official readme.txt is a good inspiration

sidebars-blocks/gpls-ssig-widgets-in-gutenberg.php 85% from 13 tests

"Sidebars Gutenberg Blocks" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("sidebars-blocks.php" instead of "gpls-ssig-widgets-in-gutenberg.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin489 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP10104274488
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity12.60
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods39
▷ Static methods820.51%
▷ Public methods3794.87%
▷ Protected methods00.00%
▷ Private methods25.13%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants2
▷ Global constants2100.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