78% multi-layer-slider-beaver-builder-elementor

Code Review | Xpro Slider For Beaver Builder - Lite

WordPress plugin Xpro Slider For Beaver Builder - Lite scored 78% from 54 tests.

About plugin

  • Plugin page: multi-layer-slide...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Dec 17, 2020
  • Latest release: Aug 16, 2023
  • Number of updates: 58
  • Update frequency: every 16.8 days
  • Top authors: bbadonstnit (51.72%)xpro (50%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,895 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
Install script ran successfully

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

This is a short check of server-side resources used by Xpro Slider For Beaver Builder - Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.24 ▼7.21
Dashboard /wp-admin3.32 ▲0.0247.28 ▼7.24
Posts /wp-admin/edit.php3.37 ▲0.0249.50 ▼0.54
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.99 ▼6.86
Media Library /wp-admin/upload.php3.24 ▲0.0235.45 ▼0.56

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Xpro Slider For Beaver Builder - Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.71 ▼0.931.64 ▼0.3137.64 ▼11.40
Dashboard /wp-admin2,209 ▲215.86 ▲0.9898.15 ▼17.9537.61 ▼7.49
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0234.58 ▼0.2831.33 ▼4.68
Add New Post /wp-admin/post-new.php1,514 ▼1923.75 ▲0.49694.91 ▲45.4553.48 ▼7.88
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0193.52 ▼4.4940.70 ▼2.78

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/multi-layer-slider-beaver-builder-elementor/modules/xpro-multi-layer-slider/includes/frontend.js.php
  • 33× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Trying to get property 'slider_orientation' of non-object in wp-content/plugins/multi-layer-slider-beaver-builder-elementor/modules/xpro-multi-layer-slider/includes/frontend.js.php on line 19
    • > PHP Notice
      Trying to get property 'slider_loop' of non-object in wp-content/plugins/multi-layer-slider-beaver-builder-elementor/modules/xpro-multi-layer-slider/includes/frontend.js.php on line 7
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/multi-layer-slider-beaver-builder-elementor/modules/xpro-multi-layer-slider/includes/frontend.js.php on line 24
    • > PHP Notice
      Trying to get property 'slide_duration' of non-object in wp-content/plugins/multi-layer-slider-beaver-builder-elementor/modules/xpro-multi-layer-slider/includes/frontend.js.php on line 6
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/multi-layer-slider-beaver-builder-elementor/modules/xpro-multi-layer-slider/includes/frontend.js.php on line 23
    • > PHP Notice
      Trying to get property 'slider_autoplay' of non-object in wp-content/plugins/multi-layer-slider-beaver-builder-elementor/modules/xpro-multi-layer-slider/includes/frontend.js.php on line 15
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/multi-layer-slider-beaver-builder-elementor/modules/xpro-multi-layer-slider/includes/frontend.js.php on line 15
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/multi-layer-slider-beaver-builder-elementor/modules/xpro-multi-layer-slider/includes/frontend.js.php on line 3
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/multi-layer-slider-beaver-builder-elementor/modules/xpro-multi-layer-slider/includes/frontend.js.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/multi-layer-slider-beaver-builder-elementor/modules/xpro-multi-layer-slider/xpro-multi-layer-slider.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

multi-layer-slider-beaver-builder-elementor/multi-layer-slider-beaver-builder-elementor.php Passed 13 tests

"Xpro Slider For Beaver Builder - Lite" version 1.5.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
102 characters long description:
A compelling plugin designed to easily create dynamic sliders with the saved templates and saved rows.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,644 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP81202141,222
CSS2565381
JavaScript2101039
SVG2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity5.75
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods17
▷ Static methods952.94%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/Logo.png15.10KB5.76KB▼ 61.83%