Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.67MB] [CPU: ▼158.61ms] Passed 4 tests
An overview of server-side resources used by VideoEngage
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.87 | 36.71 ▲1.39 |
Dashboard /wp-admin | 3.77 ▲0.71 | 32.71 ▼32.04 |
Posts /wp-admin/edit.php | 3.83 ▲0.72 | 44.56 ▼1.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.46 | 86.56 ▼598.75 |
Media Library /wp-admin/upload.php | 3.79 ▲0.79 | 34.50 ▼2.26 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=branding | 3.77 | 29.51 |
Add New /wp-admin/post-new.php?post_type=videnpro_ads | 3.86 | 42.40 |
All Items /wp-admin/edit.php?post_type=branding | 3.81 | 38.20 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=videnpro_ads | 3.77 | 34.15 |
All Items /wp-admin/edit.php?post_type=videnpro_ads | 3.81 | 32.56 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=videnpro_ads | 3.77 | 32.31 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=branding | 3.77 | 33.64 |
Add New /wp-admin/post-new.php?post_type=branding | 3.86 | 45.06 |
Server storage [IO: ▲8.77MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 129 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_videnpro_widget |
category_children |
Browser metrics Passed 4 tests
An overview of browser requirements for VideoEngage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,266 ▲670 | 19.83 ▲4.10 | 24.59 ▲9.13 | 59.51 ▲6.79 |
Dashboard /wp-admin | 3,360 ▲427 | 8.85 ▲2.83 | 198.27 ▲28.55 | 124.57 ▲13.50 |
Posts /wp-admin/edit.php | 3,167 ▲428 | 5.58 ▲2.86 | 121.36 ▲55.99 | 89.45 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,774 ▲245 | 23.69 ▲9.53 | 280.25 ▼37.88 | 109.84 ▼2.43 |
Media Library /wp-admin/upload.php | 1,939 ▲206 | 6.41 ▲1.39 | 150.65 ▼18.39 | 118.38 ▼3.67 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=branding | 2,255 | 5.15 | 102.77 | 85.08 |
Add New /wp-admin/post-new.php?post_type=videnpro_ads | 2,433 | 6.13 | 129.42 | 90.02 |
All Items /wp-admin/edit.php?post_type=branding | 1,891 | 5.23 | 109.09 | 81.49 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=videnpro_ads | 2,342 | 5.18 | 105.22 | 88.18 |
All Items /wp-admin/edit.php?post_type=videnpro_ads | 1,879 | 5.18 | 108.68 | 88.82 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=videnpro_ads | 2,258 | 5.18 | 103.64 | 90.00 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=branding | 2,360 | 5.06 | 105.18 | 97.93 |
Add New /wp-admin/post-new.php?post_type=branding | 12,673 | 16.74 | 614.38 | 175.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 2 options
- widget_videnpro_widget
- category_children
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=branding
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, class 'Videnpro_Admin' does not have a method 'enqueue_styles'
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=branding
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, class 'Videnpro_Admin' does not have a method 'enqueue_scripts'
- > GET request to /wp-admin/post-new.php?post_type=branding
- > Notice in wp-content/plugins/videoengage/includes/class-videnpro-meta-box.php+598
Uninitialized string offset: 1
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=branding
- > Warning in wp-content/plugins/videoengage/includes/class-videnpro-meta-box.php+717
A non-numeric value encountered
- > GET request to /wp-admin/post-new.php?post_type=branding
- > Notice in wp-content/plugins/videoengage/includes/class-videnpro-meta-box.php+1458
Undefined variable: check_video_secure
- > GET request to /wp-admin/post-new.php?post_type=branding
- > Notice in wp-content/plugins/videoengage/includes/class-videnpro-meta-box.php+2312
Undefined variable: cta_effect_slide
- > GET request to /wp-admin/post-new.php?post_type=branding
- > Notice in wp-content/plugins/videoengage/includes/class-videnpro-meta-box.php+2327
Undefined variable: cta_effect_puff
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/videoengage/admin/partials/videnpro-admin-display.php
- > /wp-content/plugins/videoengage/public/partials/videnpro-public-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/videoengage/includes/class-videnpro-shortcodes.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/videoengage/includes/class-videnpro-widget.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=branding
- > Javascript (severe) in unknown
/wp-content/plugins/videoengage/admin/js/bootstrap.min.js?ver=5.8.1 5:215 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=category&post_type=branding
- > Javascript (severe) in unknown
https://s.ytimg.com/yts/jsbin/www-widgetapi-vfldTtH0_/www-widgetapi.js 35:0 Uncaught ReferenceError: YTConfig is not defined
- > GET request to /wp-admin/post-new.php?post_type=branding
- > Network (severe)
https://player.vimeo.com/video/?api=1&player_id=video&title=false&byline=false&portrait=false - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=branding
- > Network (severe)
wp-content/plugins/videoengage/admin/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=branding
- > Network (severe)
wp-content/plugins/videoengage/admin/css/images/ui-bg_glass_100_f6f6f6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=branding
- > Network (severe)
wp-content/plugins/videoengage/admin/css/images/ui-icons_222222_256x240.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=branding
- > Javascript (severe) in unknown
https://player.vimeo.com/api/player.js?ver=5.8.1 1:10336 Uncaught Error: The embed code for this video is not valid.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots need descriptions #1, #2, #3 in videoengage/assets to your readme.txt
videoengage/videoengage.php 92% from 13 tests
The principal PHP file in "VideoEngage" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin16,355 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 25 | 1,262 | 1,690 | 4,268 |
PHP | 21 | 916 | 867 | 4,241 |
CSS | 12 | 210 | 119 | 3,425 |
Sass | 14 | 34 | 34 | 1,656 |
LESS | 14 | 34 | 44 | 1,646 |
SVG | 1 | 0 | 0 | 685 |
PO File | 1 | 174 | 216 | 434 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 110)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 171.00 |
Average method complexity | 6.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 2 | 4.35% |
▷ Public methods | 41 | 89.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.87% |
Functions | 20 | |
▷ Named functions | 19 | 95.00% |
▷ Anonymous functions | 1 | 5.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
25 PNG files occupy 6.25MB with 3.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/mockups/icons/_wood1.png | 2,305.06KB | 1,635.31KB | ▼ 29.06% |
admin/img/mockups/icons/_samsungb.png | 287.76KB | 203.81KB | ▼ 29.18% |
admin/img/mockups/icons/_iwatchg.png | 147.69KB | 73.94KB | ▼ 49.94% |
admin/img/mockups/icons/_borderblue1.png | 27.64KB | 2.48KB | ▼ 91.03% |
admin/img/mockups/icons/_mbgold.png | 119.60KB | 34.40KB | ▼ 71.24% |