68% smart-slider-3

Code Review | Smart Slider 3

WordPress plugin Smart Slider 3 scored68%from 54 tests.

About plugin

  • Plugin page: smart-slider-3
  • Plugin version: 3.5.1.21
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 12, 2015
  • Latest release: Nov 15, 2023
  • Number of updates: 265
  • Update frequency: every 11.0 days
  • Top authors: nextendweb (100%)

Code review

54 tests

User reviews

1059 reviews

Install metrics

900,000+ active /16,441,463 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.15MB] [CPU: ▲1.84ms] Passed 4 tests

Server-side resources used by Smart Slider 3
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.51 ▲1.0442.85 ▲0.50
Dashboard /wp-admin4.36 ▲1.0549.92 ▲4.88
Posts /wp-admin/edit.php4.82 ▲1.4553.94 ▲6.55
Add New Post /wp-admin/post-new.php7.46 ▲1.5793.18 ▼1.79
Media Library /wp-admin/upload.php4.31 ▲1.0737.13 ▲3.76
Dashboard /wp-admin/admin.php?page=smart-slider34.7943.19
Help center /wp-admin/admin.php?page=smart-slider3-help4.7661.86
Go Pro /wp-admin/admin.php?page=smart-slider3-go-pro4.7449.34

Server storage [IO: ▲8.21MB] [DB: ▲0.06MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 898 new files
Database: 6 new tables, 8 new options
New tables
wp_nextend2_section_storage
wp_nextend2_smartslider3_slides
wp_nextend2_smartslider3_generators
wp_nextend2_image_storage
wp_nextend2_smartslider3_sliders
wp_nextend2_smartslider3_sliders_xref
New WordPress options
widget_smartslider3
n2_ss3_version
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Smart Slider 3
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲15014.24 ▲0.181.78 ▼0.0329.01 ▼15.16
Dashboard /wp-admin2,264 ▲845.66 ▼0.0592.26 ▲2.3843.70 ▲0.64
Posts /wp-admin/edit.php2,166 ▲662.02 ▲0.0437.13 ▼2.9740.48 ▲2.48
Add New Post /wp-admin/post-new.php6,268 ▲4,74219.91 ▼3.61866.35 ▲247.1460.38 ▲10.25
Media Library /wp-admin/upload.php1,463 ▲634.19 ▲0.02101.40 ▲1.2645.06 ▲0.54
Dashboard /wp-admin/admin.php?page=smart-slider31,3559.79283.3388.36
Help center /wp-admin/admin.php?page=smart-slider3-help1,72510.04318.6390.55
Go Pro /wp-admin/admin.php?page=smart-slider3-go-pro1,0492.9329.3747.91

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure failed, leaving 6 tables in the database
    • wp_nextend2_smartslider3_sliders
    • wp_nextend2_smartslider3_sliders_xref
    • wp_nextend2_image_storage
    • wp_nextend2_smartslider3_generators
    • wp_nextend2_section_storage
    • wp_nextend2_smartslider3_slides
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • n2_ss3_version
    • widget_smartslider3
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please take a closer look at the following
  • 7× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Application/Admin/Layout/Block/Slider/DeviceZoom/DeviceZoom.php
    • > /wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Platform/WordPress/Integration/Unyson/smartslider/shortcodes/smartslider/config.php
    • > /wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Platform/WordPress/Integration/Unyson/smartslider/manifest.php
    • > /wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Platform/WordPress/Integration/Unyson/smartslider/shortcodes/smartslider/views/view.php
    • > /wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Platform/WordPress/Integration/Unyson/smartslider/class-fw-extension-smartslider.php
    • > /wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Application/Admin/Layout/Block/Slider/SliderPublish/Common.php
    • > /wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Platform/WordPress/Integration/Unyson/smartslider/shortcodes/smartslider/options.php
  • 574× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Nextend\\Framework\\FastImageSize\\Type\\TypeBase' not found in wp-content/plugins/smart-slider-3/Nextend/Framework/FastImageSize/Type/TypePng.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Nextend\\Framework\\Cache\\AbstractCache' not found in wp-content/plugins/smart-slider-3/Nextend/Framework/Cache/CacheGoogleFont.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Nextend\\Framework\\FastImageSize\\Type\\TypeInterface' not found in wp-content/plugins/smart-slider-3/Nextend/Framework/FastImageSize/Type/TypeBase.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Nextend\\SmartSlider3\\Platform\\WordPress\\HelperTinyMCE' not found in wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Platform/WordPress/Integration/Fusion/field-smartslider3.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Nextend\\Framework\\Parser\\Link\\ParserInterface' not found in wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Parser/Link/NextSlide.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Nextend\\Framework\\View\\AbstractView' not found in wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Application/Admin/Preview/ViewPreviewIndex.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Nextend\\SmartSlider3\\Application\\Admin\\AbstractControllerAdmin' not found in wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Application/Admin/Settings/ControllerSettings.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Nextend\\Framework\\Request\\Storage' not found in wp-content/plugins/smart-slider-3/Nextend/Framework/Request/Request.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Nextend\\SmartSlider3\\Application\\Admin\\Layout\\Block\\Core\\TopBarGroup\\esc_html() in wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Application/Admin/Layout/Block/Core/TopBarGroup/TopBarGroup.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Nextend\\SmartSlider3\\Application\\Admin\\FormManager\\Slider\\AbstractSliderTab' not found in wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Application/Admin/FormManager/Slider/SliderSlides.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add a description for screenshot #10 in smart-slider-3/assets to your readme.txt
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can take inspiration from this readme.txt

smart-slider-3/smart-slider-3.php Passed 13 tests

This is the main PHP file of "Smart Slider 3" version 3.5.1.21, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
The perfect all-in-one responsive slider solution for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin129,793 lines of code in 815 files:
LanguageFilesBlank linesComment linesLines of code
PO File1735,0626,25779,387
PHP74316,3906,70849,925
SVG2700414
JSON20038
JavaScript180018
CSS80011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.84
▷ Minimum class complexity1.00
▷ Maximum class complexity329.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces230
Interfaces7
Traits12
Classes640
▷ Abstract classes7712.03%
▷ Concrete classes56387.97%
▷ Final classes00.00%
Methods3,762
▷ Static methods44011.70%
▷ Public methods2,92177.64%
▷ Protected methods62416.59%
▷ Private methods2175.77%
Functions40
▷ Named functions1332.50%
▷ Anonymous functions2767.50%
Constants41
▷ Global constants1843.90%
▷ Class constants2356.10%
▷ Public constants23100.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
39 PNG files occupy 0.34MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Public/SmartSlider3/Widget/Thumbnail/Basic/Assets/default.png1.02KB0.52KB▼ 48.81%
Public/SmartSlider3/Widget/Bullet/BulletTransition/Assets/transitionRectangle.png0.50KB0.14KB▼ 72.04%
Public/SmartSlider3/Widget/Arrow/ArrowImage/Assets/imageBigRectangle.png1.08KB0.49KB▼ 54.38%
Public/SmartSlider3/Application/Frontend/Assets/images/placeholder/video.png4.23KB1.37KB▼ 67.59%
Public/SmartSlider3/Widget/Autoplay/AutoplayImage/Assets/imageBlue.png0.91KB0.29KB▼ 68.27%