78% transition-slider-lite

Code Review | Transition Slider - Responsive Image Slider and Gallery

WordPress plugin Transition Slider - Responsive Image Slider and Gallery scored 78% from 54 tests.

About plugin

  • Plugin page: transition-slider...
  • Plugin version: 2.20.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.8
  • WordPress version: 6.3.1
  • First release: Jul 29, 2019
  • Latest release: Jul 20, 2021
  • Number of updates: 107
  • Update frequency: every 6.8 days
  • Top authors: creativeinteractivemedia (95.33%)dkurecki (5.61%)

Code review

54 tests

User reviews

20 reviews

Install metrics

10,000+ active / 155,298 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.03MB] [CPU: ▼6.66ms] Passed 4 tests

Server-side resources used by Transition Slider - Responsive Image Slider and Gallery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1336.58 ▼5.45
Dashboard /wp-admin3.45 ▲0.1546.85 ▼3.66
Posts /wp-admin/edit.php3.57 ▲0.2151.77 ▲4.52
Add New Post /wp-admin/post-new.php5.34 ▼0.5469.54 ▼22.05
Media Library /wp-admin/upload.php3.38 ▲0.1539.28 ▲4.75
Sliders /wp-admin/admin.php?page=transition_slider_admin3.3535.09
Go Pro /wp-admin/admin.php?page=transitionslider_go_pro3.3538.56
Add new Slider /wp-admin/admin.php?page=transitionslider_add_new3.5838.76

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 155 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
transitionslider_ids
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Transition Slider - Responsive Image Slider and Gallery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10513.66 ▼0.721.79 ▼0.7029.35 ▼17.28
Dashboard /wp-admin2,243 ▲695.80 ▲0.9199.31 ▼15.3744.82 ▼3.84
Posts /wp-admin/edit.php2,129 ▲402.05 ▲0.0439.57 ▲2.1642.12 ▲9.60
Add New Post /wp-admin/post-new.php6,667 ▲5,15323.33 ▲5.85931.08 ▲277.1778.95 ▲23.23
Media Library /wp-admin/upload.php1,425 ▲404.22 ▼0.0893.13 ▼8.8845.45 ▲3.25
Sliders /wp-admin/admin.php?page=transition_slider_admin1,4259.35315.66100.64
Go Pro /wp-admin/admin.php?page=transitionslider_go_pro1,1262.0227.8045.45
Add new Slider /wp-admin/admin.php?page=transitionslider_add_new10,9677.45363.83191.77

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • transitionslider_ids
    • widget_recent-comments
    • theysaidso_admin_options
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/transition-slider-lite/includes/go-pro.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/transition-slider-lite/includes/sliders.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/transition-slider-lite/includes/admin-actions.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/transition-slider-lite/includes/edit-slider.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/transition-slider-lite/includes/getting-started.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/transition-slider-lite/transition-slider-lite.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/transition-slider-lite/includes/go-pro.php:103

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 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
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #1, #10, #11, #12, #13, #14, #15, #16, #17, #2, #3, #4, #5, #6, #7, #8, #9 in transition-slider-lite/assets to your readme.txt
  • Tags: You are using too many tags: 38 tag instead of maximum 10
You can look at the official readme.txt

transition-slider-lite/transition-slider-lite.php Passed 13 tests

This is the main PHP file of "Transition Slider - Responsive Image Slider and Gallery" version 2.20.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
114 characters long description:
Responsive HTML5 WebGL Slider with beautiful seamless transitions and animated layers. Supports images and videos.

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
Success! There were no dangerous files found in this plugin11,978 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript16848365,419
JSON11004,482
PHP852692,070
CSS7067

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity65.00
▷ Minimum class complexity65.00
▷ Maximum class complexity65.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods29
▷ Static methods13.45%
▷ Public methods2482.76%
▷ Protected methods517.24%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/pagination3.png4.16KB0.45KB▼ 89.24%
assets/img/pagination2.png3.84KB0.22KB▼ 94.33%
assets/img/pagination4.png3.83KB0.33KB▼ 91.25%
assets/img/pagination5.png3.91KB0.42KB▼ 89.24%
assets/img/pagination1.png3.99KB0.21KB▼ 94.62%