68% youtube-with-fancy-zoom

Code Review | Youtube with fancy zoom

WordPress plugin Youtube with fancy zoom scored68%from 54 tests.

About plugin

  • Plugin page: youtube-with-fanc...
  • Plugin version: 12.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Oct 12, 2009
  • Latest release: Dec 1, 2022
  • Number of updates: 134
  • Update frequency: every 35.8 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /44,306 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.17ms] Passed 4 tests

Server-side resources used by Youtube with fancy zoom
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.60 ▼1.05
Dashboard /wp-admin3.35 ▲0.0152.10 ▼11.69
Posts /wp-admin/edit.php3.40 ▲0.0547.13 ▼0.59
Add New Post /wp-admin/post-new.php5.93 ▲0.0583.12 ▼14.52
Media Library /wp-admin/upload.php3.28 ▲0.0535.11 ▼1.43
Youtube fancy zoom /wp-admin/options-general.php?page=youtube-with-fancy-zoom3.2932.20

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: 1 new table, 7 new options
New tables
wp_g_ywfz
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_youtube-fancy-zoom
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Youtube with fancy zoom
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲16813.74 ▼0.6110.45 ▲8.7344.83 ▲3.41
Dashboard /wp-admin2,213 ▲224.85 ▼0.1098.57 ▼7.4644.89 ▲1.65
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0435.10 ▼6.2131.51 ▼5.32
Add New Post /wp-admin/post-new.php1,546 ▲1818.26 ▼0.32651.96 ▲15.0863.68 ▲6.10
Media Library /wp-admin/upload.php1,392 ▲14.15 ▼0.0593.82 ▼6.7843.59 ▼0.35
Youtube fancy zoom /wp-admin/options-general.php?page=youtube-with-fancy-zoom9662.1826.6128.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'g_ywfz_deactivation' not found or invalid function name
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_youtube-fancy-zoom
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/youtube-with-fancy-zoom/pages/content-add.php
    • > /wp-content/plugins/youtube-with-fancy-zoom/pages/content-edit.php
    • > /wp-content/plugins/youtube-with-fancy-zoom/pages/content-show.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/youtube-with-fancy-zoom/youtube-with-fancy-zoom.php:19
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/youtube-with-fancy-zoom/youtube-with-fancy-zoom.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: youtube, video, fancy zoom

youtube-with-fancy-zoom/youtube-with-fancy-zoom.php 92% from 13 tests

The main PHP file in "Youtube with fancy zoom" ver. 12.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)

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 plugin961 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP58744771
PO File15567126
JavaScript343363
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/prev.png1.41KB1.19KB▼ 15.74%
images/bg.png0.12KB0.09KB▼ 20.66%
images/next.png1.38KB1.14KB▼ 17.29%
images/all.png3.75KB2.38KB▼ 36.63%