84% image-slider-block

Code Review | Image Slider Blocks

WordPress plugin Image Slider Blocks scored84%from 54 tests.

About plugin

  • Plugin page: image-slider-block
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 25, 2019
  • Latest release: Nov 19, 2023
  • Number of updates: 16
  • Update frequency: every 106.8 days
  • Top authors: anna_werner (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

200+ active /3,762 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.06ms] Passed 4 tests

A check of server-side resources used by Image Slider Blocks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0434.55 ▼4.92
Dashboard /wp-admin3.33 ▼0.0249.55 ▼9.09
Posts /wp-admin/edit.php3.38 ▲0.0248.63 ▲1.23
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.58 ▼19.45
Media Library /wp-admin/upload.php3.25 ▲0.0238.91 ▲5.56

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Image Slider Blocks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲12213.42 ▼0.927.93 ▲6.2135.66 ▼2.71
Dashboard /wp-admin2,198 ▲185.62 ▼0.0187.94 ▼1.8939.96 ▼3.93
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0140.42 ▼0.8336.93 ▲0.71
Add New Post /wp-admin/post-new.php6,366 ▲4,84027.45 ▲4.02846.42 ▲237.5552.61 ▼19.92
Media Library /wp-admin/upload.php1,400 ▲64.17 ▲0.0096.62 ▼3.8143.28 ▲0.63

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-slider-block/image-slider-block.php:154

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: gallery, image, gutenberg, slider, media...

image-slider-block/image-slider-block.php 92% from 13 tests

Analyzing the main PHP file in "Image Slider Blocks" version 2.0.1
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected29,328 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PO File1212570

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods116.67%
▷ Public methods583.33%
▷ Protected methods116.67%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin