90% ultimate-multi-design-video-carousel

Code Review | Ultimate Multi Design Video Carousel

WordPress plugin Ultimate Multi Design Video Carousel scored90%from 54 tests.

About plugin

  • Plugin page: ultimate-multi-de...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.1
  • WordPress version: 6.3.1
  • First release: Aug 27, 2016
  • Latest release: Apr 16, 2021
  • Number of updates: 120
  • Update frequency: every 14.1 days
  • Top authors: gbsdeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /4,479 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Ultimate Multi Design Video Carousel
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0334.35 ▼3.14
Dashboard /wp-admin3.35 ▲0.0040.02 ▼19.99
Posts /wp-admin/edit.php3.40 ▲0.0448.17 ▲4.56
Add New Post /wp-admin/post-new.php5.93 ▲0.0577.83 ▼16.01
Media Library /wp-admin/upload.php3.27 ▲0.0433.87 ▼5.17
All Items /wp-admin/edit.php?post_type=umdc-slider3.3131.10
Add New /wp-admin/post-new.php?post_type=umdc-slider3.3951.57

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Multi Design Video Carousel
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲12513.29 ▼1.092.06 ▲0.2538.44 ▼6.94
Dashboard /wp-admin2,244 ▲564.90 ▼0.99111.29 ▼3.4442.32 ▼3.64
Posts /wp-admin/edit.php2,124 ▲352.03 ▲0.0636.90 ▲2.0329.13 ▼5.30
Add New Post /wp-admin/post-new.php1,544 ▲2523.31 ▲0.25653.48 ▼21.4457.80 ▲1.56
Media Library /wp-admin/upload.php1,423 ▲354.25 ▲0.0598.88 ▼8.0341.69 ▼5.73
All Items /wp-admin/edit.php?post_type=umdc-slider1,0942.0234.8230.67
Ultimate Multi Design /wp-admin/options-general.php?page=Ultimate Multi Design9451.8423.3427.90
Add New /wp-admin/post-new.php?post_type=umdc-slider2,3497.71167.3178.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • umdc_setting_option
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: multipost carousel, multi design post slider, multi layouts slider, youtube slider, responsive image slider...

ultimate-multi-design-video-carousel/ultimate_multi_designs_carousel.php 92% from 13 tests

The primary PHP file in "Ultimate Multi Design Video Carousel" version 1.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ultimate-multi-design-video-carousel.php" instead of "ultimate_multi_designs_carousel.php")

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
No dangerous file extensions were detected2,456 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript227111,106
PHP68860902
CSS13513448

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity25.50
▷ Minimum class complexity13.00
▷ Maximum class complexity38.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/controls.png2.19KB0.95KB▼ 56.49%
img/no_image.png7.73KB3.56KB▼ 53.95%
img/youtube-icon.png16.08KB1.54KB▼ 90.44%