77% media-carousel-video-logo-and-image-slider-for-elementor

Code Review | Media Carousel - Video, Logo and Image Slider for Elementor

WordPress plugin Media Carousel - Video, Logo and Image Slider for Elementor scored77%from 54 tests.

About plugin

  • Plugin page: media-carousel-vi...
  • Plugin version: 0.9.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 6.3.1
  • First release: Jul 27, 2020
  • Latest release: Jan 8, 2021
  • Number of updates: 10
  • Update frequency: every 17.5 days
  • Top authors: plugindevs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,042 total downloads

Benchmarks

Plugin footprint 83% 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.14MB] [CPU: ▼5.65ms] Passed 4 tests

Analyzing server-side resources used by Media Carousel - Video, Logo and Image Slider for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0638.37 ▲0.76
Dashboard /wp-admin3.48 ▲0.1450.92 ▼8.04
Posts /wp-admin/edit.php3.60 ▲0.2446.37 ▲1.15
Add New Post /wp-admin/post-new.php6.08 ▲0.2078.17 ▼16.47
Media Library /wp-admin/upload.php3.41 ▲0.1833.62 ▲1.64
Support /wp-admin/admin.php?page=wb-page-wbelps-support3.3930.49
Custom JS /wp-admin/admin.php?page=wbel-mc-custom-js3.3829.49
Custom CSS /wp-admin/admin.php?page=wbel-mc-custom-css3.3828.60

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Media Carousel - Video, Logo and Image Slider for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲6914.05 ▼0.301.76 ▼0.0533.61 ▼6.42
Dashboard /wp-admin2,249 ▲725.69 ▲0.0487.45 ▲3.2445.95 ▲3.57
Posts /wp-admin/edit.php2,151 ▲542.02 ▲0.0835.11 ▲0.1538.14 ▲3.17
Add New Post /wp-admin/post-new.php1,566 ▲3823.01 ▼0.41669.80 ▲2.1957.72 ▼6.07
Media Library /wp-admin/upload.php1,442 ▲424.17 ▼0.0496.27 ▼3.2646.32 ▼0.50
Support /wp-admin/admin.php?page=wb-page-wbelps-support1,5842.1044.22125.73
Custom JS /wp-admin/admin.php?page=wbel-mc-custom-js1,0333.3072.4459.58
Custom CSS /wp-admin/admin.php?page=wbel-mc-custom-css1,0373.3061.7737.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/media-carousel-video-logo-and-image-slider-for-elementor/effects/carousel/template.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-carousel-video-logo-and-image-slider-for-elementor/admin/notices/support.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/media-carousel-video-logo-and-image-slider-for-elementor/widgets/media-carousel.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-carousel-video-logo-and-image-slider-for-elementor/support-page/class-support-page.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-carousel-video-logo-and-image-slider-for-elementor/admin/admin-pages.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Contributors: The plugin contributors field is not present
Please take inspiration from this readme.txt

media-carousel-video-logo-and-image-slider-for-elementor/media-carousel-for-elementor.php 69% from 13 tests

"Media Carousel - Video, Logo and Image Slider for Elementor" version 0.9.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("media-carousel-video-logo-and-image-slider-for-elementor.php" instead of "media-carousel-for-elementor.php")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin6,567 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS6125952,023
PHP93913301,650
JavaScript9465223

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity12.00
▷ Minimum class complexity3.00
▷ Maximum class complexity28.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods43
▷ Static methods12.33%
▷ Public methods4093.02%
▷ Protected methods36.98%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
support-page/images/icon-pack/service-07.png1.67KB0.86KB▼ 48.39%
support-page/images/icon-pack/service-03.png2.06KB1.36KB▼ 34.03%
support-page/images/icon-pack/service-08.png2.54KB1.42KB▼ 44.28%
support-page/images/icon-pack/service-06.png2.38KB1.13KB▼ 52.68%
support-page/images/icon-pack/service-02.png3.04KB2.19KB▼ 27.95%