83% slider-path

Code Review | Slider Path for Elementor

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

About plugin

  • Plugin page: slider-path
  • Plugin version: 3.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-6.1
  • WordPress version: 6.3.1
  • First release: Dec 14, 2022
  • Latest release: Jan 23, 2023
  • Number of updates: 6
  • Update frequency: every 6.7 days
  • Top authors: rashid87 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /585 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.42MB] [CPU: ▼7.52ms] 75% from 4 tests

This is a short check of server-side resources used by Slider Path for Elementor
It is recommended to improve the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,304.13ms on /wp-admin/admin.php?page=sliderpath-library)
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4544.23 ▲7.42
Dashboard /wp-admin3.79 ▲0.4549.13 ▼1.41
Posts /wp-admin/edit.php3.84 ▲0.4547.54 ▼5.13
Add New Post /wp-admin/post-new.php6.32 ▲0.4184.32 ▼26.83
Media Library /wp-admin/upload.php3.65 ▲0.3938.42 ▲3.31
Slider Path /wp-admin/admin.php?page=sliderpath-settings3.6334.72
Library /wp-admin/admin.php?page=sliderpath-library4.291,304.13

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Slider Path for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲20013.69 ▼0.585.63 ▲3.6742.85 ▼0.14
Dashboard /wp-admin2,233 ▲455.13 ▲0.2796.54 ▼19.7839.44 ▼2.76
Posts /wp-admin/edit.php2,120 ▲312.53 ▲0.5234.08 ▼9.6731.52 ▼4.07
Add New Post /wp-admin/post-new.php6,307 ▲4,78825.43 ▲2.36879.70 ▲218.6330.49 ▼20.58
Media Library /wp-admin/upload.php1,418 ▲304.40 ▲0.19100.41 ▼1.6940.96 ▼2.25
Slider Path /wp-admin/admin.php?page=sliderpath-settings9462.1930.0955.86
Library /wp-admin/admin.php?page=sliderpath-library8342.0624.8225.74

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • sliderpath_api_response
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Please take a closer look at the following
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/slider-path/templates/template-library.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sliderpath() in wp-content/plugins/slider-path/widgets/slider/views/template-1.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/slider-path/includes/classes/class-widget-base.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sliderpath() in wp-content/plugins/slider-path/widgets/khulna/views/template-1.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-path/includes/classes/class-hooks.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/slider-path/includes/classes/class-functions.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sliderpath() in wp-content/plugins/slider-path/widgets/khulna/views/template-2.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/slider-path/templates/template-groups.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_unslash() in wp-content/plugins/slider-path/templates/settings-dashboard.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sliderpath() in wp-content/plugins/slider-path/widgets/slider/views/template-2.php:20

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
  • Screenshots: Screenshot #1 (Widgets List) image required
The official readme.txt might help

slider-path/slider-path.php Passed 13 tests

"Slider Path for Elementor" version 3.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
Slider Path is a Addon for Elemntor Slider Making

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected41,398 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
CSS164,90228129,179
SVG7134,914
PHP151,1007654,218
JavaScript105731,0822,515
HTML1544497
Sass15075

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity54.29
▷ Minimum class complexity1.00
▷ Maximum class complexity297.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods117
▷ Static methods00.00%
▷ Public methods9984.62%
▷ Protected methods43.42%
▷ Private methods1411.97%
Functions12
▷ Named functions975.00%
▷ Anonymous functions325.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/feature.png48.39KB48.35KB0.08%
assets/images/logo.png14.74KB6.82KB▼ 53.71%
assets/images/shape-1.png5.77KB2.54KB▼ 55.92%