Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.62MB] [CPU: ▼16.75ms] Passed 4 tests
An overview of server-side resources used by Tube Video Ads Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.21 ▼6.27 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.32 ▼0.36 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 45.84 ▼7.40 |
Add New Post /wp-admin/post-new.php | 3.20 ▼2.68 | 38.13 ▼52.96 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 35.48 ▲4.37 |
Tube Video Ads /wp-admin/edit.php?post_type=wp_you_link | 3.34 | 34.28 |
Go Pro /wp-admin/edit.php?post_type=wp_you_link&page=gopro_wpyoulink | 3.26 | 30.23 |
Embeded Code /wp-admin/admin.php?page=embededcode_wpyoulink | 3.26 | 28.75 |
Add New /wp-admin/post-new.php?post_type=wp_you_link | 3.15 | 30.54 |
How to use /wp-admin/edit.php?post_type=wp_you_link&page=use_wpyoulink | 3.26 | 42.93 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Tube Video Ads Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲70 | 14.67 ▼0.09 | 1.80 ▼0.06 | 38.15 ▼5.04 |
Dashboard /wp-admin | 2,235 ▲57 | 5.65 ▼0.05 | 94.23 ▼18.44 | 42.34 ▼2.34 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 2.01 ▲0.07 | 40.87 ▼5.53 | 37.43 ▼6.14 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 22.98 ▼0.56 | 679.30 ▲35.95 | 58.36 ▲11.25 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.14 ▼0.01 | 95.71 ▼1.52 | 42.30 ▼1.69 |
Tube Video Ads /wp-admin/edit.php?post_type=wp_you_link | 1,118 | 1.91 | 32.59 | 31.74 |
Go Pro /wp-admin/edit.php?post_type=wp_you_link&page=gopro_wpyoulink | 824 | 1.97 | 24.52 | 27.85 |
Embeded Code /wp-admin/admin.php?page=embededcode_wpyoulink | 807 | 1.96 | 26.03 | 24.96 |
Add New /wp-admin/post-new.php?post_type=wp_you_link | 2,246 | 9.20 | 285.25 | 103.04 |
How to use /wp-admin/edit.php?post_type=wp_you_link&page=use_wpyoulink | 937 | 2.00 | 27.14 | 33.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=wp_you_link
- > Notice in wp-content/plugins/tube-video-ads-lite/video.php+82
Undefined index: post_type
- > GET request to /wp-admin/post-new.php?post_type=wp_you_link
- > Notice in wp-content/plugins/tube-video-ads-lite/add_link_html.php+50
Undefined variable: title
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/tube-video-ads-lite/use_wp_you_link.php
- > /wp-content/plugins/tube-video-ads-lite/link_list_html.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/tube-video-ads-lite/add_link_html.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tube-video-ads-lite/video_free.php:13
- > PHP Notice
Undefined variable: title in wp-content/plugins/tube-video-ads-lite/link_list_html.php on line 18
- > PHP Notice
Undefined variable: mode in wp-content/plugins/tube-video-ads-lite/preview_video_html.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/tube-video-ads-lite/link_list_html.php on line 34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tube-video-ads-lite/video.php:13
- > PHP Notice
Undefined variable: linkList in wp-content/plugins/tube-video-ads-lite/link_list_html.php on line 34
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tube-video-ads-lite/script.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tube-video-ads-lite/preview_video_html.php:25
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=wp_you_link&page=gopro_wpyoulink
- > Network (severe)
http://www.tubevideoads.com/images/youtube_video_ads.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/post-new.php?post_type=wp_you_link
- > Other (warning) in unknown
https://www.youtube.com/s/player/31e0b6d9/www-widgetapi.vflset/www-widgetapi.js 1248 Unrecognized feature: 'web-share'.
- > GET request to /wp-admin/edit.php?post_type=wp_you_link&page=use_wpyoulink
- > Network (severe)
http://www.tubevideoads.com/resources/htu_01.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/edit.php?post_type=wp_you_link&page=use_wpyoulink
- > Network (severe)
http://www.tubevideoads.com/resources/htu_02.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/edit.php?post_type=wp_you_link&page=use_wpyoulink
- > Network (severe)
http://www.tubevideoads.com/resources/htu_03.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/edit.php?post_type=wp_you_link&page=use_wpyoulink
- > Network (severe)
http://www.tubevideoads.com/resources/htu_04.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/edit.php?post_type=wp_you_link&page=use_wpyoulink
- > Network (severe)
http://www.tubevideoads.com/resources/htu_05.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Tube Video Ads menu within the dashboard), #2 (All the videos created with short codes), #3 (Form to create a new video), #4 (Video showed up within a post or a page), #5 (Button Mouse Over effect)
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
tube-video-ads-lite/video.php 85% from 13 tests
"Tube Video Ads Lite" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 412 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("tube-video-ads-lite.php" instead of "video.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin883 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 174 | 42 | 758 |
CSS | 1 | 14 | 0 | 125 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
feature.png | 112.14KB | 42.03KB | ▼ 62.52% |