62% slider-hero

Code Review | Slider Hero with Animation, Video Background

WordPress plugin Slider Hero with Animation, Video Background scored62%from 54 tests.

About plugin

  • Plugin page: slider-hero
  • Plugin version: 8.5.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Apr 13, 2017
  • Latest release: Nov 24, 2023
  • Number of updates: 176
  • Update frequency: every 13.7 days
  • Top authors: quantumcloud (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

4,000+ active /158,809 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲2.09MB] [CPU: ▲14.77ms] Passed 4 tests

Analyzing server-side resources used by Slider Hero with Animation, Video Background
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.62 ▲1.1550.48 ▲8.61
Dashboard /wp-admin5.71 ▲2.3666.85 ▲7.29
Posts /wp-admin/edit.php5.82 ▲2.4667.08 ▲21.22
Add New Post /wp-admin/post-new.php8.32 ▲2.42119.30 ▲21.95
Media Library /wp-admin/upload.php5.64 ▲2.4059.70 ▲24.98
Settings /wp-admin/admin.php?page=sh-options-page5.6263.75
Manage Slider /wp-admin/admin.php?page=Slider-Hero6.7360.76
Getting Started /wp-admin/admin.php?page=qcld_sliderhero_getting_started5.6250.33
Import/Export (Pro) /wp-admin/admin.php?page=import-export5.5961.45
Help /wp-admin/admin.php?page=qc-sliderhero-sessions-help-license5.6051.75
Support /wp-admin/admin.php?page=qcpro-promo-page-qcld-slider-hero-pro-support5.5968.69
New Slider /wp-admin/admin.php?page=New-Slider-Hero5.5947.38

