84% ht-slider-for-elementor

Code Review | HT Slider For Elementor

WordPress plugin HT Slider For Elementor scored84%from 54 tests.

About plugin

  • Plugin page: ht-slider-for-ele...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 24, 2019
  • Latest release: Aug 29, 2023
  • Number of updates: 43
  • Update frequency: every 37.7 days
  • Top authors: htplugins (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10,000+ active /147,824 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.82ms] Passed 4 tests

Server-side resources used by HT Slider For Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.55 ▲7.24
Dashboard /wp-admin3.32 ▲0.0243.22 ▼5.63
Posts /wp-admin/edit.php3.37 ▲0.0246.97 ▼4.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.55 ▼8.23
Media Library /wp-admin/upload.php3.24 ▲0.0234.33 ▲2.61

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by HT Slider For Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲5514.44 ▲0.061.90 ▼0.3738.80 ▼3.47
Dashboard /wp-admin2,227 ▲385.86 ▲0.9797.64 ▼18.7138.92 ▼1.19
Posts /wp-admin/edit.php2,115 ▲262.04 ▲0.0538.79 ▼3.7836.31 ▼1.40
Add New Post /wp-admin/post-new.php1,560 ▲2423.42 ▲0.24662.27 ▼16.5753.11 ▼10.57
Media Library /wp-admin/upload.php1,412 ▲244.22 ▲0.06102.10 ▼1.5545.38 ▲3.65

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/ht-slider-for-elementor/index.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ht-slider-for-elementor/include/helpers_function.php:104
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Icons_Manager' not found in wp-content/plugins/ht-slider-for-elementor/include/htslider_icon_manager.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ht-slider-for-elementor/include/custom-post-type.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ht-slider-for-elementor/include/admin/templates_list.php:14

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 on the user side

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
5 plugin tags: slider, elementor addons, widgets, elementor, post type slider

ht-slider-for-elementor/ht-slider-for-elementor.php 92% from 13 tests

The primary PHP file in "HT Slider For Elementor" version 1.5.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin9,315 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP137022696,117
CSS6113491,298
JSON110982
JavaScript7298161918

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity22.29
▷ Minimum class complexity8.00
▷ Maximum class complexity46.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods77
▷ Static methods810.39%
▷ Public methods6989.61%
▷ Protected methods67.79%
▷ Private methods22.60%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants872.73%
▷ Class constants327.27%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/images/extensions/whols-pro.png15.30KB7.40KB▼ 51.65%
assets/admin/images/extensions/htmega-pro.png4.60KB4.78KB0.00%
(invalid) assets/admin/images/extensions/wp-plugin-manager-pro.png13.31KB0.00KB▼ 100.00%
(invalid) assets/admin/images/extensions/was-this-helpful.png1.21KB0.00KB▼ 100.00%
(invalid) assets/admin/images/extensions/ht-google-place-review.png2.64KB0.00KB▼ 100.00%