83% fusion-slider

Code Review | Universal Slider

WordPress plugin Universal Slider scored83%from 54 tests.

About plugin

  • Plugin page: fusion-slider
  • Plugin version: 1.6.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 9, 2017
  • Latest release: Jan 17, 2020
  • Number of updates: 34
  • Update frequency: every 30.5 days
  • Top authors: Webhuntinfotech (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /68,986 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.19MB] [CPU: ▼3.93ms] 75% from 4 tests

An overview of server-side resources used by Universal Slider
Please take the time to fix the following items
  • CPU: Try to keep total CPU usage under 500.00ms (currently 650.13ms on /wp-admin/edit.php?post_type=fsl_slider&page=fsl_recommend_page)
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1637.18 ▼2.49
Dashboard /wp-admin3.51 ▲0.2046.41 ▼3.95
Posts /wp-admin/edit.php3.61 ▲0.2546.93 ▼2.53
Add New Post /wp-admin/post-new.php6.09 ▲0.2087.50 ▼6.75
Media Library /wp-admin/upload.php3.44 ▲0.2138.09 ▲2.25
All Sliders /wp-admin/edit.php?post_type=fsl_slider3.4837.78
Add New Slider /wp-admin/post-new.php?post_type=fsl_slider3.6749.51
Need Help? /wp-admin/edit.php?post_type=fsl_slider&page=fsl_help_page3.4131.55
Recommendation /wp-admin/edit.php?post_type=fsl_slider&page=fsl_recommend_page3.64650.13

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Universal Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲20813.58 ▼0.438.99 ▲7.0743.53 ▼1.48
Dashboard /wp-admin2,245 ▲545.87 ▼0.0198.01 ▼9.5283.56 ▲35.60
Posts /wp-admin/edit.php2,129 ▲402.00 ▲0.0137.43 ▲1.8733.46 ▼4.66
Add New Post /wp-admin/post-new.php1,561 ▲2823.34 ▲0.22728.39 ▲50.4454.49 ▼9.78
Media Library /wp-admin/upload.php1,431 ▲434.23 ▲0.0499.59 ▼9.0374.43 ▲26.06
All Sliders /wp-admin/edit.php?post_type=fsl_slider1,1121.9632.1929.44
Add New Slider /wp-admin/post-new.php?post_type=fsl_slider3,8314.2787.66282.97
Need Help? /wp-admin/edit.php?post_type=fsl_slider&page=fsl_help_page1,45210.05267.4363.28
Recommendation /wp-admin/edit.php?post_type=fsl_slider&page=fsl_recommend_page1,2761.6824.5628.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 46× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: fsl_tfontsize in wp-content/plugins/fusion-slider/inc/responsive-slider.php on line 30
    • > PHP Notice
      Undefined variable: fsl_dfontsize in wp-content/plugins/fusion-slider/inc/responsive-slider.php on line 41
    • > PHP Notice
      Undefined variable: fsl_dfontfamily in wp-content/plugins/fusion-slider/inc/responsive-slider.php on line 40
    • > PHP Notice
      Undefined variable: FSL_Id in wp-content/plugins/fusion-slider/inc/responsive-slider.php on line 16
    • > PHP Notice
      Undefined variable: fsl_dbgcolor in wp-content/plugins/fusion-slider/inc/responsive-slider.php on line 22
    • > PHP Notice
      Undefined variable: FSL_Id in wp-content/plugins/fusion-slider/inc/responsive-slider.php on line 64
    • > PHP Notice
      Undefined variable: fsl_tspacetop in wp-content/plugins/fusion-slider/inc/responsive-slider.php on line 33
    • > PHP Notice
      Undefined variable: fsl_dfontcolor in wp-content/plugins/fusion-slider/inc/responsive-slider.php on line 20
    • > PHP Notice
      Undefined variable: fsl_tfontcolor in wp-content/plugins/fusion-slider/inc/responsive-slider.php on line 31
    • > PHP Notice
      Undefined variable: fsl_dlineheight in wp-content/plugins/fusion-slider/inc/responsive-slider.php on line 21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #4 (Add Images into Slider)
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
The official readme.txt might help

fusion-slider/fusion-slider.php Passed 13 tests

"Universal Slider" version 1.6.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
135 characters long description:
Universal Slider is an awesome WordPress Slider Plugin with many nice features. Just need to install and build slider in a few minutes.

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
There were no executable files found in this plugin6,282 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS6643393,784
PHP6141681,733
PO File1198206425
JavaScript26566340

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods14.55%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin-scripts/img/slider_icon.png0.54KB0.58KB0.00%
assets/admin-scripts/img/media-button.png0.32KB0.34KB0.00%
assets/admin-scripts/img/image-close-icon.png1.77KB1.19KB▼ 32.64%