Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼5.16MB] [CPU: ▼1,050,124.09ms] Passed 4 tests
An overview of server-side resources used by YGPlayer Embed
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▼20.76 | 43.85 ▼4,200,476.73 |
Dashboard /wp-admin | 3.38 ▲0.03 | 52.57 ▼5.38 |
Posts /wp-admin/edit.php | 3.49 ▲0.09 | 51.96 ▲0.89 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.05 | 91.14 ▼13.44 |
Media Library /wp-admin/upload.php | 3.30 ▲0.03 | 39.80 ▼0.82 |
YGVideo Wizard /wp-admin/admin.php?page=ygvideo-wizard | 3.28 | 35.08 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for YGPlayer Embed
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.19 ▼0.16 | 1.70 ▼0.26 | 43.86 ▼0.26 |
Dashboard /wp-admin | 2,202 ▲28 | 5.70 ▲0.03 | 88.89 ▼9.29 | 39.39 ▼8.02 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▲0.00 | 36.59 ▼0.87 | 33.32 ▼5.58 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.24 ▲0.21 | 655.58 ▼121.23 | 60.86 ▼4.48 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.20 ▲0.08 | 99.86 ▼14.82 | 41.38 ▼9.14 |
YGVideo Wizard /wp-admin/admin.php?page=ygvideo-wizard | 729 | 1.66 | 23.68 | 24.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ygvideo-wizard
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ygvideo-wizard
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/ygvideo/views/wizard_form.php
- > /wp-content/plugins/ygvideo/views/media_button.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/ygvideo/views/wizard_preview.php on line 5
- > PHP Notice
Undefined variable: href in wp-content/plugins/ygvideo/views/media_button.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ygvideo/views/wizard_preview.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ygvideo/ygvideo.php:19
- > PHP Notice
Undefined variable: typeList in wp-content/plugins/ygvideo/views/wizard_preview.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Requires php: Version format is invalid
- Requires at least: Version format is invalid
ygvideo/ygvideo.php Passed 13 tests
The primary PHP file in "YGPlayer Embed" version 1.1 is used by WordPress to initiate all plugin functionality
31 characters long description:
YGVideo Embed WordPress Plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin311 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 26 | 37 | 174 |
CSS | 3 | 8 | 8 | 68 |
JavaScript | 2 | 5 | 1 | 56 |
SVG | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 8 | |
▷ Static methods | 7 | 87.50% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.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
No PNG files were detected