83% max-slider

Code Review | Max Slider for Elementor

WordPress plugin Max Slider for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: max-slider
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 16, 2023
  • Latest release: Nov 3, 2023
  • Number of updates: 10
  • Update frequency: every 14.1 days
  • Top authors: maxech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /174 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼8.70ms] Passed 4 tests

Server-side resources used by Max Slider for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1240.83 ▼0.59
Dashboard /wp-admin3.42 ▲0.0748.46 ▼19.46
Posts /wp-admin/edit.php3.53 ▲0.1845.68 ▼1.76
Add New Post /wp-admin/post-new.php6.00 ▲0.1183.97 ▼12.99
Media Library /wp-admin/upload.php3.34 ▲0.1135.76 ▼0.27
Demo Importer /wp-admin/edit.php?post_type=max_slides&page=max_slider_demo_importer3.3130.75
Add New Max Slides /wp-admin/post-new.php?post_type=max_slides3.3740.29
Max Slides /wp-admin/edit.php?post_type=max_slides3.3834.34

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Max Slider for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9614.33 ▼0.101.74 ▼0.2143.57 ▼2.03
Dashboard /wp-admin2,245 ▲715.55 ▼0.0788.42 ▼11.4938.15 ▼8.36
Posts /wp-admin/edit.php2,150 ▲501.97 ▲0.0036.30 ▼1.7233.83 ▲0.16
Add New Post /wp-admin/post-new.php1,566 ▲4023.04 ▼0.42677.91 ▼19.3354.23 ▲2.02
Media Library /wp-admin/upload.php1,450 ▲534.20 ▲0.01101.18 ▲2.1944.06 ▲3.15
Demo Importer /wp-admin/edit.php?post_type=max_slides&page=max_slider_demo_importer1,4782.0126.1140.89
Add New Max Slides /wp-admin/post-new.php?post_type=max_slides1,4582.5348.7648.12
Max Slides /wp-admin/edit.php?post_type=max_slides1,1141.9432.1630.11

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_normalize_path() in wp-content/plugins/max-slider/inc/demo-importer/init.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MaxSliderAddon\\add_action() in wp-content/plugins/max-slider/plugin.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_normalize_path() in wp-content/plugins/max-slider/inc/demo-importer/init.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/max-slider/inc/slides.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Contributors: Contributors not specified
  • Screenshots: These screenshots need descriptions #1, #10, #11, #12, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #23, #24, #25, #26, #27, #28, #29, #3, #30, #4, #5, #6, #7, #8, #9 in max-slider/assets to your readme.txt
You can take inspiration from this readme.txt

max-slider/max-slider.php 92% from 13 tests

The entry point to "Max Slider for Elementor" version 1.2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 219 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin4,194 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP103493313,607
CSS4314249
JavaScript33123190
Sass5180148

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes125.00%
Methods28
▷ Static methods27.14%
▷ Public methods2589.29%
▷ Protected methods310.71%
▷ Private methods00.00%
Functions10
▷ Named functions550.00%
▷ Anonymous functions550.00%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
25 PNG files occupy 7.52MB with 5.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/demo-importer/demos/item-3/screenshot.png429.34KB130.14KB▼ 69.69%
inc/demo-importer/demos/hero-2-rtl/screenshot.png585.35KB192.24KB▼ 67.16%
inc/demo-importer/demos/item-2/screenshot.png262.19KB84.97KB▼ 67.59%
inc/demo-importer/demos/hero-4/screenshot.png492.85KB169.88KB▼ 65.53%
inc/demo-importer/demos/hero-1/screenshot.png109.00KB35.06KB▼ 67.83%