77% ml-slider

Code Review | Slider, Gallery, and Carousel by MetaSlider - Responsive WordPress Slideshows

WordPress plugin Slider, Gallery, and Carousel by MetaSlider - Responsive WordPress Slideshows scored77%from 54 tests.

About plugin

  • Plugin page: ml-slider
  • Plugin version: 3.50.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Feb 15, 2013
  • Latest release: Nov 1, 2023
  • Number of updates: 1,001
  • Update frequency: every 3.9 days
  • Top authors: matchalabs (80.92%)metaslider (8.49%)DavidAnderson (7.09%)stevejburge (3.1%)

Code review

54 tests

User reviews

685 reviews

Install metrics

600,000+ active /25,649,089 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲1.36MB] [CPU: ▲1.87ms] Passed 4 tests

This is a short check of server-side resources used by Slider, Gallery, and Carousel by MetaSlider - Responsive WordPress Slideshows
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.52 ▲1.0644.10 ▲3.02
Dashboard /wp-admin4.80 ▲1.4558.71 ▼5.19
Posts /wp-admin/edit.php4.85 ▲1.4964.17 ▲16.32
Add New Post /wp-admin/post-new.php7.40 ▲1.5196.55 ▼2.68
Media Library /wp-admin/upload.php4.66 ▲1.4348.19 ▲12.32
Quick Start /wp-admin/admin.php?page=metaslider-start4.6846.98
Settings & Help /wp-admin/admin.php?page=metaslider-settings4.6850.13
Upgrade to Pro /wp-admin/admin.php?page=upgrade-metaslider4.7252.53
Home /wp-admin/admin.php?page=metaslider4.7852.60

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Slider, Gallery, and Carousel by MetaSlider - Responsive WordPress Slideshows
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲12314.29 ▼0.061.61 ▼0.3742.98 ▼1.53
Dashboard /wp-admin2,288 ▲1105.61 ▼0.1395.68 ▼10.1041.81 ▲2.69
Posts /wp-admin/edit.php2,196 ▲992.02 ▲0.0541.67 ▲5.7634.29 ▲0.31
Add New Post /wp-admin/post-new.php6,267 ▲4,73819.45 ▼4.251,006.68 ▲306.8142.00 ▼9.06
Media Library /wp-admin/upload.php1,490 ▲874.20 ▲0.02105.50 ▲0.6141.48 ▼2.35
Quick Start /wp-admin/admin.php?page=metaslider-start1,5356.08184.0831.37
Settings & Help /wp-admin/admin.php?page=metaslider-settings1,7777.21175.8365.55
Upgrade to Pro /wp-admin/admin.php?page=upgrade-metaslider1,9755.4299.0775.81
Home /wp-admin/admin.php?page=metaslider1,4745.9087.9541.00

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
The following items require your attention
  • The uninstall procedure has failed, leaving 9 options in the database
    • ms_was_installed_on
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_metaslider_widget
    • ms_hide_all_ads_until
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 95× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/ml-slider/admin/views/slides/tabs/schedule.php
    • > /wp-content/plugins/ml-slider/inc/slide/metaslide.image.class.php
    • > /wp-content/plugins/ml-slider/metagallery/app/Controllers/GalleryController.php
    • > /wp-content/plugins/ml-slider/themes/radix/v1.0.0/theme.php
    • > /wp-content/plugins/ml-slider/admin/slideshows/Settings.php
    • > /wp-content/plugins/ml-slider/metagallery/routes/console.php
    • > /wp-content/plugins/ml-slider/metagallery/app/Traits/Routable.php
    • > /wp-content/plugins/ml-slider/admin/lib/Updraft_Notices.php
    • > /wp-content/plugins/ml-slider/metagallery/resources/views/pages/single.php
    • > /wp-content/plugins/ml-slider/metagallery/resources/views/layouts/main.php
  • 174× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/ml-slider/lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Number.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_Injector' not found in wp-content/plugins/ml-slider/lib/htmlpurifier/library/HTMLPurifier/Injector/DisplayLinkURI.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_Token' not found in wp-content/plugins/ml-slider/lib/htmlpurifier/library/HTMLPurifier/Token/Text.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_HTMLModule' not found in wp-content/plugins/ml-slider/lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Proprietary.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_HTMLModule' not found in wp-content/plugins/ml-slider/lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Legacy.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_AttrTransform' not found in wp-content/plugins/ml-slider/lib/htmlpurifier/library/HTMLPurifier/AttrTransform/ImgSpace.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_AttrTransform' not found in wp-content/plugins/ml-slider/lib/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeObject.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/ml-slider/lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/TextDecoration.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_URIScheme' not found in wp-content/plugins/ml-slider/lib/htmlpurifier/library/HTMLPurifier/URIScheme/mailto.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/ml-slider/lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #7 (Manage and edit all your slideshows from one screen), #8 (Easily edit your sliders inside WordPress), #9 (You can easily preview sliders from the WordPress admin)
  • Tags: Please delete some tags, you are using 29 tag instead of maximum 10
The official readme.txt might help

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

"Slider, Gallery, and Carousel by MetaSlider - Responsive WordPress Slideshows" version 3.50.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
108 characters long description:
MetaSlider gives you the power to create a beautiful slideshow, carousel, or gallery on your WordPress site.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected214,448 lines of code in 639 files:
LanguageFilesBlank linesComment linesLines of code
CSS6533,981371119,217
PHP3605,62615,16631,067
JavaScript974,8557,32830,015
PO File2011,33312,72826,701
Vuejs Component382362564,866
Markdown527201,124
Sass2221818987
JSON2600297
CoffeeScript1310103
HTML17137
SVG30133
INI1111

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Method cyclomatic complexity should be reduced to less than 100 (currently 232)
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity15.69
▷ Minimum class complexity1.00
▷ Maximum class complexity539.00
Average method complexity4.32
▷ Minimum method complexity1.00
▷ Maximum method complexity232.00
Code structure
Namespaces10
Interfaces1
Traits1
Classes293
▷ Abstract classes186.14%
▷ Concrete classes27593.86%
▷ Final classes10.36%
Methods1,333
▷ Static methods866.45%
▷ Public methods1,03377.49%
▷ Protected methods1269.45%
▷ Private methods17413.05%
Functions37
▷ Named functions2362.16%
▷ Anonymous functions1437.84%
Constants85
▷ Global constants2529.41%
▷ Class constants6070.59%
▷ Public constants60100.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
103 PNG files occupy 3.34MB with 0.95MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/features/metaslider_logo.png2.39KB2.66KB0.00%
admin/assets/vendor/colorbox/images/ie6/borderTopCenter.png0.11KB0.10KB▼ 8.11%
assets/sliders/nivoslider/themes/dark/bullets.png3.07KB0.42KB▼ 86.27%
admin/images/notices/keyy_logo.png2.25KB1.19KB▼ 47.19%
admin/images/upgrade/post-feed.png223.92KB241.64KB0.00%