Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.59MB] [CPU: ▲3.96ms] Passed 4 tests
Analyzing server-side resources used by WP Videos
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.53 | 47.08 ▲3.06 |
Dashboard /wp-admin | 3.93 ▲0.62 | 62.03 ▲8.89 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 58.77 ▲8.10 |
Add New Post /wp-admin/post-new.php | 6.70 ▲0.82 | 100.23 ▼4.23 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 51.62 ▲17.07 |
Shortcodes/Blocks /wp-admin/admin.php?page=wpvs-shortcodes-blocks | 3.76 | 45.24 |
Directors /wp-admin/edit-tags.php?taxonomy=rvs_directors&post_type=rvs_video | 3.78 | 45.75 |
Actors /wp-admin/edit-tags.php?taxonomy=rvs_actors&post_type=rvs_video | 3.78 | 46.28 |
Activation /wp-admin/admin.php?page=rvs-activation | 3.76 | 47.11 |
Video Settings /wp-admin/admin.php?page=wpvs-video-settings | 3.86 | 47.17 |
Add New /wp-admin/post-new.php?post_type=rvs_video | 6.70 | 104.68 |
All Videos /wp-admin/edit.php?post_type=rvs_video | 3.90 | 54.03 |
Video Tags /wp-admin/edit-tags.php?taxonomy=rvs_video_tags&post_type=rvs_video | 3.78 | 48.45 |
Subscriptions /wp-admin/admin.php?page=rvs-membership-add-on | 3.76 | 44.57 |
Genres / Categories /wp-admin/edit-tags.php?taxonomy=rvs_video_category&post_type=rvs_video | 3.78 | 45.21 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_wp_videos_category_list_widget |
wpv_vimeosync_current_version |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_wp_videos_list_widget |
Browser metrics Passed 4 tests
WP Videos: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,001 ▲240 | 13.47 ▼1.12 | 9.40 ▲7.26 | 40.78 ▼7.73 |
Dashboard /wp-admin | 2,304 ▲124 | 5.69 ▲0.15 | 90.71 ▼8.48 | 38.95 ▼4.31 |
Posts /wp-admin/edit.php | 2,206 ▲103 | 2.03 ▲0.03 | 37.62 ▲0.33 | 34.29 ▼4.06 |
Add New Post /wp-admin/post-new.php | 6,297 ▲4,771 | 18.89 ▼4.12 | 928.11 ▲233.54 | 36.60 ▼28.74 |
Media Library /wp-admin/upload.php | 1,509 ▲109 | 4.24 ▼0.02 | 98.05 ▼9.62 | 42.89 ▼4.01 |
Shortcodes/Blocks /wp-admin/admin.php?page=wpvs-shortcodes-blocks | 1,083 | 2.03 | 25.09 | 31.42 |
Directors /wp-admin/edit-tags.php?taxonomy=rvs_directors&post_type=rvs_video | 1,375 | 2.16 | 29.25 | 29.94 |
Actors /wp-admin/edit-tags.php?taxonomy=rvs_actors&post_type=rvs_video | 1,369 | 2.16 | 29.50 | 30.09 |
Activation /wp-admin/admin.php?page=rvs-activation | 978 | 2.03 | 24.73 | 29.55 |
Video Settings /wp-admin/admin.php?page=wpvs-video-settings | 5,364 | 2.16 | 34.34 | 47.49 |
Add New /wp-admin/post-new.php?post_type=rvs_video | 6,871 | 22.01 | 918.11 | 42.27 |
All Videos /wp-admin/edit.php?post_type=rvs_video | 1,234 | 1.95 | 33.94 | 29.53 |
Video Tags /wp-admin/edit-tags.php?taxonomy=rvs_video_tags&post_type=rvs_video | 1,352 | 2.27 | 28.96 | 30.78 |
Subscriptions /wp-admin/admin.php?page=rvs-membership-add-on | 901 | 2.06 | 24.39 | 27.89 |
Genres / Categories /wp-admin/edit-tags.php?taxonomy=rvs_video_category&post_type=rvs_video | 1,380 | 2.19 | 28.96 | 30.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_wp_videos_list_widget
- widget_theysaidso_widget
- widget_recent-posts
- widget_wp_videos_category_list_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/video-sync-for-vimeo/includes/admin/wpvs-dashicons.php
- 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/video-sync-for-vimeo/includes/wpvs-functions.php:9
- > PHP Notice
Undefined index: page in wp-content/plugins/video-sync-for-vimeo/includes/admin/wpv-admin-menu.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-sync-for-vimeo/includes/admin/activation-manager.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/video-sync-for-vimeo/vimeo-sync.php:33
- > PHP Notice
Undefined index: page in wp-content/plugins/video-sync-for-vimeo/includes/admin/wpv-admin-menu.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-sync-for-vimeo/includes/wpvs-rest-api-functions.php:215
- > PHP Notice
Undefined index: page in wp-content/plugins/video-sync-for-vimeo/includes/admin/wpv-admin-menu.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-sync-for-vimeo/includes/rvs-post-options.php:2
- > PHP Notice
Undefined index: page in wp-content/plugins/video-sync-for-vimeo/includes/admin/wpv-admin-menu.php on line 1
- > PHP Notice
Undefined index: page in wp-content/plugins/video-sync-for-vimeo/includes/admin/wpv-admin-menu.php on line 1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=rvs_video
- > Network (severe)
wp-content/plugins/video-sync-for-vimeo/css/responsive-video.css?ver=3.0.8 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: videos, video post type, wp videos, video, youtube...
video-sync-for-vimeo/vimeo-sync.php 77% from 13 tests
The principal PHP file in "WP Videos" v. 3.0.8 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("video-sync-for-vimeo.php" instead of "vimeo-sync.php")
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin5,399 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 326 | 49 | 3,601 |
CSS | 7 | 232 | 9 | 1,121 |
JavaScript | 11 | 68 | 2 | 677 |
PHP code Passed 2 tests
This is a short overview 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.39 |
Average class complexity | 19.90 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 56 | 91.80% |
▷ Protected methods | 2 | 3.28% |
▷ Private methods | 3 | 4.92% |
Functions | 54 | |
▷ Named functions | 45 | 83.33% |
▷ Anonymous functions | 9 | 16.67% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/missing-image.png | 4.42KB | 2.29KB | ▼ 48.21% |