83% responsive-owl-carousel

Code Review | Owl carousel responsive

WordPress plugin Owl carousel responsive scored83%from 54 tests.

About plugin

  • Plugin page: responsive-owl-ca...
  • Plugin version: 1.9
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Nov 30, 2017
  • Latest release: Dec 1, 2022
  • Number of updates: 18
  • Update frequency: every 101.6 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,186 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.40ms] Passed 4 tests

Server-side resources used by Owl carousel responsive
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0936.06 ▼0.36
Dashboard /wp-admin3.40 ▲0.0545.67 ▼12.36
Posts /wp-admin/edit.php3.51 ▲0.1546.83 ▲0.11
Add New Post /wp-admin/post-new.php5.98 ▲0.0980.80 ▼16.97
Media Library /wp-admin/upload.php3.32 ▲0.0939.39 ▲9.39
Create Gallery /wp-admin/admin.php?page=owlc-gallery3.3331.08
Add Images /wp-admin/admin.php?page=owlc-images3.3336.30

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: 1 new table, 7 new options
New tables
wp_owl_carousel_tbl
New WordPress options
theysaidso_admin_options
widget_recent-posts
owl-carousel-responsive
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Owl carousel responsive
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲13513.46 ▼0.897.99 ▲6.3038.67 ▼0.17
Dashboard /wp-admin2,221 ▲445.62 ▼0.0081.51 ▼2.3936.12 ▼7.88
Posts /wp-admin/edit.php2,126 ▲262.03 ▲0.0041.65 ▲4.2238.87 ▲5.74
Add New Post /wp-admin/post-new.php1,545 ▲1923.12 ▼0.46675.91 ▲25.6452.04 ▲2.35
Media Library /wp-admin/upload.php1,423 ▲264.15 ▼0.0295.24 ▼6.8944.15 ▲1.31
Create Gallery /wp-admin/admin.php?page=owlc-gallery9332.0025.4926.60
Add Images /wp-admin/admin.php?page=owlc-images1,1942.0024.4425.98

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
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 5× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/responsive-owl-carousel/gallery/gallery-add.php
    • > /wp-content/plugins/responsive-owl-carousel/images/images-edit.php
    • > /wp-content/plugins/responsive-owl-carousel/images/images-add.php
    • > /wp-content/plugins/responsive-owl-carousel/owl-carousel-responsive.php
    • > /wp-content/plugins/responsive-owl-carousel/gallery/gallery-edit.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: carousel, images, responsive, gallery, owl

responsive-owl-carousel/owl-carousel-responsive.php 77% from 13 tests

This is the main PHP file of "Owl carousel responsive" version 1.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("responsive-owl-carousel.php" instead of "owl-carousel-responsive.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin3,740 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34749071,976
PHP15251861,354
CSS1416212
PO File186108198

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.14
▷ Minimum class complexity2.00
▷ Maximum class complexity14.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods26100.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin