Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/auto-video-youtube-poster/index.php+16
Use of undefined constant file_get_html - assumed 'file_get_html' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.79MB] [CPU: ▼47.20ms] Passed 4 tests
Analyzing server-side resources used by Auto Video Youtube Poster
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.20 ▼1.26 | 10.46 ▼32.02 |
Dashboard /wp-admin | 2.22 ▼1.09 | 6.70 ▼41.39 |
Posts /wp-admin/edit.php | 2.22 ▼1.14 | 7.36 ▼37.60 |
Add New Post /wp-admin/post-new.php | 2.22 ▼3.67 | 6.47 ▼77.78 |
Media Library /wp-admin/upload.php | 2.22 ▼1.01 | 6.57 ▼29.69 |
Auto Video Youtube Poster /wp-admin/options-general.php?page=autovideoyoutubepub | 2.22 | 6.11 |
Server storage [IO: ▲1.84MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Auto Video Youtube Poster
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 14.41 ▲0.03 | 1.83 ▲0.09 | 43.76 ▼4.67 |
Dashboard /wp-admin | 2,212 ▲21 | 4.84 ▼0.07 | 106.76 ▲2.32 | 38.26 ▼0.49 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▼0.04 | 40.14 ▲1.12 | 34.15 ▲0.67 |
Add New Post /wp-admin/post-new.php | 6,512 ▲4,984 | 19.09 ▼4.09 | 884.03 ▲282.50 | 79.47 ▲30.24 |
Media Library /wp-admin/upload.php | 1,394 ▲12 | 4.19 ▼0.00 | 99.49 ▼5.85 | 41.71 ▼1.94 |
Auto Video Youtube Poster /wp-admin/options-general.php?page=autovideoyoutubepub | 1,870 | 2.07 | 24.78 | 86.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the vp_style.css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=autovideoyoutubepub
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the vp_style.css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=autovideoyoutubepub
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the vp_style.css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=autovideoyoutubepub
- > Warning in wp-content/plugins/auto-video-youtube-poster/index.php+16
Use of undefined constant file_get_html - assumed 'file_get_html' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=autovideoyoutubepub
- > Warning in wp-content/plugins/auto-video-youtube-poster/index.php+243
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- > GET request to /wp-admin/options-general.php?page=autovideoyoutubepub
- > Warning in wp-content/plugins/auto-video-youtube-poster/index.php+243
file_get_contents(http://cangurotv.com/getDataForUser.php?credential=): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
- > GET request to /wp-admin/options-general.php?page=autovideoyoutubepub
- > Warning in wp-content/plugins/auto-video-youtube-poster/index.php+249
Invalid argument supplied for foreach()
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
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/auto-video-youtube-poster/obtener_img_post.php
- > /wp-content/plugins/auto-video-youtube-poster/actualizar_img_post.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/auto-video-youtube-poster/index.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=autovideoyoutubepub
- > Network (severe)
http://cangurotv.com/videos/dance.mp3 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/options-general.php?page=autovideoyoutubepub
- > Network (severe)
http://cangurotv.com/videos/funky.mp3 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/options-general.php?page=autovideoyoutubepub
- > Network (severe)
http://cangurotv.com/videos/pop.mp3 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/options-general.php?page=autovideoyoutubepub
- > Network (severe)
http://cangurotv.com/videos/sweet.mp3 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/options-general.php?page=autovideoyoutubepub
- > Network (severe)
http://cangurotv.com/videos/scifi.mp3 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: post to youtube, automatic youtube, automatic videos, upload videos youtube, auto video youtube poster...
auto-video-youtube-poster/index.php 85% from 13 tests
"Auto Video Youtube Poster" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("auto-video-youtube-poster.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin2,590 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 352 | 276 | 2,028 |
CSS | 1 | 15 | 4 | 562 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 123.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 1 | 1.08% |
▷ Public methods | 77 | 82.80% |
▷ Protected methods | 16 | 17.20% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 1.17MB with 0.78MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner-1544x500.png | 815.34KB | 289.75KB | ▼ 64.46% |
icon-256x256.png | 104.35KB | 33.90KB | ▼ 67.51% |
banner-772x250.png | 248.62KB | 84.06KB | ▼ 66.19% |
icon-128x128.png | 32.61KB | 10.94KB | ▼ 66.44% |