10% vmplayer

Code Review | VMPlayer

WordPress plugin VMPlayer scored10%from 54 tests.

About plugin

  • Plugin page: vmplayer
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Apr 6, 2022
  • Latest release: Apr 6, 2022
  • Number of updates: 12
  • Update frequency: every 0.1 days
  • Top authors: ganddser (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,423 total downloads

Benchmarks

Plugin footprint 40% 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
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.23ms] Passed 4 tests

Server-side resources used by VMPlayer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.53 ▼1.91
Dashboard /wp-admin3.32 ▲0.0254.85 ▼0.87
Posts /wp-admin/edit.php3.38 ▲0.0250.58 ▲2.70
Add New Post /wp-admin/post-new.php5.92 ▲0.0492.25 ▼8.84
Media Library /wp-admin/upload.php3.25 ▲0.0237.96 ▲3.10

Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 13 new options
New WordPress options
nr_popoutbutton_window_width
nr_vmplayer_stream_url
nr_vmplayer_color
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
nr_popoutbutton_bgcolor
...

Browser metrics Passed 4 tests

VMPlayer: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲18614.12 ▼0.075.84 ▲3.6244.13 ▲0.10
Dashboard /wp-admin2,223 ▲354.92 ▼0.95114.61 ▼2.6156.41 ▲9.20
Posts /wp-admin/edit.php2,112 ▲202.06 ▲0.0640.92 ▲1.0751.00 ▲13.24
Add New Post /wp-admin/post-new.php1,530 ▲1623.19 ▲5.68666.64 ▼0.1163.21 ▲5.61
Media Library /wp-admin/upload.php1,408 ▲204.37 ▲0.0998.44 ▼9.3657.03 ▲8.95

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/vmplayer/include/button.php
    • > /wp-content/plugins/vmplayer/include/player.php
    • > /wp-content/plugins/vmplayer/include/shortcode.php
    • > /wp-content/plugins/vmplayer/include/dashboard.php
    • > /wp-content/plugins/vmplayer/uninstall.php
    • > /wp-content/plugins/vmplayer/vmplayer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: popout, radio streaming, popup window, shoutcast, player...

vmplayer/vmplayer.php Passed 13 tests

The main PHP script in "VMPlayer" version 1.0.1 is automatically included on every request by WordPress
106 characters long description:
VMPlayer (Vouscast Media Player) is a popout player specifically designed for Shoutcast and Icecast radio.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin371 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP78621227
JavaScript18175
CSS21153
SVG40016

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
include/assets/images/logo.png23.50KB8.57KB▼ 63.52%