67% block-slider

Code Review | Block Slider - Responsive Image Slider, Video Slider & Post Slider

WordPress plugin Block Slider - Responsive Image Slider, Video Slider & Post Slider scored 67% from 54 tests.

About plugin

  • Plugin page: block-slider
  • Plugin version: 2.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.3
  • WordPress version: 6.3.1
  • First release: Nov 20, 2018
  • Latest release: Aug 30, 2023
  • Number of updates: 40
  • Update frequency: every 43.6 days
  • Top authors: munirkamal (80%)zafarkamal (22.5%)

Code review

54 tests

User reviews

17 reviews

Install metrics

4,000+ active / 50,332 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.71MB] [CPU: ▼0.55ms] Passed 4 tests

This is a short check of server-side resources used by Block Slider - Responsive Image Slider, Video Slider & Post Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.23 ▲0.7738.78 ▲1.63
Dashboard /wp-admin4.05 ▲0.7547.99 ▲3.40
Posts /wp-admin/edit.php4.11 ▲0.7549.28 ▼0.30
Add New Post /wp-admin/post-new.php6.67 ▲0.7997.18 ▼6.92
Media Library /wp-admin/upload.php3.81 ▲0.5938.56 ▲3.50
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius4.1437.61

Server storage [IO: ▲4.33MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 278 new files
Database: no new tables, 10 new options
New WordPress options
_blockslider_is_flashed_cpt
fs_debug_mode
fs_accounts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
fs_active_plugins
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Block Slider - Responsive Image Slider, Video Slider & Post Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲14913.29 ▼1.011.91 ▲0.1529.88 ▼17.40
Dashboard /wp-admin2,254 ▲695.85 ▲0.98101.57 ▼9.6440.23 ▼1.58
Posts /wp-admin/edit.php2,146 ▲542.03 ▲0.0140.26 ▲0.2438.46 ▼0.20
Add New Post /wp-admin/post-new.php6,440 ▲4,92123.75 ▲0.55852.76 ▲164.9976.67 ▲17.71
Media Library /wp-admin/upload.php1,441 ▲564.23 ▲0.0098.54 ▼5.0243.28 ▼0.97
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0951.7427.0026.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/block-slider/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 10 options in the database
    • can_compress_scripts
    • db_upgraded
    • fs_active_plugins
    • fs_accounts
    • fs_debug_mode
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • _blockslider_is_flashed_cpt
    • theysaidso_admin_options

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 10× PHP files output text when accessed directly:
    • > /wp-content/plugins/block-slider/bootstrap.php
    • > /wp-content/plugins/block-slider/app/Notices/UnsupportedVersionNotice.php
    • > /wp-content/plugins/block-slider/app/App.php
    • > /wp-content/plugins/block-slider/app/QuerySlider.php
    • > /wp-content/plugins/block-slider/app/Admin.php
    • > /wp-content/plugins/block-slider/block-slider.php
    • > /wp-content/plugins/block-slider/app/Slider.php
    • > /wp-content/plugins/block-slider/app/WooQuerySupport.php
    • > /wp-content/plugins/block-slider/app/Views/UnsupportedVersionNotice.php
    • > /wp-content/plugins/block-slider/app/Notice.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Trait 'CakeWP\\BlockSlider\\Traits\\DynamicPostClass' not found in wp-content/plugins/block-slider/app/Blocks/BlockSlider.php on line 16
    • > PHP Fatal error
      Trait 'CakeWP\\BlockSlider\\Traits\\DynamicPostClass' not found in wp-content/plugins/block-slider/app/Blocks/Navigation.php on line 17
    • > PHP Fatal error
      Trait 'CakeWP\\BlockSlider\\Traits\\DynamicPostClass' not found in wp-content/plugins/block-slider/app/Blocks/Pagination.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/block-slider/app/Views/PageTemplates/Single.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: post slider, slider, image slider, wordpress slider, responsive slider

block-slider/block-slider.php 77% from 13 tests

"Block Slider - Responsive Image Slider, Video Slider & Post Slider" version 2.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.8" instead of "5.7")
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.2" instead of "5.6")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected37,445 lines of code in 230 files:
LanguageFilesBlank linesComment linesLines of code
PHP1778,69918,63035,151
JSON9001,785
Markdown4940247
JavaScript153469216
CSS242043
SVG1003

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity54.40
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.41
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces10
Interfaces0
Traits2
Classes85
▷ Abstract classes22.35%
▷ Concrete classes8397.65%
▷ Final classes11.20%
Methods1,393
▷ Static methods23516.87%
▷ Public methods99571.43%
▷ Protected methods171.22%
▷ Private methods38127.35%
Functions114
▷ Named functions10188.60%
▷ Anonymous functions1311.40%
Constants148
▷ Global constants10168.24%
▷ Class constants4731.76%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/block-slider.png9.16KB5.26KB▼ 42.58%