10% slider-by-supsystic

Code Review | Slider by Supsystic

WordPress plugin Slider by Supsystic scored 10% from 54 tests.

About plugin

  • Plugin page: slider-by-supsystic
  • Plugin version: 1.8.7
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 1, 2015
  • Latest release: Aug 10, 2023
  • Number of updates: 125
  • Update frequency: every 24.9 days
  • Top authors: supsystic.com (100%)

Code review

54 tests

User reviews

115 reviews

Install metrics

4,000+ active / 418,130 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/slider-by-supsystic/app/SupsysticSlider.php+255
    Undefined index: wordpress_logged_in_b984edcdfe562d3f512e5f50c1f1a1ed

Server metrics [RAM: ▲1.60MB] [CPU: ▲3.99ms] Passed 4 tests

Analyzing server-side resources used by Slider by Supsystic
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.35 ▼0.1114.89 ▼24.98
Dashboard /wp-admin5.52 ▲2.2262.33 ▲13.03
Posts /wp-admin/edit.php5.57 ▲2.2274.25 ▲25.79
Add New Post /wp-admin/post-new.php8.04 ▲2.1699.45 ▲8.29
Media Library /wp-admin/upload.php5.36 ▲2.1353.79 ▲19.61
New Slider /wp-admin/admin.php?page=supsystic-slider&module=slider&action=showPresets&nonce=5ae51225ce5.4053.29
Slider by Supsystic /wp-admin/admin.php?page=supsystic-slider5.4052.80
Overview /wp-admin/admin.php?page=supsystic-slider&module=overview&nonce=5ae51225ce5.4547.25
Settings /wp-admin/admin.php?page=supsystic-slider&module=settings&nonce=5ae51225ce5.4448.14
Sliders /wp-admin/admin.php?page=supsystic-slider&module=slider&nonce=5ae51225ce5.4049.03

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 1,180 new files
Database: 14 new tables, 10 new options
New tables
wp_rs_exclude
wp_rs_membership_presets
wp_rs_sorting
wp_rs_photos_pos
wp_rs_photos
wp_rs_sliders
wp_rs_resources
wp_rs_folders
wp_rs_settings_presets
wp_rs_tags
...
New WordPress options
supsystic_slider_last_revision
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
widget_sslwidget
rs_reviewNotice
db_upgraded
can_compress_scripts
ss_send_stats
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Slider by Supsystic
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,102 ▲36715.44 ▲1.064.88 ▲2.9038.08 ▼12.60
Dashboard /wp-admin2,393 ▲2056.43 ▲0.56139.68 ▲30.0041.78 ▲2.23
Posts /wp-admin/edit.php2,296 ▲2073.47 ▲1.4554.42 ▲16.9334.39 ▲0.89
Add New Post /wp-admin/post-new.php1,559 ▲2223.05 ▲4.76636.57 ▲32.9733.75 ▼17.97
Media Library /wp-admin/upload.php1,438 ▲534.22 ▼0.0179.11 ▼25.5041.52 ▼2.91
New Slider /wp-admin/admin.php?page=supsystic-slider&module=slider&action=showPresets&nonce=5ae51225ce8433.0362.3318.23
Slider by Supsystic /wp-admin/admin.php?page=supsystic-slider8433.0476.2819.57
Overview /wp-admin/admin.php?page=supsystic-slider&module=overview&nonce=5ae51225ce8372.8835.3118.05
Settings /wp-admin/admin.php?page=supsystic-slider&module=settings&nonce=5ae51225ce8432.9235.3616.49
Sliders /wp-admin/admin.php?page=supsystic-slider&module=slider&nonce=5ae51225ce8433.0637.7016.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/slider-by-supsystic/app/SupsysticSlider.php+255
    Undefined index: wordpress_logged_in_b984edcdfe562d3f512e5f50c1f1a1ed
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_rs_resources
    • wp_rs_settings_sets
    • wp_rs_sliders
    • wp_rs_photos
  • Zombie WordPress options detected upon uninstall: 9 options
    • can_compress_scripts
    • theysaidso_admin_options
    • rs_reviewNotice
    • ss_send_stats
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_sslwidget
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/slider-by-supsystic/app/console/log.php
  • 497× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/slider-by-supsystic/vendor/Twig/src/TokenParser/ImportTokenParser.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/slider-by-supsystic/vendor/Twig/TokenParser/UseTokenParser.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\ConditionalExpression' not found in wp-content/plugins/slider-by-supsystic/vendor/Twig/src/Node/Expression/NullCoalesceExpression.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_supTwgSsl_Node' not found in wp-content/plugins/slider-by-supsystic/vendor/Twig/Profiler/Node/LeaveProfile.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\TestExpression' not found in wp-content/plugins/slider-by-supsystic/vendor/Twig/Node/Expression/Test/DefinedTest.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_supTwgSsl_Node_Expression_Unary' not found in wp-content/plugins/slider-by-supsystic/vendor/Twig/Node/Expression/Unary/Neg.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/slider-by-supsystic/vendor/Twig/Node/Expression/Binary/SpaceshipBinary.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\CallExpression' not found in wp-content/plugins/slider-by-supsystic/vendor/Twig/src/Node/Expression/FilterExpression.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\odeVisitor\\AbstractNodeVisitor' not found in wp-content/plugins/slider-by-supsystic/vendor/Twig/src/NodeVisitor/OptimizerNodeVisitor.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Unary\\AbstractUnary' not found in wp-content/plugins/slider-by-supsystic/vendor/Twig/Node/Expression/Unary/PosUnary.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=supsystic-slider&module=slider&nonce=5ae51225ce
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: this.$newSlider.dialog is not a function" "TypeError: this.$newSlider.dialog is not a function\n at Controller.init (/wp-content/plugins/slider-by-supsystic/src/SupsysticSlider/Slider/assets/js/index.js:107:25)\n at new Controller (/wp-content/plugins/slider-by-supsystic/src/SupsysticSlider/Slider/assets/js/index.js:12:14)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/slider-by-supsystic/src/SupsysticSlider/Slider/assets/js/index.js:160:26)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:27292)" undefined
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=supsystic-slider&module=slider&nonce=5ae51225ce
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28721 Uncaught TypeError: this.$newSlider.dialog is not a function

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 28 tag instead of maximum 10
The official readme.txt might help

