84% slider-pro-lite

Code Review | Slider Pro Lite

WordPress plugin Slider Pro Lite scored84%from 54 tests.

About plugin

  • Plugin page: slider-pro-lite
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.0
  • WordPress version: 6.3.1
  • First release: Apr 28, 2015
  • Latest release: Aug 20, 2022
  • Number of updates: 13
  • Update frequency: every 208.0 days
  • Top authors: bqworks (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /15,597 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▲3.07ms] Passed 4 tests

Server-side resources used by Slider Pro Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1838.06 ▼2.71
Dashboard /wp-admin3.65 ▲0.3449.06 ▼0.22
Posts /wp-admin/edit.php3.70 ▲0.3467.84 ▲19.28
Add New Post /wp-admin/post-new.php6.17 ▲0.28101.66 ▲12.72
Media Library /wp-admin/upload.php3.51 ▲0.2835.74 ▲2.49
All Sliders /wp-admin/admin.php?page=sliderpro-lite3.5139.83
Plugin Settings /wp-admin/admin.php?page=sliderpro-lite-settings3.5137.98
Upgrade /wp-admin/admin.php?page=sliderpro-lite-ugrade3.5137.26
Add New /wp-admin/admin.php?page=sliderpro-lite-new3.5238.05

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 36 new files
Database: 3 new tables, 8 new options
New tables
wp_slider_pro_slides
wp_slider_pro_layers
wp_slider_pro_sliders
New WordPress options
widget_theysaidso_widget
db_upgraded
sliderpro_lite_version
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_bqw-sliderpro-lite-widget
widget_recent-comments

Browser metrics Passed 4 tests

Slider Pro Lite: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲9314.26 ▼0.091.97 ▲0.2342.49 ▼2.64
Dashboard /wp-admin2,229 ▲515.57 ▼0.1088.74 ▼21.9281.41 ▲36.79
Posts /wp-admin/edit.php2,137 ▲371.98 ▼0.0238.01 ▲3.8633.35 ▼1.08
Add New Post /wp-admin/post-new.php1,577 ▲5118.33 ▼4.70647.21 ▼29.06184.50 ▲135.75
Media Library /wp-admin/upload.php1,428 ▲284.23 ▲0.05101.22 ▼15.8374.98 ▲26.82
All Sliders /wp-admin/admin.php?page=sliderpro-lite1,0573.1238.4670.68
Plugin Settings /wp-admin/admin.php?page=sliderpro-lite-settings1,1303.1339.2258.16
Upgrade /wp-admin/admin.php?page=sliderpro-lite-ugrade1,0643.1938.1855.41
Add New /wp-admin/admin.php?page=sliderpro-lite-new1,5513.2539.7771.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_bqw-sliderpro-lite-widget
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means an exhaustive test

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
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: slide_image in wp-content/plugins/slider-pro-lite/admin/views/slide.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/slider-pro-lite/admin/views/slide.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/slider-pro-lite/admin/views/sliders-row.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/slider-pro-lite/admin/views/sliders.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/slider-pro-lite/admin/views/plugin-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/slider-pro-lite/admin/views/upgrade.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/slider-pro-lite/includes/class-sliderpro-widget.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/slider-pro-lite/admin/views/slider.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: touch slider, slider, responsive slider, images, slider plugin

slider-pro-lite/sliderpro-lite.php 92% from 13 tests

"Slider Pro Lite" version 1.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("slider-pro-lite.php" instead of "sliderpro-lite.php")

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 detected4,610 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript47548172,354
PHP183819291,537
CSS414152719

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity18.78
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods79
▷ Static methods1417.72%
▷ Public methods6075.95%
▷ Protected methods1113.92%
▷ Private methods810.13%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/css/images/sp-icon.png0.16KB0.13KB▼ 15.00%
admin/assets/css/images/video-placeholder-button.png0.84KB0.93KB0.00%
admin/assets/css/images/all-buttons.png1.99KB1.54KB▼ 22.37%
admin/assets/css/images/image-placeholder.png0.82KB0.35KB▼ 57.18%