89% sliderspack-all-in-one-image-sliders

Code Review | Slider a SlidersPack - Image Slider, Post Slider, ACF Gallery Slider

WordPress plugin Slider a SlidersPack - Image Slider, Post Slider, ACF Gallery Slider scored89%from 54 tests.

About plugin

  • Plugin page: sliderspack-all-i...
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 24, 2017
  • Latest release: Aug 17, 2023
  • Number of updates: 82
  • Update frequency: every 25.9 days
  • Top authors: wponlinesupport (78.05%)anoopranawat (23.17%)

Code review

54 tests

User reviews

22 reviews

Install metrics

4,000+ active /46,728 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▼2.12ms] Passed 4 tests

Analyzing server-side resources used by Slider a SlidersPack - Image Slider, Post Slider, ACF Gallery Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3340.87 ▲2.24
Dashboard /wp-admin3.64 ▲0.2944.12 ▼12.77
Posts /wp-admin/edit.php3.76 ▲0.4047.37 ▼1.43
Add New Post /wp-admin/post-new.php6.23 ▲0.3489.59 ▲3.50
Media Library /wp-admin/upload.php3.56 ▲0.3341.10 ▲6.18
Add slider /wp-admin/post-new.php?post_type=wpspaios_slider3.7650.74
Upgrade to PRO /wp-admin/edit.php?post_type=wpspaios_slider&page=wp-spaios-premium3.5430.46
SlidersPack /wp-admin/edit.php?post_type=wpspaios_slider3.6437.54
About /wp-admin/edit.php?post_type=wpspaios_slider&page=welcome_sliderspack3.5333.26

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 97 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Slider a SlidersPack - Image Slider, Post Slider, ACF Gallery Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲9313.21 ▼1.384.64 ▲2.9938.14 ▼4.18
Dashboard /wp-admin2,242 ▲605.81 ▼0.0797.71 ▼5.1138.65 ▼4.21
Posts /wp-admin/edit.php2,125 ▲362.01 ▼0.0133.20 ▼3.2933.24 ▼3.36
Add New Post /wp-admin/post-new.php1,550 ▲1923.50 ▲0.44613.89 ▲6.4963.38 ▲14.97
Media Library /wp-admin/upload.php1,424 ▲424.19 ▼0.0498.20 ▲1.3040.84 ▼0.22
Add slider /wp-admin/post-new.php?post_type=wpspaios_slider4,9323.7776.9182.47
Upgrade to PRO /wp-admin/edit.php?post_type=wpspaios_slider&page=wp-spaios-premium1,0532.0223.4837.05
SlidersPack /wp-admin/edit.php?post_type=wpspaios_slider1,3113.5249.6063.46
About /wp-admin/edit.php?post_type=wpspaios_slider&page=welcome_sliderspack1,0142.0124.7960.83

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 were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in sliderspack-all-in-one-image-sliders/assets to your readme.txt
You can take inspiration from this readme.txt

sliderspack-all-in-one-image-sliders/sliderspack-all-in-one-image-sliders.php 92% from 13 tests

The main file in "Slider a SlidersPack - Image Slider, Post Slider, ACF Gallery Slider" v. 2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 296 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin7,292 lines of code in 78 files:
LanguageFilesBlank linesComment linesLines of code
PHP515587443,620
JavaScript132486771,895
CSS121861971,747
SVG20030

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity60.00
▷ Minimum class complexity8.00
▷ Maximum class complexity112.00
Average method complexity7.21
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/arrow-right.png2.91KB0.18KB▼ 93.93%
assets/images/sliderspack-icon.png21.31KB8.14KB▼ 61.79%
assets/images/arrows.png0.80KB0.51KB▼ 36.53%
assets/images/arrow-left.png2.94KB0.17KB▼ 94.18%
assets/images/sliderspack-logo.png68.57KB24.10KB▼ 64.86%