89% video-playlist-for-youtube

Code Review | Video Playlist For YouTube

WordPress plugin Video Playlist For YouTube scored 89% from 54 tests.

About plugin

  • Plugin page: video-playlist-fo...
  • Plugin version: 6.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 14, 2020
  • Latest release: Oct 5, 2022
  • Number of updates: 27
  • Update frequency: every 33.5 days
  • Top authors: galaxyweblinks (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active / 6,902 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼0.81ms] Passed 4 tests

A check of server-side resources used by Video Playlist For YouTube
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1443.47 ▲1.48
Dashboard /wp-admin3.45 ▲0.1451.13 ▲1.40
Posts /wp-admin/edit.php3.56 ▲0.2045.83 ▲4.36
Add New Post /wp-admin/post-new.php6.10 ▲0.2185.48 ▼5.61
Media Library /wp-admin/upload.php3.37 ▲0.1435.05 ▼0.50
All Playlists /wp-admin/edit.php?post_type=vid_playlist_ytub3.4136.23
Settings /wp-admin/edit.php?post_type=vid_playlist_ytub&page=vpfy_settings_menu3.3332.73

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

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

Browser metrics Passed 4 tests

Video Playlist For YouTube: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲11513.26 ▼1.144.51 ▲2.7443.43 ▼1.08
Dashboard /wp-admin2,237 ▲454.86 ▼0.04103.65 ▼5.0541.08 ▼4.81
Posts /wp-admin/edit.php2,117 ▲282.06 ▲0.0934.56 ▼2.0333.27 ▼0.26
Add New Post /wp-admin/post-new.php1,567 ▲3218.20 ▼5.09621.34 ▼83.9358.67 ▲0.11
Media Library /wp-admin/upload.php1,422 ▲314.31 ▲0.1094.33 ▼4.4343.40 ▼0.92
All Playlists /wp-admin/edit.php?post_type=vid_playlist_ytub1,0921.9429.5331.18
Settings /wp-admin/edit.php?post_type=vid_playlist_ytub&page=vpfy_settings_menu9152.0222.9227.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output 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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
You can look at the official readme.txt

video-playlist-for-youtube/video-playlist-ytb-plugin.php 85% from 13 tests

The main PHP file in "Video Playlist For YouTube" ver. 6.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("video-playlist-for-youtube.php" instead of "video-playlist-ytb-plugin.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 267 characters long)

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
Good job! No executable or dangerous file extensions detected2,364 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS6415731,508
PHP58038586
JavaScript412470270

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin