83% vk-popup-for-youtube-and-video

Code Review | Responsive Popup for YouTube & Vimeo

WordPress plugin Responsive Popup for YouTube & Vimeo scored83%from 54 tests.

About plugin

  • Plugin page: vk-popup-for-yout...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.25+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 18, 2018
  • Latest release: Mar 19, 2018
  • Number of updates: 20
  • Update frequency: every 1.2 days
  • Top authors: vkuberan1985 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /588 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.39ms] Passed 4 tests

Server-side resources used by Responsive Popup for YouTube & Vimeo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0032.87 ▼3.13
Dashboard /wp-admin3.31 ▼0.0444.25 ▼16.54
Posts /wp-admin/edit.php3.36 ▲0.0042.73 ▲1.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.76 ▼7.30
Media Library /wp-admin/upload.php3.23 ▲0.0036.11 ▲4.60

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Responsive Popup for YouTube & Vimeo
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.081.51 ▼0.0336.65 ▼4.20
Dashboard /wp-admin2,192 ▲185.64 ▲0.0880.36 ▼5.7336.42 ▼7.42
Posts /wp-admin/edit.php2,100 ▲211.97 ▼0.0438.87 ▲4.4436.22 ▲1.96
Add New Post /wp-admin/post-new.php1,535 ▲718.19 ▼4.96611.56 ▼22.8669.95 ▲19.50
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0591.98 ▼7.5339.51 ▼5.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× 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/vk-popup-for-youtube-and-video/vk-popup-for-youtube-and-vimeo.php:28

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 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

vk-popup-for-youtube-and-video/vk-popup-for-youtube-and-vimeo.php 77% from 13 tests

The entry point to "Responsive Popup for YouTube & Vimeo" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 180 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("vk-popup-for-youtube-and-video.php" instead of "vk-popup-for-youtube-and-vimeo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin42 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1361636
JavaScript23185
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin