84% wptd-video-popup

Code Review | Video Popup for Elementor - WPTD

WordPress plugin Video Popup for Elementor - WPTD scored 84% from 54 tests.

About plugin

  • Plugin page: wptd-video-popup
  • Plugin version: 1.5.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Dec 31, 2020
  • Latest release: Nov 8, 2022
  • Number of updates: 23
  • Update frequency: every 29.5 days
  • Top authors: wpthemedevelopers (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active / 8,194 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: ▲0.01MB] [CPU: ▼0.81ms] Passed 4 tests

Server-side resources used by Video Popup for Elementor - WPTD
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.45 ▼4.93
Dashboard /wp-admin3.32 ▲0.0156.73 ▲7.11
Posts /wp-admin/edit.php3.37 ▲0.0148.21 ▲0.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.82 ▲1.92
Media Library /wp-admin/upload.php3.24 ▲0.0137.18 ▼0.94

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Video Popup for Elementor - WPTD
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.66 ▼0.741.71 ▼0.0541.62 ▼3.49
Dashboard /wp-admin2,235 ▲444.87 ▼1.02110.02 ▼4.4544.44 ▼1.85
Posts /wp-admin/edit.php2,120 ▲312.03 ▲0.0241.07 ▲1.6834.64 ▼1.02
Add New Post /wp-admin/post-new.php1,553 ▲3423.65 ▲0.40674.22 ▲17.0152.00 ▼8.73
Media Library /wp-admin/upload.php1,423 ▲354.18 ▼0.0193.88 ▼16.5644.85 ▼1.10

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 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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)
Good news, no errors were detected

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
Please fix the following items
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Plugin' not found in wp-content/plugins/wptd-video-popup/inc/class.video-popup.php:51
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wptd-video-popup/widgets/video-popup-elementor.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wptd-video-popup/admin/admin-page.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/wptd-video-popup/inc/class.elementor.settings.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptd-video-popup/widgets/video-popup-wp-shortcodes.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptd-video-popup/admin/wptd-settings.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: youtube lightbox, lightbox, popup video, video lightbox, vimeo lightbox...

wptd-video-popup/wptd-video-popup.php 92% from 13 tests

The main file in "Video Popup for Elementor - WPTD" v. 1.5.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 157 characters long)

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
Everything looks great! No dangerous files found in this plugin1,863 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP81533081,557
CSS3714184
JavaScript21312122

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity14.00
▷ Minimum class complexity2.00
▷ Maximum class complexity44.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes233.33%
Methods41
▷ Static methods717.07%
▷ Public methods3892.68%
▷ Protected methods37.32%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png10.47KB4.76KB▼ 54.57%