84% slider-builder-elementor

Code Review | Slider Builder Elementor

WordPress plugin Slider Builder Elementor scored84%from 54 tests.

About plugin

  • Plugin page: slider-builder-el...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Jun 17, 2021
  • Latest release: Feb 5, 2022
  • Number of updates: 9
  • Update frequency: every 25.9 days
  • Top authors: unikforce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /409 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲1.31MB] [CPU: ▼2.88ms] Passed 4 tests

Server-side resources used by Slider Builder Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.33 ▲0.8733.82 ▼21.30
Dashboard /wp-admin4.81 ▲1.5161.72 ▼5.95
Posts /wp-admin/edit.php4.86 ▲1.5059.65 ▲10.64
Add New Post /wp-admin/post-new.php7.33 ▲1.4491.07 ▲5.10
Media Library /wp-admin/upload.php4.67 ▲1.4460.81 ▲27.29
Tools /wp-admin/edit.php?post_type=sliders_builder&page=tools4.6746.73
Add Slider /wp-admin/post-new.php?post_type=sliders_builder4.8761.47
Category /wp-admin/edit-tags.php?taxonomy=sliders_builder_category&post_type=sliders_builder4.6644.87
All Slider /wp-admin/edit.php?post_type=sliders_builder4.8148.42

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 177 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
_sliderbuilderelementor
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Slider Builder Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,500 ▼23514.76 ▲0.210.51 ▼2.0317.72 ▼46.43
Dashboard /wp-admin2,253 ▲794.82 ▼0.0795.81 ▼19.2339.32 ▼0.72
Posts /wp-admin/edit.php2,133 ▲442.01 ▲0.0136.62 ▼5.7631.76 ▼4.19
Add New Post /wp-admin/post-new.php1,570 ▲3723.15 ▼0.04665.66 ▼53.6966.51 ▼4.22
Media Library /wp-admin/upload.php1,435 ▲474.18 ▼0.0696.49 ▼10.0746.98 ▼2.35
Tools /wp-admin/edit.php?post_type=sliders_builder&page=tools1,2933.6853.4028.03
Add Slider /wp-admin/post-new.php?post_type=sliders_builder2,6617.99192.1392.14
Category /wp-admin/edit-tags.php?taxonomy=sliders_builder_category&post_type=sliders_builder1,3062.2625.5226.60
All Slider /wp-admin/edit.php?post_type=sliders_builder1,4793.8356.6328.95

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • _sliderbuilderelementor
    • widget_recent-posts

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
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
  • 18× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/slider-builder-elementor/widgets/builder/view.php:29
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/slider-builder-elementor/widgets/builder/view.php on line 20
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/slider-builder-elementor/widgets/builder/view.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/slider-builder-elementor/template/image.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/slider-builder-elementor/widgets/builder/view.php on line 2
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/slider-builder-elementor/widgets/builder/view.php on line 20
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/slider-builder-elementor/template/title.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/slider-builder-elementor/widgets/builder/view.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/slider-builder-elementor/template/info.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/slider-builder-elementor/template/title.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: elementor slider, wordpress slider builder, elementor slider builder, wp elementor addon

slider-builder-elementor/slider-builder-elementor.php 92% from 13 tests

The primary PHP file in "Slider Builder Elementor" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin36,078 lines of code in 152 files:
LanguageFilesBlank linesComment linesLines of code
PHP963,4821,55616,781
PO File203,0373,4146,180
Sass1695334,921
CSS92814994,187
JavaScript91,2603624,007
SVG2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity24.79
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity6.43
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes63
▷ Abstract classes23.17%
▷ Concrete classes6196.83%
▷ Final classes11.64%
Methods276
▷ Static methods4215.22%
▷ Public methods26997.46%
▷ Protected methods41.45%
▷ Private methods31.09%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
vendor/framework/assets/images/checkerboard.png2.29KB2.54KB0.00%