78% rockon-owl-slider

Code Review | Rockon Owl Slider Plugin

WordPress plugin Rockon Owl Slider Plugin scored78%from 54 tests.

About plugin

  • Plugin page: rockon-owl-slider
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.6
  • WordPress version: 6.3.1
  • First release: Feb 12, 2017
  • Latest release: Dec 6, 2020
  • Number of updates: 20
  • Update frequency: every 69.7 days
  • Top authors: devikas301 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /693 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
Install script ran successfully

Server metrics [RAM: ▼0.63MB] [CPU: ▼22.14ms] Passed 4 tests

Analyzing server-side resources used by Rockon Owl Slider Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0745.10 ▼1.25
Dashboard /wp-admin3.37 ▲0.0351.96 ▼16.23
Posts /wp-admin/edit.php3.42 ▲0.0754.47 ▼1.73
Add New Post /wp-admin/post-new.php3.21 ▼2.6838.87 ▼69.33
Media Library /wp-admin/upload.php3.30 ▲0.0738.17 ▲3.60
Rockon Owl Slider /wp-admin/edit.php?post_type=rockon_slides3.3438.56
Add New Slide /wp-admin/post-new.php?post_type=rockon_slides3.1535.85

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rockon Owl Slider Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲9414.27 ▼0.083.10 ▲1.0343.34 ▲1.38
Dashboard /wp-admin2,226 ▲495.73 ▲0.2087.55 ▼14.0886.93 ▲41.78
Posts /wp-admin/edit.php2,137 ▲372.05 ▲0.0837.21 ▲1.4533.71 ▲0.80
Add New Post /wp-admin/post-new.php1,570 ▲4222.89 ▼0.27660.61 ▼12.12153.58 ▲94.46
Media Library /wp-admin/upload.php1,428 ▲284.14 ▼0.0398.82 ▼6.6764.12 ▲16.08
Rockon Owl Slider /wp-admin/edit.php?post_type=rockon_slides1,0921.9734.6331.00
Add New Slide /wp-admin/post-new.php?post_type=rockon_slides1,7253.6366.3277.95

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 were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=rockon_slides
    • > Notice in wp-content/plugins/rockon-owl-slider/rockon-owl-slider.php+178
    Undefined index: ros_slideurl
    • > GET request to /wp-admin/post-new.php?post_type=rockon_slides
    • > Notice in wp-content/plugins/rockon-owl-slider/rockon-owl-slider.php+178
    Undefined index: ros_slidetarget

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rockon-owl-slider/rockon-owl-slider.php:12

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 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Slider view in the front-end.), #2 (Showing shortcode on plugin section back-end.), #3 (Set slider width on back-end (default 100%).), #4 (Add slide in back-end.)
The official readme.txt is a good inspiration

rockon-owl-slider/rockon-owl-slider.php 92% from 13 tests

This is the main PHP file of "Rockon Owl Slider Plugin" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 339 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,466 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34699111,919
CSS82055298
PHP23529249

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 1.79MB with 1.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrow_down.png1.82KB0.69KB▼ 62.00%
owlcarousel/assets/owl.video.play.png4.86KB2.74KB▼ 43.61%
screenshot-3.png712.05KB226.12KB▼ 68.24%
images/arrow_left.png2.30KB1.09KB▼ 52.59%
screenshot-1.png897.37KB291.51KB▼ 67.52%