83% slider-for-elementor

Code Review | Slider for Elementor

WordPress plugin Slider for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: slider-for-elementor
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 27, 2020
  • Latest release: Sep 27, 2020
  • Number of updates: 2
  • Update frequency: every 6.0 days
  • Top authors: andreif13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,091 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by Slider for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.89 ▼4.05
Dashboard /wp-admin3.33 ▲0.0355.24 ▼5.77
Posts /wp-admin/edit.php3.39 ▲0.0251.25 ▼3.33
Add New Post /wp-admin/post-new.php5.92 ▲0.0295.20 ▼7.31
Media Library /wp-admin/upload.php3.26 ▲0.0238.75 ▲2.64

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Slider for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.35 ▼0.051.67 ▼0.1240.47 ▼8.60
Dashboard /wp-admin2,212 ▲355.65 ▲0.0686.24 ▼16.8939.48 ▼5.58
Posts /wp-admin/edit.php2,117 ▲172.04 ▲0.0635.20 ▼1.2036.36 ▲1.24
Add New Post /wp-admin/post-new.php1,547 ▲2118.28 ▼5.19625.51 ▼23.6168.88 ▲10.89
Media Library /wp-admin/upload.php1,417 ▲174.20 ▲0.00101.52 ▼7.8443.73 ▼1.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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
Even though no errors were found, 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/slider-for-elementor/widgets/slider-widget.php:11

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: Please take inspiration from this readme.txt

slider-for-elementor/elementor-slider.php 85% from 13 tests

The primary PHP file in "Slider for Elementor" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and 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
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("slider-for-elementor.php" instead of "elementor-slider.php")

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
Success! There were no dangerous files found in this plugin465 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP289213405
CSS16032
JavaScript12128

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods20
▷ Static methods210.00%
▷ Public methods1890.00%
▷ Protected methods210.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
No PNG images were found in this plugin