84% xo-liteslider

Code Review | XO Slider

WordPress plugin XO Slider scored84%from 54 tests.

About plugin

  • Plugin page: xo-liteslider
  • Plugin version: 3.7.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Feb 2, 2016
  • Latest release: Oct 27, 2023
  • Number of updates: 84
  • Update frequency: every 33.6 days
  • Top authors: ishitaka (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

4,000+ active /29,054 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 gracefully, with no errors

Server metrics [RAM: ▲0.47MB] [CPU: ▼3.88ms] Passed 4 tests

Analyzing server-side resources used by XO Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3149.24 ▲10.74
Dashboard /wp-admin3.87 ▲0.5246.37 ▼15.51
Posts /wp-admin/edit.php3.92 ▲0.5651.29 ▲8.53
Add New Post /wp-admin/post-new.php6.45 ▲0.5585.05 ▼18.34
Media Library /wp-admin/upload.php3.73 ▲0.5042.70 ▲9.80
All Sliders /wp-admin/edit.php?post_type=xo_liteslider3.7739.88
Settings /wp-admin/edit.php?post_type=xo_liteslider&page=xo-liteslider-settings3.7040.25
Add New /wp-admin/post-new.php?post_type=xo_liteslider3.7850.69

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
xo_slider_options
widget_liteslider
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by XO Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲9114.70 ▲0.082.18 ▲0.3042.10 ▼3.05
Dashboard /wp-admin2,229 ▲495.67 ▲0.0082.11 ▼3.5037.02 ▲1.74
Posts /wp-admin/edit.php2,131 ▲311.95 ▼0.1337.74 ▼0.0134.50 ▼2.05
Add New Post /wp-admin/post-new.php6,390 ▲4,86427.86 ▲4.73934.60 ▲353.3865.01 ▲14.72
Media Library /wp-admin/upload.php1,431 ▲314.21 ▲0.0295.00 ▲1.4143.59 ▲4.87
All Sliders /wp-admin/edit.php?post_type=xo_liteslider1,1031.9749.9037.77
Settings /wp-admin/edit.php?post_type=xo_liteslider&page=xo-liteslider-settings9152.0129.8426.77
Add New /wp-admin/post-new.php?post_type=xo_liteslider2,0353.7379.3551.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_liteslider
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • xo_slider_options
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xo-liteslider/inc/class-xo-slider-widget.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'XO_Slider_Template_Base' not found in wp-content/plugins/xo-liteslider/templates/video/template.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'XO_Slider_Template_Base' not found in wp-content/plugins/xo-liteslider/templates/simple/template.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'XO_Slider_Template_Base' not found in wp-content/plugins/xo-liteslider/templates/parallax/template.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'XO_Slider_Template_Base' not found in wp-content/plugins/xo-liteslider/templates/thumbnail/template.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'XO_Slider_Template_Base' not found in wp-content/plugins/xo-liteslider/templates/coverflow/template.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'XO_Slider_Template_Base' not found in wp-content/plugins/xo-liteslider/templates/default/template.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: slideshow, carousel, slider, swiper

xo-liteslider/xo-liteslider.php Passed 13 tests

This is the main PHP file of "XO Slider" version 3.7.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
XO Slider is a plugin that allows you to easily create sliders.

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
No dangerous file extensions were detected2,825 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP143858751,928
CSS1310077711
JavaScript51835178
Markdown1308

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity44.30
▷ Minimum class complexity9.00
▷ Maximum class complexity122.00
Average method complexity6.85
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes110.00%
▷ Concrete classes990.00%
▷ Final classes00.00%
Methods76
▷ Static methods00.00%
▷ Public methods7396.05%
▷ Protected methods00.00%
▷ Private methods33.95%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin