Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.63MB] [CPU: ▼6.07ms] Passed 4 tests
Analyzing server-side resources used by Video Player Pro
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 42.52 ▲5.54 |
Dashboard /wp-admin | 4.05 ▲0.70 | 51.47 ▼11.77 |
Posts /wp-admin/edit.php | 4.10 ▲0.74 | 47.13 ▲1.58 |
Add New Post /wp-admin/post-new.php | 6.63 ▲0.74 | 82.87 ▼18.68 |
Media Library /wp-admin/upload.php | 3.97 ▲0.74 | 39.13 ▲4.59 |
Server storage [IO: ▲7.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 81 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_vpp_video_meta |
wp_vpp_video |
wp_vpp_video_tag |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
vpp_config |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Video Player Pro
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲173 | 13.62 ▼0.68 | 8.95 ▲7.07 | 41.12 ▼0.20 |
Dashboard /wp-admin | 2,219 ▲28 | 5.83 ▼0.03 | 98.97 ▼7.91 | 37.76 ▼7.60 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 1.97 ▼0.09 | 35.45 ▼1.21 | 31.89 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.17 ▼0.08 | 647.41 ▲14.63 | 73.65 ▲7.67 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.28 ▲0.08 | 93.31 ▼5.43 | 41.64 ▼4.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_vpp_video
- wp_vpp_video_meta
- wp_vpp_video_tag
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- vpp_config
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 20× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/video-player-pro/include/VPP_STUDIO.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-player-pro/include/studio/ajax/VPP_AJAX_VIDEO_SAVE.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-player-pro/include/studio/ajax/VPP_AJAX_PAGE_PRO_VERSION.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/video-player-pro/include/player/VPP_SKIN_MANAGEMENT.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-player-pro/include/studio/ajax/VPP_AJAX_VIDEO_SEARCH.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-player-pro/include/studio/page/VPP_PAGE_PRO_VERSION.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-player-pro/include/studio/ajax/VPP_AJAX_POPUP_CREATE.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-player-pro/include/player/ajax/VPP_AJAX_AUTO_VIDEO_CHANGE.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-player-pro/include/studio/ajax/VPP_AJAX_POPUP.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-player-pro/include/studio/page/VPP_PAGE_VIDEO_EDIT.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
9 plugin tags: player, youtube, html5 player, video, skin youtube...
video-player-pro/main.php 77% from 13 tests
The principal PHP file in "Video Player Pro" v. 1.1.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("video-player-pro.php" instead of "main.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 311 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin16,723 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 2,098 | 162 | 8,744 |
PHP | 36 | 1,283 | 1,312 | 4,364 |
JavaScript | 6 | 735 | 363 | 1,920 |
SVG | 1 | 0 | 0 | 1,280 |
PO File | 1 | 180 | 238 | 415 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 9.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 165 | |
▷ Static methods | 44 | 26.67% |
▷ Public methods | 152 | 92.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 7.88% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.86MB with 0.51MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/thor-version.png | 836.96KB | 251.50KB | ▼ 69.95% |
assets/img/Plugin-Logo.png | 46.94KB | 24.57KB | ▼ 47.66% |