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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.60 ▼1.05 |
Dashboard /wp-admin | 3.35 ▲0.01 | 52.10 ▼11.69 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 47.13 ▼0.59 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 83.12 ▼14.52 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.11 ▼1.43 |
Youtube fancy zoom /wp-admin/options-general.php?page=youtube-with-fancy-zoom | 3.29 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲168 | 13.74 ▼0.61 | 10.45 ▲8.73 | 44.83 ▲3.41 |
Dashboard /wp-admin | 2,213 ▲22 | 4.85 ▼0.10 | 98.57 ▼7.46 | 44.89 ▲1.65 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.04 | 35.10 ▼6.21 | 31.51 ▼5.32 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 18.26 ▼0.32 | 651.96 ▲15.08 | 63.68 ▲6.10 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.15 ▼0.05 | 93.82 ▼6.78 | 43.59 ▼0.35 |
Youtube fancy zoom /wp-admin/options-general.php?page=youtube-with-fancy-zoom | 966 | 2.18 | 26.61 | 28.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 87 | 44 | 771 |
PO File | 1 | 55 | 67 | 126 |
JavaScript | 3 | 4 | 33 | 63 |
CSS | 1 | 0 | 0 | 1 |
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 code | 0.34 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/prev.png | 1.41KB | 1.19KB | ▼ 15.74% |
images/bg.png | 0.12KB | 0.09KB | ▼ 20.66% |
images/next.png | 1.38KB | 1.14KB | ▼ 17.29% |
images/all.png | 3.75KB | 2.38KB | ▼ 36.63% |