84% advanced-slider-for-elementor

Code Review | Advanced Slider for Elementor

WordPress plugin Advanced Slider for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: advanced-slider-f...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Sep 9, 2022
  • Latest release: Aug 25, 2023
  • Number of updates: 8
  • Update frequency: every 43.9 days
  • Top authors: ruhel241 (75%)wpcreativeidea (37.5%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /808 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.81ms] Passed 4 tests

Server-side resources used by Advanced Slider for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.14 ▼7.34
Dashboard /wp-admin3.31 ▲0.0146.09 ▼5.91
Posts /wp-admin/edit.php3.36 ▲0.0048.39 ▼0.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.61 ▼11.39
Media Library /wp-admin/upload.php3.23 ▲0.0033.92 ▼2.58

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Advanced Slider 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,849 ▲8814.35 ▼0.042.03 ▲0.2044.30 ▼5.67
Dashboard /wp-admin2,230 ▲535.51 ▼0.1089.72 ▲1.2640.48 ▲2.06
Posts /wp-admin/edit.php2,117 ▲202.04 ▲0.0236.99 ▼2.2935.60 ▲1.35
Add New Post /wp-admin/post-new.php1,538 ▼223.30 ▲5.05646.36 ▲28.3967.43 ▲0.30
Media Library /wp-admin/upload.php1,414 ▲174.19 ▼0.0798.86 ▼5.3244.42 ▲0.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% 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)
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/advanced-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
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Requires php: Version format is invalid
Please take inspiration from this readme.txt

advanced-slider-for-elementor/advanced-slider-for-elementor.php Passed 13 tests

The main PHP file in "Advanced Slider for Elementor" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
46 characters long description:
Advanced slider for elementor wordpress plugin

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
There were no executable files found in this plugin984 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP5194213963
JSON10016
CSS3003
JavaScript2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity15.00
▷ Minimum class complexity5.00
▷ Maximum class complexity24.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods37
▷ Static methods25.41%
▷ Public methods2978.38%
▷ Protected methods38.11%
▷ Private methods513.51%
Functions8
▷ Named functions00.00%
▷ Anonymous functions8100.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ 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
9 PNG files occupy 0.38MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/button-options.png87.13KB22.99KB▼ 73.61%
assets/images/text-options.png47.97KB11.71KB▼ 75.58%
assets/images/dots-options.png26.19KB6.52KB▼ 75.09%
assets/images/slider-logo.png6.19KB2.92KB▼ 52.89%
assets/images/arrow-options.png23.42KB25.70KB0.00%