Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼2.48ms] Passed 4 tests
This is a short check of server-side resources used by Multi Video Box
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 45.67 ▲4.83 |
Dashboard /wp-admin | 3.74 ▲0.40 | 48.47 ▼16.36 |
Posts /wp-admin/edit.php | 3.79 ▲0.44 | 52.50 ▲6.19 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 97.30 ▼2.70 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 37.89 ▲4.32 |
Instructions /wp-admin/admin.php?page=mvob | 3.57 | 35.54 |
Video Groups /wp-admin/admin.php?page=mvob_groups | 3.58 | 39.44 |
Videos /wp-admin/admin.php?page=mvob_videos | 3.58 | 33.21 |
Settings /wp-admin/admin.php?page=mvob_settings | 3.57 | 32.59 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: 3 new tables, 9 new options
New tables |
---|
wp_mvob_groups |
wp_mvob_videos_to_groups |
wp_mvob_videos |
New WordPress options |
---|
widget_recent-comments |
mvob_options |
ppd_mvob_options |
theysaidso_admin_options |
recovery_mode_email_last_sent |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Multi Video Box
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,061 ▲315 | 14.08 ▼0.21 | 11.61 ▲9.84 | 37.99 ▼7.99 |
Dashboard /wp-admin | 2,248 ▲56 | 4.89 ▼0.08 | 107.52 ▲1.22 | 43.21 ▲2.34 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.03 ▲0.01 | 39.56 ▲5.61 | 35.50 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,549 ▲11 | 17.70 ▼5.71 | 696.02 ▼4.01 | 58.17 ▼0.24 |
Media Library /wp-admin/upload.php | 1,433 ▲42 | 4.30 ▲0.05 | 100.15 ▼1.57 | 43.39 ▼2.26 |
Instructions /wp-admin/admin.php?page=mvob | 907 | 2.19 | 22.54 | 28.52 |
Video Groups /wp-admin/admin.php?page=mvob_groups | 909 | 2.04 | 23.49 | 35.78 |
Videos /wp-admin/admin.php?page=mvob_videos | 729 | 1.53 | 6.52 | 15.54 |
Settings /wp-admin/admin.php?page=mvob_settings | 864 | 2.05 | 24.42 | 23.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- recovery_mode_email_last_sent
- ppd_mvob_options
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=mvob_videos
- > Error in wp-content/plugins/multi-video-box/classes/class.video.php+71
Uncaught ArgumentCountError: Too few arguments to function mvob_video::get_video_ids(), 0 passed in wp-content/plugins/multi-video-box/views/video/display_videos.php on line 7 and exactly 1 expected in wp-content/plugins/multi-video-box/classes/class.video.php:71
Stack trace:
#0 wp-content/plugins/multi-video-box/views/video/display_videos.php(7): mvob_video::get_video_ids()
#1 wp-content/plugins/multi-video-box/functions/functions_menu.php(31): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): mvob_menu_videos()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/multi-video-box/views/common/instructions_shortcode.php
- 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined index: mvob_hidden_delete in wp-content/plugins/multi-video-box/views/video/delete_video.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'mvob_group_form' not found in wp-content/plugins/multi-video-box/views/group/add_group.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/multi-video-box/views/video/get_shortcode.php:2
- > PHP Fatal error
Uncaught Error: Class 'mvob_video_form' not found in wp-content/plugins/multi-video-box/views/video/add_video_to_groups.php:35
- > PHP Notice
Undefined index: video_id in wp-content/plugins/multi-video-box/views/video/delete_video.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function mvob_output_settings_form() in wp-content/plugins/multi-video-box/views/common/mvob_settings.php:59
- > PHP Fatal error
Uncaught Error: Class 'mvob_group_form' not found in wp-content/plugins/multi-video-box/views/group/video_order.php:2
- > PHP Fatal error
Uncaught Error: Class 'mvob_group' not found in wp-content/plugins/multi-video-box/views/group/display_groups.php:7
- > PHP Fatal error
Uncaught Error: Class 'mvob_video' not found in wp-content/plugins/multi-video-box/classes/class.video_form.php:6
- > PHP Fatal error
Uncaught Error: Class 'mvob_group' not found in wp-content/plugins/multi-video-box/classes/class.group_form.php:6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (http://www.nuttymango.com/wp-content/uploads/2013/05/mvob-admin-1.png), #2 (http://www.nuttymango.com/wp-content/uploads/2013/05/mvob-admin-2.png), #3 (http://www.nuttymango.com/wp-content/uploads/2013/05/mvob-top-tab.png), #4 (http://www.nuttymango.com/wp-content/uploads/2013/05/mvob-left-tab.png)
multi-video-box/multi-video-box.php 92% from 13 tests
The principal PHP file in "Multi Video Box" v. 1.5.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 174 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
Good job! No executable or dangerous file extensions detected3,371 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 612 | 1,022 | 2,809 |
JavaScript | 5 | 73 | 79 | 303 |
CSS | 3 | 6 | 7 | 259 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 21.62 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 8 | 6.40% |
▷ Public methods | 58 | 46.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 67 | 53.60% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/arrow.png | 1.31KB | 1.16KB | ▼ 11.37% |
images/down-arrow.png | 4.64KB | 2.46KB | ▼ 47.10% |
images/prev-next-arrow.png | 0.30KB | 0.31KB | 0.00% |
images/left-arrow.png | 4.51KB | 2.47KB | ▼ 45.32% |
images/right-arrow.png | 4.66KB | 2.44KB | ▼ 47.64% |