Server storage [IO: ▲18.97MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 519 new files
Database: 2 new tables, 11 new options
New tables
wp_qcld_slider_hero_sliders
wp_qcld_slider_hero_slides
New WordPress options
widget_recent-comments
hero_latest_dpn
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
sh_plugin_options
ot_media_post_ID
option_tree_settings
theysaidso_admin_options
db_upgraded
...

Browser metrics Passed 4 tests

An overview of browser requirements for Slider Hero with Animation, Video Background
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,603 ▲85614.24 ▼0.0611.18 ▲9.5232.90 ▼10.01
Dashboard /wp-admin2,851 ▲6746.25 ▲0.7396.79 ▼5.0339.61 ▼0.84
Posts /wp-admin/edit.php2,759 ▲6592.87 ▲0.9345.48 ▲2.7840.86 ▲2.48
Add New Post /wp-admin/post-new.php7,007 ▲5,48119.99 ▼2.99903.05 ▲264.9334.73 ▼21.23
Media Library /wp-admin/upload.php2,062 ▲6684.91 ▲0.73107.16 ▲7.6246.99 ▲3.30
Settings /wp-admin/admin.php?page=sh-options-page1,9126.04122.1474.18
Manage Slider /wp-admin/admin.php?page=Slider-Hero1,7934.7284.42106.22
Getting Started /wp-admin/admin.php?page=qcld_sliderhero_getting_started3,88523.36749.2092.11
Import/Export (Pro) /wp-admin/admin.php?page=import-export1,5992.5138.2442.88
Help /wp-admin/admin.php?page=qc-sliderhero-sessions-help-license2,81216.65468.4742.80
Support /wp-admin/admin.php?page=qcpro-promo-page-qcld-slider-hero-pro-support2,9322.5249.8499.78
New Slider /wp-admin/admin.php?page=New-Slider-Hero2,3592.3533.78226.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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 plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_qcld_slider_hero_sliders
    • wp_qcld_slider_hero_slides
  • Zombie WordPress options detected upon uninstall: 11 options
    • option_tree_settings
    • can_compress_scripts
    • db_upgraded
    • sh_plugin_options
    • widget_recent-posts
    • theysaidso_admin_options
    • option_tree
    • widget_recent-comments
    • hero_latest_dpn
    • ot_media_post_ID
    • ...

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 15× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/slider-hero/qc-view/slider_hero_front_end_audio.php
    • > /wp-content/plugins/slider-hero/option-tree/includes/ot-functions.php
    • > /wp-content/plugins/slider-hero/qc-fnc/qcld_sliderhero_ajax_prev.php
    • > /wp-content/plugins/slider-hero/option-tree/includes/class-ot-post-formats.php
    • > /wp-content/plugins/slider-hero/option-tree/includes/ot-functions-compat.php
    • > /wp-content/plugins/slider-hero/qc-fnc/qcld_sliderhero_ajax_prev2.php
    • > /wp-content/plugins/slider-hero/option-tree/includes/ot-functions-option-types.php
    • > /wp-content/plugins/slider-hero/option-tree/includes/ot-functions-docs-page.php
    • > /wp-content/plugins/slider-hero/option-tree/includes/class-ot-cleanup.php
    • > /wp-content/plugins/slider-hero/option-tree/includes/class-ot-settings.php
  • 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: _slider in wp-content/plugins/slider-hero/qc-view/slider_hero_front_end_audio.php on line 35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/slider-hero/gutenberg/slider-hero-block/plugin.php:6
    • > PHP Notice
      Trying to get property 'type' of non-object in wp-content/plugins/slider-hero/qc-view/slider_hero_tab_animate_css_section.php on line 2
    • > PHP Notice
      Trying to get property 'type' of non-object in wp-content/plugins/slider-hero/qc-view/slider_hero_front_end_audio.php on line 35
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/slider-hero/qc-view/slider_hero_front_end_audio.php on line 35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-hero/option-tree/assets/theme-mode/demo-meta-boxes.php:8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/slider-hero/qc-view/slider_hero_tab_animate_css_section.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/slider-hero/qc-support-promo-page/class-qc-support-promo-page.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/slider-hero/class-qc-free-plugin-upgrade-notice.php:180
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-hero/elementor/init.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=sh-options-page
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: _qchero is not defined" "ReferenceError: _qchero is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/slider-hero/js/admin.js?ver=6.3.1:178:9)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=sh-options-page
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: _qchero is not defined" "ReferenceError: _qchero is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/slider-hero/js/admin.js?ver=6.3.1:585:9)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sh-options-page
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28721 Uncaught ReferenceError: _qchero is not defined
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=New-Slider-Hero
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: _qchero is not defined" "ReferenceError: _qchero is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/slider-hero/js/admin.js?ver=6.3.1:178:9)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=New-Slider-Hero
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: _qchero is not defined" "ReferenceError: _qchero is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/slider-hero/js/admin.js?ver=6.3.1:585:9)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=qcld_sliderhero_getting_started
    • > Network (severe)
    wp-admin/ajax-loader.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=New-Slider-Hero
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: _qchero is not defined
    • > GET request to /wp-admin/admin.php?page=qcld_sliderhero_getting_started
    • > Network (severe)
    wp-admin/fonts/slick.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=qcld_sliderhero_getting_started
    • > Network (severe)
    wp-admin/fonts/slick.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=qcpro-promo-page-qcld-slider-hero-pro-support
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tabs&ver=6.3.1 1:28609 "jQuery.Deferred exception: _qchero is not defined" "ReferenceError: _qchero is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/slider-hero/js/admin.js?ver=6.3.1:178:9)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tabs&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tabs&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=qcpro-promo-page-qcld-slider-hero-pro-support
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tabs&ver=6.3.1 1:28609 "jQuery.Deferred exception: _qchero is not defined" "ReferenceError: _qchero is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/slider-hero/js/admin.js?ver=6.3.1:585:9)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tabs&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tabs&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=qcpro-promo-page-qcld-slider-hero-pro-support
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tabs&ver=6.3.1 1:28721 Uncaught ReferenceError: _qchero is not defined

Optimizations

Plugin configuration 93% from 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
5 plugin tags: elementor slider, video slider, banner slider, slider, video background

slider-hero/qcld-slider-main.php 85% from 13 tests

The main PHP file in "Slider Hero with Animation, Video Background" ver. 8.5.6 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 195 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("slider-hero.php" instead of "qcld-slider-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected86,055 lines of code in 206 files:
LanguageFilesBlank linesComment linesLines of code
JSON70028,297
PHP565,4804,63723,990
CSS321,25256716,099
JavaScript982,8231,05313,525
SVG6003,930
LESS12929166
Sass33137
HTML1008
Markdown2103

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity36.40
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods89
▷ Static methods00.00%
▷ Public methods8191.01%
▷ Protected methods22.25%
▷ Private methods66.74%
Functions259
▷ Named functions25498.07%
▷ Anonymous functions51.93%
Constants34
▷ Global constants34100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
116 PNG files occupy 7.10MB with 1.95MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
qc-support-promo-page/images/premium-theme-simple-blog.png72.36KB21.20KB▼ 70.70%
images/clouds_3.png110.61KB88.73KB▼ 19.78%
images/fonts/sedgwick_ave.png3.65KB2.94KB▼ 19.44%
images/restart.png2.09KB2.53KB0.00%
qc-support-promo-page/images/notice-pro.png6.63KB4.80KB▼ 27.49%