84% responsive-owl-carousel-elementor

Code Review | Responsive Owl Carousel for Elementor

WordPress plugin Responsive Owl Carousel for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: responsive-owl-ca...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: May 17, 2022
  • Latest release: Nov 10, 2023
  • Number of updates: 8
  • Update frequency: every 67.8 days
  • Top authors: thenahidul (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /7,813 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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.70ms] Passed 4 tests

An overview of server-side resources used by Responsive Owl Carousel for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.28 ▼4.12
Dashboard /wp-admin3.31 ▼0.0344.75 ▼17.49
Posts /wp-admin/edit.php3.36 ▲0.0047.39 ▲2.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.78 ▼4.85
Media Library /wp-admin/upload.php3.23 ▲0.0031.53 ▼4.34

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsive Owl Carousel for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6014.25 ▲0.161.73 ▲0.0740.24 ▼3.21
Dashboard /wp-admin2,212 ▲355.63 ▼0.0192.27 ▲2.7441.07 ▼0.29
Posts /wp-admin/edit.php2,117 ▲171.98 ▲0.0341.68 ▲5.0034.81 ▼0.16
Add New Post /wp-admin/post-new.php1,538 ▲1223.33 ▲0.09596.95 ▼109.2453.34 ▲0.35
Media Library /wp-admin/upload.php1,420 ▲234.23 ▲0.06100.27 ▼11.6241.45 ▼4.75

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Please take a closer look at the following
  • 31× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: field_prefix in wp-content/plugins/responsive-owl-carousel-elementor/includes/widgets/views/social.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function owce_get_text_with_tag() in wp-content/plugins/responsive-owl-carousel-elementor/includes/widgets/views/content.php:7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/responsive-owl-carousel-elementor/includes/widgets/views/thumbnail.php on line 7
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/responsive-owl-carousel-elementor/includes/widgets/views/social.php on line 7
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/responsive-owl-carousel-elementor/includes/widgets/views/content.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function owce_get_text_with_tag() in wp-content/plugins/responsive-owl-carousel-elementor/includes/widgets/views/title.php:7
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/responsive-owl-carousel-elementor/includes/widgets/views/subtitle.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/responsive-owl-carousel-elementor/includes/widgets/views/subtitle.php on line 6
    • > PHP Notice
      Undefined variable: field_prefix in wp-content/plugins/responsive-owl-carousel-elementor/includes/widgets/views/quote.php on line 6
    • > PHP Notice
      Undefined variable: field_prefix in wp-content/plugins/responsive-owl-carousel-elementor/includes/widgets/views/content.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
9 plugin tags: carousel slider, testimonial slider, testimonial carousel, image carousel, owl carousel...

responsive-owl-carousel-elementor/owl-carousel-elementor.php 92% from 13 tests

The main PHP file in "Responsive Owl Carousel for Elementor" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("responsive-owl-carousel-elementor.php" instead of "owl-carousel-elementor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,172 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP212856871,666
CSS36529308
JavaScript32320198

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods22
▷ Static methods14.55%
▷ Public methods1986.36%
▷ Protected methods29.09%
▷ Private methods14.55%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants555.56%
▷ Class constants444.44%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/css/owl.video.play.png4.86KB2.74KB▼ 43.61%