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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.53 ▼1.91 |
Dashboard /wp-admin | 3.32 ▲0.02 | 54.85 ▼0.87 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.58 ▲2.70 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 92.25 ▼8.84 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲186 | 14.12 ▼0.07 | 5.84 ▲3.62 | 44.13 ▲0.10 |
Dashboard /wp-admin | 2,223 ▲35 | 4.92 ▼0.95 | 114.61 ▼2.61 | 56.41 ▲9.20 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.06 ▲0.06 | 40.92 ▲1.07 | 51.00 ▲13.24 |
Add New Post /wp-admin/post-new.php | 1,530 ▲16 | 23.19 ▲5.68 | 666.64 ▼0.11 | 63.21 ▲5.61 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.37 ▲0.09 | 98.44 ▼9.36 | 57.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 86 | 21 | 227 |
JavaScript | 1 | 8 | 1 | 75 |
CSS | 2 | 1 | 1 | 53 |
SVG | 4 | 0 | 0 | 16 |
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 code | 0.14 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/assets/images/logo.png | 23.50KB | 8.57KB | ▼ 63.52% |