10% slide-anything

Code Review | Slide Anything - Responsive Content / HTML Slider and Carousel

WordPress plugin Slide Anything - Responsive Content / HTML Slider and Carousel scored10%from 54 tests.

About plugin

  • Plugin page: slide-anything
  • Plugin version: 2.4.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jan 6, 2016
  • Latest release: Mar 23, 2023
  • Number of updates: 1
  • Update frequency: every 365.0 days

Code review

54 tests

User reviews

140 reviews

Install metrics

100,000+ active /2,445,289 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.89MB] [CPU: ▲2.17ms] Passed 4 tests

Server-side resources used by Slide Anything - Responsive Content / HTML Slider and Carousel
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲0.7447.24 ▲5.95
Dashboard /wp-admin4.24 ▲0.9353.37 ▼2.62
Posts /wp-admin/edit.php4.33 ▲0.9749.03 ▲4.42
Add New Post /wp-admin/post-new.php6.83 ▲0.9486.28 ▲0.93
Media Library /wp-admin/upload.php4.17 ▲0.9449.00 ▲15.49
SA Sliders /wp-admin/edit.php?post_type=sa_slider4.2450.31
Re-Order Slides /wp-admin/edit.php?post_type=sa_slider&page=reorderslides4.1643.15
Add New Slider /wp-admin/post-new.php?post_type=sa_slider4.0950.23

Server storage [IO: ▲1.09MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Slide Anything - Responsive Content / HTML Slider and Carousel
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲6714.38 ▼0.201.76 ▲0.0240.26 ▼6.45
Dashboard /wp-admin2,234 ▲575.63 ▼0.0179.09 ▼17.8139.83 ▼3.38
Posts /wp-admin/edit.php2,133 ▲331.97 ▼0.0435.61 ▲1.2731.95 ▼4.43
Add New Post /wp-admin/post-new.php1,557 ▲3123.00 ▼0.97657.18 ▼53.5059.21 ▼0.46
Media Library /wp-admin/upload.php1,439 ▲394.18 ▼0.0398.14 ▼14.3642.24 ▼2.18
SA Sliders /wp-admin/edit.php?post_type=sa_slider1,8543.7553.2830.04
Re-Order Slides /wp-admin/edit.php?post_type=sa_slider&page=reorderslides1,0623.7144.3032.69
Add New Slider /wp-admin/post-new.php?post_type=sa_slider6,7829.46351.56206.90

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

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=sa_slider
    • > Notice in wp-content/plugins/slide-anything/php/slide-anything-admin.php+1315
    Undefined variable: preview_button

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/slide-anything/php/slide-anything-frontend.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/slide-anything/php/single-page.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: html slider, owl carousel, content slider, carousel, slider...

slide-anything/slide-anything.php 92% from 13 tests

The main file in "Slide Anything - Responsive Content / HTML Slider and Carousel" v. 2.4.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 283 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin11,750 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
CSS144331404,917
PHP42265043,931
JavaScript124344572,848
SVG10054

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.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
36 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
images/slide_anything_pro_product_image.png10.26KB4.37KB▼ 57.43%
images/icon_next.png0.25KB0.23KB▼ 8.43%
images/sample_logo3.png2.76KB0.85KB▼ 69.08%
images/ui-icons_777620_256x240.png4.44KB4.17KB▼ 6.02%