84% simple-owl-carousel

Code Review | Simple Owl Carousel

WordPress plugin Simple Owl Carousel scored84%from 54 tests.

About plugin

  • Plugin page: simple-owl-carousel
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Jul 22, 2016
  • Latest release: Aug 10, 2023
  • Number of updates: 28
  • Update frequency: every 92.0 days
  • Top authors: PressTigers (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active /11,790 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.21MB] [CPU: ▲8.67ms] Passed 4 tests

An overview of server-side resources used by Simple Owl Carousel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1951.17 ▲9.63
Dashboard /wp-admin3.57 ▲0.2763.83 ▲15.11
Posts /wp-admin/edit.php3.61 ▲0.2663.66 ▲14.25
Add New Post /wp-admin/post-new.php6.10 ▲0.2194.30 ▼0.84
Media Library /wp-admin/upload.php3.42 ▲0.1944.79 ▲11.63
All Sliders /wp-admin/edit.php?post_type=soc_slider3.4747.68
Add New /wp-admin/post-new.php?post_type=soc_slider3.4950.04

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Owl Carousel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,088 ▲31715.44 ▲1.026.29 ▲4.2743.89 ▲0.55
Dashboard /wp-admin2,378 ▲1906.45 ▲0.57128.90 ▲12.1839.62 ▼9.02
Posts /wp-admin/edit.php2,291 ▲1993.36 ▲1.3956.50 ▲18.1541.19 ▲6.87
Add New Post /wp-admin/post-new.php1,547 ▲3023.29 ▲5.63572.79 ▼68.9832.65 ▼30.01
Media Library /wp-admin/upload.php1,430 ▲424.19 ▼0.0684.89 ▼13.9744.87 ▲1.74
All Sliders /wp-admin/edit.php?post_type=soc_slider1,2723.3548.5228.68
Add New /wp-admin/post-new.php?post_type=soc_slider1,6463.5273.2633.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-owl-carousel/admin/partials/simple-owl-carousel-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: fade scroller, owl carousel, owl slider, layered, scroller...

simple-owl-carousel/simple-owl-carousel.php Passed 13 tests

The main file in "Simple Owl Carousel" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
90 characters long description:
Based on the Owl Carousel, an extremely powerful, robust & responsive customizable plugin.

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
Success! There were no dangerous files found in this plugin2,983 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript65301,0102,283
PHP17168720537
CSS41840163

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.42
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.66
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods44
▷ Static methods49.09%
▷ Public methods3988.64%
▷ Protected methods00.00%
▷ Private methods511.36%
Functions4
▷ Named functions4100.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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/close.png0.27KB0.29KB0.00%
admin/images/soc-icon.png1.38KB0.82KB▼ 40.45%
public/images/next.png1.32KB1.58KB0.00%
public/images/prev.png1.33KB1.59KB0.00%
public/images/grabbing.png0.11KB0.14KB0.00%