84% jma-youtube-playlists-with-schema

Code Review | YouTube Playlists with Schema

WordPress plugin YouTube Playlists with Schema scored84%from 54 tests.

About plugin

  • Plugin page: jma-youtube-playl...
  • Plugin version: 2.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: May 20, 2017
  • Latest release: Nov 12, 2023
  • Number of updates: 67
  • Update frequency: every 35.5 days
  • Top authors: johnnya23 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

60+ active /5,383 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.18MB] [CPU: ▼18.80ms] Passed 4 tests

Server-side resources used by YouTube Playlists with Schema
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.92 ▼0.5418.48 ▼27.08
Dashboard /wp-admin3.48 ▲0.1448.52 ▼13.17
Posts /wp-admin/edit.php3.59 ▲0.2448.79 ▲3.57
Add New Post /wp-admin/post-new.php5.38 ▼0.5063.00 ▼37.23
Media Library /wp-admin/upload.php3.40 ▲0.1738.60 ▲2.30
YouTube Playlists with Schema /wp-admin/options-general.php?page=jmayt_settings3.3833.34

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for YouTube Playlists with Schema
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3514.05 ▼0.221.80 ▲0.0937.05 ▼7.37
Dashboard /wp-admin2,202 ▲245.60 ▼0.0795.06 ▼19.0237.41 ▼6.11
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0640.69 ▲4.7536.69 ▼0.72
Add New Post /wp-admin/post-new.php6,254 ▲4,71821.64 ▼1.36966.78 ▲294.6239.15 ▼17.33
Media Library /wp-admin/upload.php1,407 ▲104.17 ▼0.0396.00 ▼2.1945.56 ▼1.33
YouTube Playlists with Schema /wp-admin/options-general.php?page=jmayt_settings1,3961.9037.7332.98

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'JMAYtVideo' not found in wp-content/plugins/jma-youtube-playlists-with-schema/classes/JMAYtList.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: youtube gallery, youtube seo, schema, youtube channel, youtube playlist...

jma-youtube-playlists-with-schema/youtube-playlists-with-schema.php 85% from 13 tests

"YouTube Playlists with Schema" version 2.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("jma-youtube-playlists-with-schema.php" instead of "youtube-playlists-with-schema.php")
  • Description: The description should be shorter than 140 characters (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected3,874 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP91803471,645
JavaScript81891801,384
CSS413934557
SVG100288

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity36.40
▷ Minimum class complexity19.00
▷ Maximum class complexity67.00
Average method complexity6.90
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods30
▷ Static methods413.33%
▷ Public methods2066.67%
▷ Protected methods723.33%
▷ Private methods310.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/jquery.minicolors.png67.02KB34.31KB▼ 48.80%