89% carousel-block

Code Review | Carousel Slider Block for Gutenberg

WordPress plugin Carousel Slider Block for Gutenberg scored89%from 54 tests.

About plugin

  • Plugin page: carousel-block
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Feb 3, 2019
  • Latest release: Nov 8, 2023
  • Number of updates: 31
  • Update frequency: every 56.1 days
  • Top authors: virgildia (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

10,000+ active /103,103 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.81ms] Passed 4 tests

Analyzing server-side resources used by Carousel Slider Block for Gutenberg
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.27 ▼1.50
Dashboard /wp-admin3.33 ▲0.0351.79 ▲4.87
Posts /wp-admin/edit.php3.39 ▲0.0347.24 ▲1.17
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.13 ▼8.01
Media Library /wp-admin/upload.php3.26 ▲0.0334.70 ▲1.11

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Carousel Slider Block for Gutenberg
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.67 ▲0.531.67 ▲0.0145.09 ▼0.08
Dashboard /wp-admin2,195 ▲215.60 ▼0.0894.63 ▲1.3040.90 ▼1.47
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0337.16 ▼1.2434.93 ▲0.06
Add New Post /wp-admin/post-new.php6,194 ▲4,66619.09 ▼4.01903.17 ▲280.1354.74 ▲0.02
Media Library /wp-admin/upload.php1,397 ▼64.27 ▲0.1198.93 ▼1.5241.57 ▲0.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires php: Invalid plugin version format
Please take inspiration from this readme.txt

carousel-block/plugin.php 92% from 13 tests

The main PHP script in "Carousel Slider Block for Gutenberg" version 1.0.10 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("carousel-block.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin215 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP4225598
JSON20089
SVG11013
JavaScript50411
CSS3004

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin