79% yith-slider-for-page-builders

Code Review | YITH Slider for page builders

WordPress plugin YITH Slider for page builders scored79%from 54 tests.

About plugin

  • Plugin page: yith-slider-for-p...
  • Plugin version: 1.0.10
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Apr 30, 2020
  • Latest release: May 25, 2023
  • Number of updates: 15
  • Update frequency: every 74.7 days
  • Top authors: yithemes (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active /47,198 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.65ms] Passed 4 tests

An overview of server-side resources used by YITH Slider for page builders
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0647.63 ▲8.58
Dashboard /wp-admin3.35 ▲0.0547.11 ▲0.57
Posts /wp-admin/edit.php3.40 ▲0.0543.02 ▼6.14
Add New Post /wp-admin/post-new.php6.06 ▲0.1782.16 ▼14.41
Media Library /wp-admin/upload.php3.28 ▲0.0536.05 ▲5.40
Add New Slider /wp-admin/post-new.php?post_type=yith_slider3.3451.30
All Sliders /wp-admin/edit.php?post_type=yith_slider3.3238.02

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by YITH Slider for page builders
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.37 ▼0.793.59 ▲1.9043.33 ▲3.56
Dashboard /wp-admin2,227 ▲365.86 ▼0.0497.80 ▼4.7640.79 ▲0.34
Posts /wp-admin/edit.php2,113 ▲242.04 ▲0.0135.70 ▲0.2033.82 ▼4.26
Add New Post /wp-admin/post-new.php6,203 ▲4,68419.32 ▼3.74912.58 ▲244.1566.08 ▲13.83
Media Library /wp-admin/upload.php1,412 ▲244.23 ▼0.00106.36 ▲5.9046.34 ▼0.32
Add New Slider /wp-admin/post-new.php?post_type=yith_slider2,3064.2082.6094.86
All Sliders /wp-admin/edit.php?post_type=yith_slider1,1142.2934.1728.20

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      require_once(YITH_SLIDER_FOR_PAGE_BUILDERS_PATHtemplates/shortcodes/yith-slider.php): failed to open stream: No such file or directory in wp-content/plugins/yith-slider-for-page-builders/include/shortcodes.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/yith-slider-for-page-builders/templates/shortcodes/yith-slider.php:191
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/yith-slider-for-page-builders/yith-slider-for-page-builders.php:22
    • > PHP Warning
      Use of undefined constant YITH_SLIDER_FOR_PAGE_BUILDERS_PATH - assumed 'YITH_SLIDER_FOR_PAGE_BUILDERS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/yith-slider-for-page-builders/include/shortcodes.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yith-slider-for-page-builders/include/sliders.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yith-slider-for-page-builders/include/class-yith-sliders-metabox.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yith-slider-for-page-builders/include/block/slider-block.php:133
    • > PHP Fatal error
      require_once(): Failed opening required 'YITH_SLIDER_FOR_PAGE_BUILDERS_PATHtemplates/shortcodes/yith-slider.php' (include_path='.:/usr/share/php') in wp-content/plugins/yith-slider-for-page-builders/include/shortcodes.php on line 11

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?post_type=yith_slider
    • > Javascript (severe) in unknown
    /wp-content/plugins/yith-slider-for-page-builders/assets/slider-admin-js.js?ver=1.0.10 27:13 Uncaught TypeError: slides_list.sortable is not a function

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
9 plugin tags: block, gutenberg, sliders, yith, proteo...

yith-slider-for-page-builders/yith-slider-for-page-builders.php Passed 13 tests

The entry point to "YITH Slider for page builders" version 1.0.10 is a PHP file that has certain tags in its header comment area
90 characters long description:
This plugin will add cool block oriented sliders to your website. Works with Block Editor.

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 plugin2,241 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP61842671,262
CSS311026584
SVG12012255
JavaScript4244140

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity5.22
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/slider-images/placeholder.png6.65KB2.51KB▼ 62.25%