89% slider-blocks

Code Review | GutSlider - All in One Block Slider

WordPress plugin GutSlider - All in One Block Slider scored89%from 54 tests.

About plugin

  • Plugin page: slider-blocks
  • Plugin version: 2.5.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 11, 2023
  • Latest release: Dec 2, 2023
  • Number of updates: 19
  • Update frequency: every 9.3 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /3,678 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
Installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼5.04ms] Passed 4 tests

A check of server-side resources used by GutSlider - All in One Block Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2240.02 ▼2.69
Dashboard /wp-admin3.53 ▲0.1950.24 ▼13.57
Posts /wp-admin/edit.php3.65 ▲0.2952.13 ▲3.33
Add New Post /wp-admin/post-new.php6.42 ▲0.5488.40 ▼7.24
Media Library /wp-admin/upload.php3.46 ▲0.2338.48 ▲8.50

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

GutSlider - All in One Block Slider: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲13714.35 ▲0.101.62 ▼0.0337.75 ▼6.66
Dashboard /wp-admin2,278 ▲1015.62 ▼0.2394.46 ▼3.2144.78 ▼3.17
Posts /wp-admin/edit.php2,181 ▲812.14 ▲0.1941.87 ▲1.7735.84 ▼0.65
Add New Post /wp-admin/post-new.php6,292 ▲4,76520.12 ▼3.19999.00 ▲362.3439.49 ▼7.78
Media Library /wp-admin/upload.php1,483 ▲834.31 ▲0.15101.52 ▲5.5545.05 ▲4.21

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
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)
There were no browser issues found

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
Please fix the following attributes:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in slider-blocks/assets to your readme.txt
You can take inspiration from this readme.txt

slider-blocks/slider-blocks.php 85% from 13 tests

The primary PHP file in "GutSlider - All in One Block Slider" version 2.5.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("6.0" instead of "5.7")
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "7.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,452 lines of code in 70 files:
LanguageFilesBlank linesComment linesLines of code
PHP302553731,140
JSON600157
CSS12171194
JavaScript1941458
SVG3003

PHP code Passed 2 tests

An short overview of 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.54
Average class complexity9.27
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods46
▷ Static methods12.17%
▷ Public methods4597.83%
▷ Protected methods00.00%
▷ Private methods12.17%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin