68% vooplayer

Code Review | vooPlayer v4

WordPress plugin vooPlayer v4 scored68%from 54 tests.

About plugin

  • Plugin page: vooplayer
  • Plugin version: 4.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.8
  • WordPress version: 6.3.1
  • First release: May 5, 2013
  • Latest release: Nov 20, 2018
  • Number of updates: 38
  • Update frequency: every 53.3 days
  • Top authors: socratous139 (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

300+ active /33,276 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.90MB] [CPU: ▼31.22ms] Passed 4 tests

Server-side resources used by vooPlayer v4
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.04 ▼11.09
Dashboard /wp-admin3.05 ▼0.2623.62 ▼28.82
Posts /wp-admin/edit.php3.05 ▼0.3126.01 ▼20.63
Add New Post /wp-admin/post-new.php3.05 ▼2.8430.31 ▼63.65
Media Library /wp-admin/upload.php3.05 ▼0.1822.75 ▼11.78
Settings /wp-admin/admin.php?page=vooplayer_settings3.0523.32
vooPlayer /wp-admin/admin.php?page=vooplayer3.0524.70

Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for vooPlayer v4
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲20913.94 ▼0.718.27 ▲6.2441.48 ▼1.99
Dashboard /wp-admin2,258 ▲734.92 ▲0.0397.06 ▼12.3174.26 ▲31.75
Posts /wp-admin/edit.php2,140 ▲512.00 ▲0.0240.01 ▲3.3235.20 ▲1.15
Add New Post /wp-admin/post-new.php1,710 ▲19122.22 ▼0.81695.77 ▲40.9049.52 ▼7.32
Media Library /wp-admin/upload.php1,437 ▲464.24 ▼0.0097.29 ▼3.9761.98 ▲19.08
Settings /wp-admin/admin.php?page=vooplayer_settings1,0271.9233.2431.82
vooPlayer /wp-admin/admin.php?page=vooplayer1,7522.5833.9532.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 21 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vooplayer
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=vooplayer
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.

SRP 50% 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
The following issues need your attention
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/vooplayer/settings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/vooplayer/videolist.php:7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/vooplayer/showvoo.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_embed_register_handler() in wp-content/plugins/vooplayer/vooplayer.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Video Player Customization), #2 (Advanced Features), #3 (Social Sharing & Lead Capturing), #4 (Adding Overlays), #5 (Video Analytics)
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
You can take inspiration from this readme.txt

vooplayer/vooplayer.php 92% from 13 tests

"vooPlayer v4" version 4.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,212 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP57660927
CSS100246
JavaScript10039

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity26.00
▷ Minimum class complexity21.00
▷ Maximum class complexity31.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/headline.png14.90KB15.71KB0.00%
images/logo.png4.77KB3.83KB▼ 19.57%