10% player

Code Review | SpiderVPlayer

WordPress plugin SpiderVPlayer scored 10% from 54 tests.

About plugin

  • Plugin page: player
  • Plugin version: 1.5.22
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.0
  • WordPress version: 6.3.1
  • First release: Aug 21, 2012
  • Latest release: Dec 16, 2019
  • Number of updates: 197
  • Update frequency: every 13.6 days
  • Top authors: webdorado (100%)

Code review

54 tests

User reviews

46 reviews

Install metrics

3,000+ active / 400,782 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2411.07 ▼29.34
Dashboard /wp-admin3.72 ▲0.417.33 ▼41.82
Posts /wp-admin/edit.php3.72 ▲0.368.93 ▼34.00
Add New Post /wp-admin/post-new.php3.72 ▼2.179.98 ▼78.27
Media Library /wp-admin/upload.php3.72 ▲0.497.96 ▼29.55
Playlists /wp-admin/admin.php?page=Spider_Video_Player_Playlists3.728.90
Video Player /wp-admin/admin.php?page=Spider_Video_Player3.729.22
Videos /wp-admin/admin.php?page=Spider_Video_Player_Videos3.729.73
Tags /wp-admin/admin.php?page=Tags_Spider_Video_Player3.727.79
Uninstall Video Player /wp-admin/admin.php?page=Uninstall_Spider_Video_Player3.729.64
Overview /wp-admin/admin.php?page=overview_wdsvp3.728.34
Themes /wp-admin/admin.php?page=Spider_Video_Player_Themes3.729.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,979 ▲22214.27 ▼0.2716.10 ▲13.8738.90 ▼2.07
Dashboard /wp-admin2,262 ▲714.85 ▼1.05103.42 ▼0.2042.89 ▲1.55
Posts /wp-admin/edit.php2,162 ▲732.31 ▲0.2642.45 ▲2.8336.53 ▲2.37
Add New Post /wp-admin/post-new.php1,694 ▲17523.25 ▼0.08630.28 ▼45.5536.39 ▼17.76
Media Library /wp-admin/upload.php1,460 ▲754.24 ▲0.1099.66 ▼6.4643.87 ▼3.29
Playlists /wp-admin/admin.php?page=Spider_Video_Player_Playlists9861.7327.9531.14
Video Player /wp-admin/admin.php?page=Spider_Video_Player9491.8727.6429.77
Videos /wp-admin/admin.php?page=Spider_Video_Player_Videos1,1081.8425.8732.27
Tags /wp-admin/admin.php?page=Tags_Spider_Video_Player1,0611.9425.6331.89
Uninstall Video Player /wp-admin/admin.php?page=Uninstall_Spider_Video_Player8991.8028.1025.16
Overview /wp-admin/admin.php?page=overview_wdsvp1,4391.7526.7196.83
Themes /wp-admin/admin.php?page=Spider_Video_Player_Themes1,1392.5332.8131.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

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript242054,49423,131
PHP3293152114,030
PO File471,0331,7862,680
CSS7521721,325
SVG404586
Markdown1180112
HTML20010

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 code0.26
Average class complexity16.10
▷ Minimum class complexity5.00
▷ Maximum class complexity46.00
Average method complexity4.36
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods45
▷ Static methods00.00%
▷ Public methods4497.78%
▷ Protected methods00.00%
▷ Private methods12.22%
Functions97
▷ Named functions97100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants861.54%
▷ Class constants538.46%
▷ Public constants5100.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
FileSize - originalSize - compressedSavings
images/playNext.png3.55KB0.70KB▼ 80.35%
images/phpThumb_generated_thumbnailpng (1).png0.10KB0.11KB0.00%
images/lib.png3.63KB0.91KB▼ 75.07%
images/plus_1.png3.20KB0.29KB▼ 90.86%
wd/assets/img/wp_logo.png13.70KB3.95KB▼ 71.15%