84% video-popup

Code Review | Video PopUp

WordPress plugin Video PopUp scored84%from 54 tests.

About plugin

  • Plugin page: video-popup
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2016
  • Latest release: Dec 2, 2023
  • Number of updates: 82
  • Update frequency: every 34.4 days
  • Top authors: Alobaidi (100%)

Code review

54 tests

User reviews

41 reviews

Install metrics

20,000+ active /195,140 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.25MB] [CPU: ▲0.40ms] Passed 4 tests

An overview of server-side resources used by Video PopUp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2240.86 ▼0.32
Dashboard /wp-admin3.55 ▲0.2549.09 ▼1.03
Posts /wp-admin/edit.php3.67 ▲0.3150.06 ▲2.06
Add New Post /wp-admin/post-new.php6.15 ▲0.2793.99 ▲1.52
Media Library /wp-admin/upload.php3.48 ▲0.2537.15 ▲1.41
On Page Load /wp-admin/admin.php?page=video_popup_on_pageload3.4538.73
General Settings /wp-admin/admin.php?page=video_popup_general_settings3.4535.46
Shortcode Usage /wp-admin/admin.php?page=video_popup_shortcode3.4432.21

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 50 new files
Database: no new tables, 11 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
vp_al_op_display
widget_recent-comments
can_compress_scripts
vp_al_op_cookie
vp_green_bg_menu
vp_extension_update_checker_106
vp_prm_alobaidi
...

Browser metrics Passed 4 tests

Checking browser requirements for Video PopUp
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲18313.45 ▼0.918.25 ▲6.5437.13 ▼7.68
Dashboard /wp-admin2,235 ▲585.64 ▲0.0890.94 ▼7.0242.48 ▼1.99
Posts /wp-admin/edit.php2,140 ▲431.97 ▼0.0439.12 ▼0.3734.63 ▼0.99
Add New Post /wp-admin/post-new.php1,562 ▲3623.40 ▼0.23627.45 ▼42.1554.39 ▲3.02
Media Library /wp-admin/upload.php1,443 ▲434.21 ▼0.0199.06 ▲4.7341.31 ▲0.97
On Page Load /wp-admin/admin.php?page=video_popup_on_pageload1,1792.0529.2935.25
General Settings /wp-admin/admin.php?page=video_popup_general_settings9461.9725.9929.51
Shortcode Usage /wp-admin/admin.php?page=video_popup_shortcode9821.9623.3129.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • vp_prm_alobaidi
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 26× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/video-popup/uninstall.php
    • > /wp-content/plugins/video-popup/video-popup.php
    • > /wp-content/plugins/video-popup/features/index.php
    • > /wp-content/plugins/video-popup/tinymce/css/index.php
    • > /wp-content/plugins/video-popup/admin/on-pageload.php
    • > /wp-content/plugins/video-popup/css/vp-close-icon/index.php
    • > /wp-content/plugins/video-popup/tinymce/index.php
    • > /wp-content/plugins/video-popup/tinymce/js/index.php
    • > /wp-content/plugins/video-popup/admin/shortcode-usage.php
    • > /wp-content/plugins/video-popup/js/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in video-popup/assets to your readme.txt
The official readme.txt might help

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

Analyzing the main PHP file in "Video PopUp" version 1.1.4
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 190 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,372 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP13444311,203
JavaScript310321414
CSS8619404
PO File1158160330
SVG21021

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions53
▷ Named functions53100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin