Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/wp-video-html5-video-player/video-js.php+231
array_key_exists() expects parameter 2 to be array, bool given
Server metrics [RAM: ▼0.08MB] [CPU: ▼17.22ms] Passed 4 tests
Analyzing server-side resources used by HTML5 Video Player for Wordpress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.75 ▼0.29 |
Dashboard /wp-admin | 3.28 ▼0.02 | 35.20 ▼17.22 |
Posts /wp-admin/edit.php | 3.34 ▼0.01 | 37.97 ▼16.49 |
Add New Post /wp-admin/post-new.php | 5.53 ▼0.36 | 74.27 ▼31.86 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 32.07 ▼3.30 |
Video.js Settings /wp-admin/options-general.php?page=videojs-settings | 3.26 | 32.09 |
Server storage [IO: ▲1.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
videojs_options |
can_compress_scripts |
videojs_db_version |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HTML5 Video Player for Wordpress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲95 | 14.81 ▲0.22 | 2.53 ▲0.72 | 43.70 ▲1.74 |
Dashboard /wp-admin | 2,228 ▲28 | 4.83 ▼1.06 | 114.52 ▲9.73 | 43.52 ▼4.59 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.99 ▼0.00 | 37.66 ▲1.99 | 33.95 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,367 ▼187 | 17.10 ▼1.35 | 574.41 ▼61.72 | 47.69 ▼4.12 |
Media Library /wp-admin/upload.php | 1,401 ▲7 | 4.25 ▲0.05 | 99.19 ▼11.15 | 41.55 ▼8.14 |
Video.js Settings /wp-admin/options-general.php?page=videojs-settings | 1,511 | 2.60 | 53.78 | 35.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- videojs_options
- videojs_db_version
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=videojs-settings
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
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 fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-video-html5-video-player/video-js.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-video-html5-video-player/admin.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
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
These attributes need your attention:
- Tags: You are using too many tags: 19 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (Settings and options), #2 (Video Pro - Skin Builder)
wp-video-html5-video-player/video-js.php 85% from 13 tests
The primary PHP file in "HTML5 Video Player for Wordpress" version 4.5.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-video-html5-video-player.php" instead of "video-js.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 289 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin939 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 119 | 42 | 442 |
JavaScript | 4 | 22 | 21 | 165 |
HTML | 3 | 68 | 3 | 107 |
SVG | 1 | 0 | 0 | 102 |
Markdown | 1 | 66 | 0 | 97 |
CSS | 2 | 1 | 1 | 26 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 1 | |
▷ Global constants | 1 | 100.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
3 PNG files occupy 0.91MB with 0.43MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
video-js.png | 0.69KB | 0.70KB | 0.00% |
screenshot-2.png | 656.19KB | 186.87KB | ▼ 71.52% |
screenshot-1.png | 275.47KB | 83.25KB | ▼ 69.78% |