78% jcwp-youtube-channel-embed

Code Review | jcwp youtube channel embed

WordPress plugin jcwp youtube channel embed scored78%from 54 tests.

About plugin

  • Plugin page: jcwp-youtube-chan...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.2.2
  • WordPress version: 6.3.1
  • First release: Aug 17, 2012
  • Latest release: Jun 5, 2015
  • Number of updates: 17
  • Update frequency: every 60.2 days
  • Top authors: jaschahal (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /14,081 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.57ms] Passed 4 tests

An overview of server-side resources used by jcwp youtube channel embed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.51 ▼4.37
Dashboard /wp-admin3.32 ▲0.0244.74 ▼7.37
Posts /wp-admin/edit.php3.38 ▲0.0250.17 ▲2.76
Add New Post /wp-admin/post-new.php5.92 ▲0.0491.27 ▲7.24
Media Library /wp-admin/upload.php3.25 ▲0.0233.12 ▼1.28
JCWP Youtube channel embed /wp-admin/options-general.php?page=jcorgytce-plugin3.1929.35

Server storage [IO: ▲0.46MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 22 new options
New WordPress options
theysaidso_admin_options
jcorgytce_ytkey
jcorgytce_order_by
widget_theysaidso_widget
jcorgytce_filter_by_videos
jcorgytce_linkback_text
jcorgytce_mode
jcorgytce_thumbnail_width
db_upgraded
can_compress_scripts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for jcwp youtube channel embed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲17913.81 ▼0.585.09 ▲3.1140.15 ▼8.57
Dashboard /wp-admin2,208 ▲205.19 ▼0.71102.39 ▼12.0539.98 ▼6.32
Posts /wp-admin/edit.php2,096 ▲72.31 ▲0.3236.45 ▼0.0135.89 ▼0.27
Add New Post /wp-admin/post-new.php6,287 ▲4,76523.57 ▲0.22870.76 ▲181.5534.19 ▼20.50
Media Library /wp-admin/upload.php1,393 ▲24.49 ▲0.2999.29 ▼2.3260.64 ▲17.81
JCWP Youtube channel embed /wp-admin/options-general.php?page=jcorgytce-plugin1,1681.9930.2447.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 22 options
    • jcorgytce_linkback_text
    • jcorgytce_order_by
    • jcorgytce_playlist
    • jcorgytce_mode
    • widget_recent-posts
    • jcorgytce_video_width
    • jcorgytce_thumbnail_width
    • jcorgytce_thumb_quality
    • jcorgytce_use
    • jcorgytce_ytkey
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=jcorgytce-plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=jcorgytce-plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/jcwp-youtube-channel-embed/jcwp-youtube-channel-embed.php:24

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === jcwp-youtube-channel-embed === )
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (A screen shot of the options page), #2 (Shows mode: list), #3 (shows mode:thumbnails)
The official readme.txt might help

jcwp-youtube-channel-embed/jcwp-youtube-channel-embed.php Passed 13 tests

The primary PHP file in "jcwp youtube channel embed" version 2.0.0 is used by WordPress to initiate all plugin functionality
61 characters long description:
This plugin embeds a custom channel to wordpress page or post

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin713 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP12816375
CSS211202
JavaScript2920136

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
30 PNG files occupy 0.37MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/prettyPhoto/facebook/contentPatternLeft.png0.13KB0.10KB▼ 24.82%
images/prettyPhoto/light_rounded/sprite.png4.00KB2.56KB▼ 36.16%
images/prettyPhoto/facebook/btnPrevious.png0.81KB0.58KB▼ 27.90%
images/prettyPhoto/default/sprite_prev.png1.34KB0.38KB▼ 71.73%
images/prettyPhoto/light_square/btnPrevious.png1.41KB1.19KB▼ 15.74%