Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/player/Player.php+225
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
Server metrics [RAM: ▼0.29MB] [CPU: ▼45.91ms] Passed 4 tests
Server-side resources used by SpiderVPlayer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 11.07 ▼29.34 |
Dashboard /wp-admin | 3.72 ▲0.41 | 7.33 ▼41.82 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 8.93 ▼34.00 |
Add New Post /wp-admin/post-new.php | 3.72 ▼2.17 | 9.98 ▼78.27 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 7.96 ▼29.55 |
Playlists /wp-admin/admin.php?page=Spider_Video_Player_Playlists | 3.72 | 8.90 |
Video Player /wp-admin/admin.php?page=Spider_Video_Player | 3.72 | 9.22 |
Videos /wp-admin/admin.php?page=Spider_Video_Player_Videos | 3.72 | 9.73 |
Tags /wp-admin/admin.php?page=Tags_Spider_Video_Player | 3.72 | 7.79 |
Uninstall Video Player /wp-admin/admin.php?page=Uninstall_Spider_Video_Player | 3.72 | 9.64 |
Overview /wp-admin/admin.php?page=overview_wdsvp | 3.72 | 8.34 |
Themes /wp-admin/admin.php?page=Spider_Video_Player_Themes | 3.72 | 9.20 |
Server storage [IO: ▲4.31MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 311 new files
Database: 5 new tables, 7 new options
New tables |
---|
wp_Spider_Video_Player_theme |
wp_Spider_Video_Player_tag |
wp_Spider_Video_Player_video |
wp_Spider_Video_Player_playlist |
wp_Spider_Video_Player_player |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
wdsvp_admin_notice |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SpiderVPlayer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲222 | 14.27 ▼0.27 | 16.10 ▲13.87 | 38.90 ▼2.07 |
Dashboard /wp-admin | 2,262 ▲71 | 4.85 ▼1.05 | 103.42 ▼0.20 | 42.89 ▲1.55 |
Posts /wp-admin/edit.php | 2,162 ▲73 | 2.31 ▲0.26 | 42.45 ▲2.83 | 36.53 ▲2.37 |
Add New Post /wp-admin/post-new.php | 1,694 ▲175 | 23.25 ▼0.08 | 630.28 ▼45.55 | 36.39 ▼17.76 |
Media Library /wp-admin/upload.php | 1,460 ▲75 | 4.24 ▲0.10 | 99.66 ▼6.46 | 43.87 ▼3.29 |
Playlists /wp-admin/admin.php?page=Spider_Video_Player_Playlists | 986 | 1.73 | 27.95 | 31.14 |
Video Player /wp-admin/admin.php?page=Spider_Video_Player | 949 | 1.87 | 27.64 | 29.77 |
Videos /wp-admin/admin.php?page=Spider_Video_Player_Videos | 1,108 | 1.84 | 25.87 | 32.27 |
Tags /wp-admin/admin.php?page=Tags_Spider_Video_Player | 1,061 | 1.94 | 25.63 | 31.89 |
Uninstall Video Player /wp-admin/admin.php?page=Uninstall_Spider_Video_Player | 899 | 1.80 | 28.10 | 25.16 |
Overview /wp-admin/admin.php?page=overview_wdsvp | 1,439 | 1.75 | 26.71 | 96.83 |
Themes /wp-admin/admin.php?page=Spider_Video_Player_Themes | 1,139 | 2.53 | 32.81 | 31.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/player/Player.php+225
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
- The uninstall procedure failed, leaving 5 tables in the database
- wp_Spider_Video_Player_playlist
- wp_Spider_Video_Player_tag
- wp_Spider_Video_Player_player
- wp_Spider_Video_Player_theme
- wp_Spider_Video_Player_video
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- wdsvp_admin_notice
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Spider_Video_Player_Themes
- > Deprecated in wp-content/plugins/player/Player.php+1880
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
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
- 13× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/player/Spider_Video_Player_functions.html.php
- > /wp-content/plugins/player/window.php
- > /wp-content/plugins/player/tag_function.html.php
- > /wp-content/plugins/player/elements/theme.php
- > /wp-content/plugins/player/tag_functions.php
- > /wp-content/plugins/player/video_function.html.php
- > /wp-content/plugins/player/Spider_Video_Player_functions.php
- > /wp-content/plugins/player/Playlists_function.html.php
- > /wp-content/plugins/player/Themes_function.html.php
- > /wp-content/plugins/player/elements/playlist.php
- 59× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/player/wd/templates/display_overview_deals.php:12
- > PHP Notice
Undefined variable: wd_options in wp-content/plugins/player/wd/templates/display_overview_welcome.php on line 16
- > PHP Notice
Trying to get property 'overview_welcome_image' of non-object in wp-content/plugins/player/wd/templates/display_overview_welcome.php on line 8
- > PHP Notice
Undefined variable: user_guide in wp-content/plugins/player/wd/templates/display_overview_user_guide.php on line 14
- > PHP Notice
Undefined variable: wd_options in wp-content/plugins/player/wd/templates/display_deactivation_popup.php on line 6
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/player/wd/templates/display_deactivation_popup.php on line 6
- > PHP Notice
Undefined variable: wd_options in wp-content/plugins/player/wd/templates/display_overview.php on line 4
- > PHP Notice
Undefined variable: wd_options in wp-content/plugins/player/wd/templates/display_overview_user_guide.php on line 29
- > PHP Notice
Undefined variable: wd_options in wp-content/plugins/player/wd/templates/display_overview_welcome.php on line 8
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/player/wd/templates/display_deactivation_popup.php on line 1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Spider_Video_Player_Themes
- > Javascript (severe) in unknown
/wp-content/plugins/player/js/player_js.js?ver=6.3.1 6:43 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
No tags were found
player/Player.php 92% from 13 tests
"SpiderVPlayer" version 1.5.22's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("player.php" instead of "Player.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin41,874 lines of code in 117 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 24 | 205 | 4,494 | 23,131 |
PHP | 32 | 931 | 521 | 14,030 |
PO File | 47 | 1,033 | 1,786 | 2,680 |
CSS | 7 | 52 | 172 | 1,325 |
SVG | 4 | 0 | 4 | 586 |
Markdown | 1 | 18 | 0 | 112 |
HTML | 2 | 0 | 0 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 16.10 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 97.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.22% |
Functions | 97 | |
▷ Named functions | 97 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 8 | 61.54% |
▷ Class constants | 5 | 38.46% |
▷ Public constants | 5 | 100.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
134 PNG files occupy 1.34MB with 0.85MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/playNext.png | 3.55KB | 0.70KB | ▼ 80.35% |
images/phpThumb_generated_thumbnailpng (1).png | 0.10KB | 0.11KB | 0.00% |
images/lib.png | 3.63KB | 0.91KB | ▼ 75.07% |
images/plus_1.png | 3.20KB | 0.29KB | ▼ 90.86% |
wd/assets/img/wp_logo.png | 13.70KB | 3.95KB | ▼ 71.15% |