83% b-carousel-block

Code Review | B Carousel Block - Responsive slider

WordPress plugin B Carousel Block - Responsive slider scored 83% from 54 tests.

About plugin

  • Plugin page: b-carousel-block
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 4, 2022
  • Latest release: Oct 3, 2023
  • Number of updates: 18
  • Update frequency: every 28.8 days
  • Top authors: charlescormier (66.67%)abuhayat (38.89%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active / 10,119 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by B Carousel Block - Responsive slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.08 ▼3.94
Dashboard /wp-admin3.33 ▲0.0244.52 ▼2.73
Posts /wp-admin/edit.php3.38 ▲0.0252.46 ▲6.10
Add New Post /wp-admin/post-new.php5.93 ▲0.0595.60 ▲4.27
Media Library /wp-admin/upload.php3.25 ▲0.0240.51 ▲5.60

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

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

Browser metrics Passed 4 tests

A check of browser resources used by B Carousel Block - Responsive slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲6013.79 ▼0.517.23 ▲4.9837.98 ▼6.45
Dashboard /wp-admin2,206 ▲185.90 ▲0.03108.16 ▼4.1843.44 ▲3.63
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0639.33 ▼0.4434.90 ▼2.51
Add New Post /wp-admin/post-new.php6,600 ▲5,08124.43 ▲1.04832.09 ▲149.6034.42 ▼21.15
Media Library /wp-admin/upload.php1,385 ▼04.19 ▼0.0597.58 ▲1.4541.80 ▼1.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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 items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant BICB_PLUGIN_VERSION - assumed 'BICB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/b-carousel-block/dist/editor.asset.php on line 3
    • > PHP Warning
      Use of undefined constant BICB_PLUGIN_VERSION - assumed 'BICB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/b-carousel-block/dist/script.asset.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Requires at least: Invalid plugin version format
You can take inspiration from this readme.txt

b-carousel-block/index.php 85% from 13 tests

The main PHP script in "B Carousel Block - Responsive slider" version 1.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("b-carousel-block.php" instead of "index.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin265 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON200124
PO File1397196
PHP3111340
JavaScript31133
CSS2022

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin