84% simple-image-slider

Code Review | Image Slider - Gutenberg Slider Block

WordPress plugin Image Slider - Gutenberg Slider Block scored84%from 54 tests.

About plugin

  • Plugin page: simple-image-slider
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Oct 14, 2022
  • Latest release: Oct 31, 2022
  • Number of updates: 3
  • Update frequency: every 5.7 days
  • Top authors: munirkamal (66.67%)ather16 (66.67%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,053 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by Image Slider - Gutenberg Slider Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.19 ▲3.73
Dashboard /wp-admin3.32 ▲0.0149.97 ▼0.60
Posts /wp-admin/edit.php3.37 ▲0.0146.60 ▲3.04
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.89 ▼10.98
Media Library /wp-admin/upload.php3.24 ▲0.0138.09 ▲4.13

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Image Slider - Gutenberg Slider Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.42 ▲0.061.69 ▲0.0845.93 ▲2.23
Dashboard /wp-admin2,195 ▲205.63 ▼0.2993.28 ▼6.1641.62 ▲2.31
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0132.96 ▼3.2535.36 ▼0.87
Add New Post /wp-admin/post-new.php6,366 ▲4,84027.73 ▲4.83921.81 ▲216.8562.75 ▲1.65
Media Library /wp-admin/upload.php1,397 ▼34.21 ▲0.06105.96 ▲11.6141.35 ▼5.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-image-slider/simple-image-slider.php:18

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

Optimizations

Plugin configuration Passed 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
6 plugin tags: image slider, block, gutenberg slider, gutenberg, slider...

simple-image-slider/simple-image-slider.php Passed 13 tests

The main file in "Image Slider - Gutenberg Slider Block" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
113 characters long description:
Simple Image slider is a powerful and convenient block. It allows you to display multiple images on your website.

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
Everything looks great! No dangerous files found in this plugin7,834 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript734337,292
Sass230448
JSON20078
PHP231412
CSS2104

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ 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 are no PNG files in this plugin