84% splide-carousel

Code Review | Splide Carousel Block

WordPress plugin Splide Carousel Block scored84%from 54 tests.

About plugin

  • Plugin page: splide-carousel
  • Plugin version: 1.4.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.2-6.4
  • WordPress version: 6.3.1
  • First release: Oct 14, 2022
  • Latest release: Nov 10, 2023
  • Number of updates: 10
  • Update frequency: every 39.2 days
  • Top authors: dkjensen (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /2,194 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Splide Carousel Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.48 ▼1.80
Dashboard /wp-admin3.34 ▼0.0046.16 ▼14.84
Posts /wp-admin/edit.php3.39 ▲0.0444.49 ▼1.97
Add New Post /wp-admin/post-new.php5.93 ▲0.05102.86 ▲6.70
Media Library /wp-admin/upload.php3.27 ▲0.0439.01 ▲4.27

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Splide Carousel Block: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4614.09 ▼0.281.83 ▲0.0842.82 ▼0.04
Dashboard /wp-admin2,195 ▲185.53 ▼0.0486.75 ▼15.5836.03 ▼11.35
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0138.62 ▼2.5731.74 ▼2.55
Add New Post /wp-admin/post-new.php6,370 ▲4,83527.81 ▲4.34847.71 ▲161.9337.22 ▼26.01
Media Library /wp-admin/upload.php1,397 ▲34.14 ▼0.00102.25 ▲4.3343.99 ▲2.78

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • 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
Everything seems fine, however this is by no means an exhaustive test

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 errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/splide-carousel/splide-carousel.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: gutenberg, splide, block, carousel, slider...

splide-carousel/splide-carousel.php Passed 13 tests

"Splide Carousel Block" version 1.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
14 characters long description:
Carousel block

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected215 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JSON200199
PHP41209
CSS3104
JavaScript3003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
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 functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected