90% slider-block

Code Review | Image Slider Block

WordPress plugin Image Slider Block scored90%from 54 tests.

About plugin

  • Plugin page: slider-block
  • Plugin version: 1.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Aug 25, 2020
  • Latest release: Mar 30, 2023
  • Number of updates: 13
  • Update frequency: every 72.9 days
  • Top authors: wpdevteam (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

4,000+ active /22,282 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 gracefully, with no errors

Server metrics [RAM: ▲0.17MB] [CPU: ▼2.62ms] Passed 4 tests

This is a short check of server-side resources used by Image Slider Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1947.37 ▲7.73
Dashboard /wp-admin3.46 ▲0.1554.17 ▼1.28
Posts /wp-admin/edit.php3.57 ▲0.2148.99 ▲3.10
Add New Post /wp-admin/post-new.php6.06 ▲0.1894.89 ▼8.37
Media Library /wp-admin/upload.php3.38 ▲0.1532.98 ▼3.91

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Image Slider Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.81 ▲0.2242.81 ▲2.73
Dashboard /wp-admin2,192 ▲115.53 ▼0.1986.76 ▼17.0148.84 ▲3.61
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0639.84 ▲3.0337.10 ▲2.22
Add New Post /wp-admin/post-new.php6,207 ▲4,67920.41 ▼2.56944.94 ▲268.5139.74 ▼24.01
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0998.82 ▼10.8740.95 ▼7.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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)
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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can take inspiration from this readme.txt

slider-block/slider-block.php Passed 13 tests

The main PHP file in "Image Slider Block" ver. 1.3.6 adds more information about the plugin and also serves as the entry point for this plugin
64 characters long description:
Display Multiple Images In Beautiful Slider & Reduce Page Scroll

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,043 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP10104165713
CSS44611239
JavaScript69482
JSON1009

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity32.40
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods33
▷ Static methods1236.36%
▷ Public methods2987.88%
▷ Protected methods00.00%
▷ Private methods412.12%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants3
▷ Global constants3100.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 images were found in this plugin