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
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-video-posts/classes/wpvp-widgets-class.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; WPVideosForPostsWidget has a deprecated constructor
Server metrics [RAM: ▼1.69MB] [CPU: ▼56.48ms] Passed 4 tests
Server-side resources used by WP Video Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.15 | 5.72 ▼37.83 |
Dashboard /wp-admin | 2.33 ▼1.01 | 8.39 ▼54.75 |
Posts /wp-admin/edit.php | 2.33 ▼1.02 | 8.75 ▼41.75 |
Add New Post /wp-admin/post-new.php | 2.33 ▼3.55 | 7.23 ▼91.59 |
Media Library /wp-admin/upload.php | 2.33 ▼0.90 | 8.08 ▼22.32 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=videos | 2.33 | 6.91 |
Add New Video /wp-admin/post-new.php?post_type=videos | 2.33 | 7.41 |
Videos /wp-admin/edit.php?post_type=videos | 2.33 | 8.00 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=videos | 2.33 | 6.42 |
WP Video Posts /wp-admin/options-general.php?page=wp-video-posts | 2.33 | 6.90 |
Server storage [IO: ▲4.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
category_children |
widget_recent-comments |
widget_wpvideosforpostswidget |
Browser metrics Passed 4 tests
WP Video Posts: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲188 | 14.03 ▼0.36 | 8.76 ▲6.94 | 43.47 ▼3.94 |
Dashboard /wp-admin | 2,232 ▲44 | 4.96 ▲0.08 | 105.14 ▼13.04 | 79.01 ▲33.91 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.05 ▼0.01 | 35.09 ▲0.42 | 36.59 ▲0.87 |
Add New Post /wp-admin/post-new.php | 1,546 ▲4 | 23.28 ▲0.19 | 687.64 ▼11.00 | 65.66 ▲10.56 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.16 ▼0.09 | 98.12 ▼5.08 | 73.69 ▲27.72 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=videos | 1,481 | 2.14 | 25.78 | 33.89 |
Add New Video /wp-admin/post-new.php?post_type=videos | 2,769 | 7.80 | 172.24 | 137.07 |
Videos /wp-admin/edit.php?post_type=videos | 1,179 | 1.95 | 34.17 | 28.00 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=videos | 1,345 | 2.14 | 25.76 | 28.48 |
WP Video Posts /wp-admin/options-general.php?page=wp-video-posts | 1,196 | 2.20 | 25.91 | 32.12 |
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
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-video-posts/classes/wpvp-widgets-class.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; WPVideosForPostsWidget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_wpvideosforpostswidget
- category_children
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-video-posts
- > Deprecated in wp-content/plugins/wp-video-posts/classes/wpvp-widgets-class.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; WPVideosForPostsWidget has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-video-posts
- > Deprecated in wp-content/plugins/wp-video-posts/wpvp.php+43
Function create_function() is deprecated
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-video-posts
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in WPVideosForPostsWidget is deprecated since version 4.3.0! Use __construct() instead.
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-video-posts
- > Notice in wp-content/plugins/wp-video-posts/classes/wpvp-helper-class.php+39
Undefined variable: return
- > GET request to /wp-admin/options-general.php?page=wp-video-posts
- > Notice in wp-content/plugins/wp-video-posts/wpvp.php+127
Undefined index: tab
- > GET request to /wp-admin/options-general.php?page=wp-video-posts
- > Notice in wp-content/plugins/wp-video-posts/options/wpvp-options.php+8
Undefined index: wpvp_hidden
- > GET request to /wp-admin/options-general.php?page=wp-video-posts
- > Notice in wp-content/plugins/wp-video-posts/options/wpvp-options.php+202
Undefined variable: types
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-video-posts/options/wpvp-shortcodes-options.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-video-posts/options/wpvp-editor-options.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-video-posts/classes/wpvp-widgets-class.php:3
- > PHP Fatal error
Uncaught Error: Class 'WPVP_Helper' not found in wp-content/plugins/wp-video-posts/options/wpvp-uploader-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-video-posts/templates/wpvp-frontend-uploader.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/wp-video-posts/templates/wpvp-frontend-editor.php:3
- > PHP Notice
Undefined index: wpvp_editor_hidden in wp-content/plugins/wp-video-posts/options/wpvp-editor-options.php on line 2
- > PHP Notice
Undefined index: wpvp_hidden in wp-content/plugins/wp-video-posts/options/wpvp-shortcodes-options.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WPVP_Helper' not found in wp-content/plugins/wp-video-posts/options/wpvp-options.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Video Posts page displaying your video posts.), #2 (WP Video Posts, edit post page.), #3 (WP Video Posts Options page.), #4 (WP Video Posts Widget Options.), #5 (WP Video Posts Widget in action.), #6 (WP Video Posts Front End Uploader.)
wp-video-posts/wpvp.php 85% from 13 tests
This is the main PHP file of "WP Video Posts" version 3.5.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-video-posts.php" instead of "wpvp.php")
- Description: Keep the plugin description shorter than 140 characters (currently 207 characters long)
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
Everything looks great! No dangerous files found in this plugin9,055 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 1,376 | 3,320 | 5,156 |
PHP | 10 | 32 | 299 | 2,167 |
CSS | 4 | 27 | 230 | 949 |
LESS | 1 | 144 | 278 | 755 |
SVG | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 76.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 5.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 8 | 12.90% |
▷ Public methods | 56 | 90.32% |
▷ Protected methods | 4 | 6.45% |
▷ Private methods | 2 | 3.23% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.57MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 86.15KB | 40.23KB | ▼ 53.30% |
inc/video-js/video-js.png | 4.46KB | 3.82KB | ▼ 14.26% |
banner-772x250.png | 87.91KB | 56.67KB | ▼ 35.54% |
screenshot-4.png | 17.89KB | 8.87KB | ▼ 50.41% |
screenshot-3.png | 43.83KB | 17.68KB | ▼ 59.66% |