slider-by-supsystic/index.php 77% from 13 tests

The principal PHP file in "Slider by Supsystic" v. 1.8.7 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 154 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("slider-by-supsystic.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin69,287 lines of code in 892 files:
LanguageFilesBlank linesComment linesLines of code
PHP6737,93414,03531,558
JavaScript1222,1602,67512,025
CSS311,26732511,285
PO File143,7061167,600
Twig504041604,118
SVG1002,671
JSON10030

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity6.10
▷ Minimum class complexity1.00
▷ Maximum class complexity155.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces22
Interfaces59
Traits0
Classes753
▷ Abstract classes344.52%
▷ Concrete classes71995.48%
▷ Final classes8812.24%
Methods3,051
▷ Static methods792.59%
▷ Public methods2,63286.27%
▷ Protected methods2769.05%
▷ Private methods1434.69%
Functions163
▷ Named functions14890.80%
▷ Anonymous functions159.20%
Constants133
▷ Global constants53.76%
▷ Class constants12896.24%
▷ Public constants128100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
78 PNG files occupy 1.06MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/SupsysticSlider/Overview/assets/img/overview-02.png10.52KB5.18KB▼ 50.72%
app/assets/css/minimal/minimal.png2.23KB1.44KB▼ 35.45%
src/SupsysticSlider/Colorbox/images/theme_2.png125.18KB33.24KB▼ 73.45%
src/SupsysticSlider/Bx/assets/images/arrows/arrow454.png0.14KB0.17KB0.00%
src/SupsysticSlider/Colorbox/images/theme_4.png132.19KB31.88KB▼ 75.89%