84% video-thumbnailer-for-elementor

Code Review | Video Thumbnailer for Elementor

WordPress plugin Video Thumbnailer for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: video-thumbnailer...
  • Plugin version: 1.2.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 12, 2022
  • Latest release: May 9, 2023
  • Number of updates: 29
  • Update frequency: every 8.4 days
  • Top authors: StuckOn_dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,913 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.80ms] Passed 4 tests

Server-side resources used by Video Thumbnailer for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.67 ▼0.08
Dashboard /wp-admin3.31 ▲0.0045.36 ▼6.25
Posts /wp-admin/edit.php3.36 ▲0.0045.67 ▼3.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.66 ▼1.44
Media Library /wp-admin/upload.php3.23 ▲0.0033.40 ▲2.19

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Video Thumbnailer for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.48 ▲0.101.94 ▼0.0643.95 ▼0.52
Dashboard /wp-admin2,206 ▲184.87 ▲0.0199.44 ▼10.7738.99 ▼3.44
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0140.16 ▼3.5936.88 ▼1.08
Add New Post /wp-admin/post-new.php1,533 ▼923.24 ▲0.21644.63 ▼17.7352.85 ▼9.67
Media Library /wp-admin/upload.php1,379 ▼94.35 ▲0.2397.26 ▼22.9040.06 ▼10.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-thumbnailer-for-elementor/includes/settings.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-thumbnailer-for-elementor/includes/plugin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/video-thumbnailer-for-elementor/video-thumbnailer-for-elementor.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Screenshot #1 (screenshot-1.png shows the automatically thumbnailed videos in situ.) image not found
The official readme.txt is a good inspiration

video-thumbnailer-for-elementor/video-thumbnailer-for-elementor.php Passed 13 tests

This is the main PHP file of "Video Thumbnailer for Elementor" version 1.2.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
49 characters long description:
Automatically add thumbnails to Elementor videos.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin319 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP38730190
JavaScript11804073
CSS151244
XML30012

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.75MB with 0.19MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png754.06KB580.69KB▼ 22.99%
assets/images/bg.png9.71KB6.88KB▼ 29.09%