83% slide-everything-for-elementor

Code Review | Slide everything for Elementor

WordPress plugin Slide everything for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: slide-everything-...
  • Plugin version: 1.4.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2022
  • Latest release: Oct 8, 2023
  • Number of updates: 22
  • Update frequency: every 21.8 days
  • Top authors: migaweb (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /1,779 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.00MB] [CPU: ▼6.74ms] Passed 4 tests

An overview of server-side resources used by Slide everything for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.38 ▼0.82
Dashboard /wp-admin3.31 ▼0.0347.37 ▼15.28
Posts /wp-admin/edit.php3.36 ▲0.0144.49 ▼1.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.88 ▼8.21
Media Library /wp-admin/upload.php3.23 ▲0.0132.92 ▼2.47

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Slide everything for Elementor: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.27 ▼0.361.68 ▲0.1344.00 ▲6.55
Dashboard /wp-admin2,195 ▲185.57 ▼0.0992.96 ▲6.7940.92 ▲1.78
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0334.00 ▲0.4034.79 ▼1.85
Add New Post /wp-admin/post-new.php1,526 ▼023.20 ▲0.33650.84 ▼22.6145.32 ▼10.61
Media Library /wp-admin/upload.php1,397 ▼34.18 ▼0.0496.94 ▼4.3542.77 ▼3.82

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/slide-everything-for-elementor/widgets/SlideEverything.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slide-everything-for-elementor/miga_slide_everything.php:27

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

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: widgets, elementor widget, elementor addons, addons, swiper...

slide-everything-for-elementor/miga_slide_everything.php 77% from 13 tests

The main PHP script in "Slide everything for Elementor" version 1.4.0 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Name the main plugin file the same as the plugin slug ("slide-everything-for-elementor.php" instead of "miga_slide_everything.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected539 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24522419
JavaScript1130120

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods222.22%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin