83% my-youtube-playlist

Code Review | My Youtube Playlist

WordPress plugin My Youtube Playlist scored83%from 54 tests.

About plugin

  • Plugin page: my-youtube-playlist
  • Plugin version: 2.54
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Oct 27, 2009
  • Latest release: Jul 31, 2022
  • Number of updates: 87
  • Update frequency: every 53.6 days
  • Top authors: jonkastonka (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /21,228 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.00MB] [CPU: ▼11.20ms] Passed 4 tests

Analyzing server-side resources used by My Youtube Playlist
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.68 ▼7.01
Dashboard /wp-admin3.31 ▼0.0350.43 ▼13.83
Posts /wp-admin/edit.php3.36 ▲0.0148.95 ▼3.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0198.07 ▼20.46
Media Library /wp-admin/upload.php3.24 ▲0.0137.55 ▲0.22

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by My Youtube Playlist
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.49 ▼1.048.58 ▲7.0239.66 ▼2.20
Dashboard /wp-admin2,189 ▲125.57 ▼0.15101.66 ▲10.0939.72 ▲1.28
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0843.05 ▲7.9036.59 ▲1.85
Add New Post /wp-admin/post-new.php1,526 ▼1123.38 ▲5.09612.07 ▼25.2747.40 ▼24.91
Media Library /wp-admin/upload.php1,400 ▼34.10 ▼0.08108.46 ▲6.6848.75 ▲3.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-youtube-playlist/myYoutubePlaylist.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: youtube, playlist

my-youtube-playlist/myYoutubePlaylist.php 77% from 13 tests

The main PHP script in "My Youtube Playlist" version 2.54 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("my-youtube-playlist.php" instead of "myYoutubePlaylist.php")
  • Domain Path: The domain path folder was not found ("/languages")

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
Success! There were no dangerous files found in this plugin176 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS12573
JavaScript18870
PHP151233

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.00
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%
Functions3
▷ Named functions3100.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
No PNG files were detected