10% video-playlist-lite

Code Review | Player with Playlist Block for WordPress Editor

WordPress plugin Player with Playlist Block for WordPress Editor scored10%from 54 tests.

About plugin

  • Plugin page: video-playlist-lite
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2019
  • Latest release: Mar 4, 2019
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: AA-Team (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,473 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/video-playlist-lite/index.php+38
    Use of undefined constant AAT_YVY_BOOTSTRAP_FILE - assumed 'AAT_YVY_BOOTSTRAP_FILE' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.96MB] [CPU: ▼57.17ms] Passed 4 tests

Server-side resources used by Player with Playlist Block for WordPress Editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.446.43 ▼33.96
Dashboard /wp-admin2.05 ▼1.265.99 ▼50.16
Posts /wp-admin/edit.php2.05 ▼1.316.43 ▼44.37
Add New Post /wp-admin/post-new.php2.05 ▼3.845.54 ▼100.17
Media Library /wp-admin/upload.php2.05 ▼1.185.56 ▼29.90

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Player with Playlist Block for WordPress Editor: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,232 ▲44623.14 ▲8.4825.76 ▲23.7349.56 ▲3.33
Dashboard /wp-admin2,434 ▲25711.56 ▲6.02134.71 ▲40.3839.45 ▼4.99
Posts /wp-admin/edit.php2,309 ▲20910.56 ▲8.6081.61 ▲43.8033.51 ▲1.75
Add New Post /wp-admin/post-new.php6,352 ▲4,82629.02 ▲5.93782.49 ▲87.5040.13 ▼18.47
Media Library /wp-admin/upload.php1,762 ▲36211.28 ▲7.08143.78 ▲37.5143.57 ▼7.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/video-playlist-lite/index.php+38
    Use of undefined constant AAT_YVY_BOOTSTRAP_FILE - assumed 'AAT_YVY_BOOTSTRAP_FILE' (this will throw an Error in a future version of PHP)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: youtube player, embed youtube playlist, player, youtube, embed youtube videos...

video-playlist-lite/index.php 77% from 13 tests

The main file in "Player with Playlist Block for WordPress Editor" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 204 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("video-playlist-lite.php" instead of "index.php")
  • Domain Path: The domain path folder was not found ("/languages")

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
No dangerous file extensions were detected261 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP27274220
JavaScript302239
CSS2022

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
PNG images were not found in this plugin