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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 49.24 ▲10.74 |
Dashboard /wp-admin | 3.87 ▲0.52 | 46.37 ▼15.51 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 51.29 ▲8.53 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.55 | 85.05 ▼18.34 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 42.70 ▲9.80 |
All Sliders /wp-admin/edit.php?post_type=xo_liteslider | 3.77 | 39.88 |
Settings /wp-admin/edit.php?post_type=xo_liteslider&page=xo-liteslider-settings | 3.70 | 40.25 |
Add New /wp-admin/post-new.php?post_type=xo_liteslider | 3.78 | 50.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲91 | 14.70 ▲0.08 | 2.18 ▲0.30 | 42.10 ▼3.05 |
Dashboard /wp-admin | 2,229 ▲49 | 5.67 ▲0.00 | 82.11 ▼3.50 | 37.02 ▲1.74 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.95 ▼0.13 | 37.74 ▼0.01 | 34.50 ▼2.05 |
Add New Post /wp-admin/post-new.php | 6,390 ▲4,864 | 27.86 ▲4.73 | 934.60 ▲353.38 | 65.01 ▲14.72 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.21 ▲0.02 | 95.00 ▲1.41 | 43.59 ▲4.87 |
All Sliders /wp-admin/edit.php?post_type=xo_liteslider | 1,103 | 1.97 | 49.90 | 37.77 |
Settings /wp-admin/edit.php?post_type=xo_liteslider&page=xo-liteslider-settings | 915 | 2.01 | 29.84 | 26.77 |
Add New /wp-admin/post-new.php?post_type=xo_liteslider | 2,035 | 3.73 | 79.35 | 51.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 385 | 875 | 1,928 |
CSS | 13 | 100 | 77 | 711 |
JavaScript | 5 | 18 | 35 | 178 |
Markdown | 1 | 3 | 0 | 8 |
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 code | 0.49 |
Average class complexity | 44.30 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 6.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 73 | 96.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.95% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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