89% bps-splide-slider-block

Code Review | BPS Splide Slider Block

WordPress plugin BPS Splide Slider Block scored89%from 54 tests.

About plugin

  • Plugin page: bps-splide-slider...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2022
  • Latest release: Jul 8, 2023
  • Number of updates: 9
  • Update frequency: every 56.0 days
  • Top authors: bpsbps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /470 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.20ms] Passed 4 tests

A check of server-side resources used by BPS Splide Slider Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.91 ▼0.59
Dashboard /wp-admin3.45 ▲0.1048.75 ▼18.72
Posts /wp-admin/edit.php3.56 ▲0.2049.89 ▲0.36
Add New Post /wp-admin/post-new.php6.03 ▲0.1495.10 ▼1.83
Media Library /wp-admin/upload.php3.37 ▲0.1437.32 ▲3.97
Splide Block /wp-admin/options-general.php?page=splide-settings3.3535.09

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by BPS Splide Slider Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.40 ▲0.031.75 ▼0.0143.47 ▼1.06
Dashboard /wp-admin2,213 ▲254.87 ▼0.01100.46 ▼18.3639.58 ▼4.00
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0539.40 ▼2.0238.01 ▲1.50
Add New Post /wp-admin/post-new.php6,187 ▲4,67319.25 ▲1.56926.78 ▲236.4752.83 ▼6.85
Media Library /wp-admin/upload.php1,389 ▲14.16 ▲0.01101.29 ▼1.6541.09 ▼5.73
Splide Block /wp-admin/options-general.php?page=splide-settings9272.0325.6428.76

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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

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 93% 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
4 plugin tags: splide, blocks, slider, gutenberg

bps-splide-slider-block/index.php 85% from 13 tests

The principal PHP file in "BPS Splide Slider Block" v. 1.1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • 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
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bps-splide-slider-block.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected374 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP35719280
PO File1354387
CSS2003
JSON2002
JavaScript2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity56.00
▷ Minimum class complexity56.00
▷ Maximum class complexity56.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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 were not PNG files found in your plugin