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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▲0.37ms] Passed 4 tests
An overview of server-side resources used by mb.YTPlayer for background videos
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 43.71 ▲4.36 |
Dashboard /wp-admin | 3.44 ▲0.13 | 45.07 ▼9.85 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.25 ▲3.18 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 108.31 ▲11.96 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.70 ▲3.80 |
YTPlayer /wp-admin/admin.php?page=wpmbytplayer/mbYTPlayer.php | 3.33 | 33.06 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 14 new options
New WordPress options |
---|
mbYTPlayer_video_url |
widget_recent-posts |
mbYTPlayer_video_page |
widget_theysaidso_widget |
mbYTPlayer_init_delay |
mbYTPlayer_version |
mbYTPlayer_price |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for mb.YTPlayer for background videos
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲204 | 13.88 ▼0.42 | 6.32 ▲4.45 | 37.90 ▼2.65 |
Dashboard /wp-admin | 2,236 ▲45 | 4.88 ▼1.04 | 108.42 ▲2.41 | 38.94 ▼4.96 |
Posts /wp-admin/edit.php | 2,115 ▲29 | 2.04 ▲0.01 | 41.62 ▲5.80 | 36.56 ▲5.12 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 17.72 ▼5.60 | 654.97 ▼16.81 | 48.58 ▼5.05 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.31 ▲0.12 | 96.51 ▼1.57 | 44.38 ▲1.97 |
YTPlayer /wp-admin/admin.php?page=wpmbytplayer/mbYTPlayer.php | 1,384 | 4.81 | 119.49 | 55.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wpmbytplayer/uninstall.php+6
Undefined variable: ytppro
- Zombie WordPress options detected upon uninstall: 13 options
- mbYTPlayer_is_active
- db_upgraded
- mbYTPlayer_price
- mbYTPlayer_video_page
- widget_theysaidso_widget
- mbYTPlayer_video_url
- theysaidso_admin_options
- mbYTPlayer_remember_last_time
- _notice_dismiss
- mbYTPlayer_init_delay
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpmbytplayer/inc/mb-admin-menu.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wpmbytplayer/mbYTPlayer.php:25
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (The settings panel.), #2 (You can add a video as background or targeted to a DOM element in any page or post by inserting a shortcode (Plus version) generated via the editor button.), #3 (The shortcode editor (Plus version).)
- Tags: Please delete some tags, you are using 22 tag instead of maximum 10
wpmbytplayer/mbYTPlayer.php 85% from 13 tests
"mb.YTPlayer for background videos" version 3.3.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpmbytplayer.php" instead of "mbYTPlayer.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 153 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
Success! There were no dangerous files found in this plugin2,916 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 475 | 709 | 1,788 |
PHP | 4 | 94 | 47 | 638 |
PO File | 2 | 410 | 943 | 263 |
CSS | 2 | 40 | 1 | 199 |
SVG | 1 | 0 | 1 | 28 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.20 |
▷ 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 | 22 | |
▷ Named functions | 18 | 81.82% |
▷ Anonymous functions | 4 | 18.18% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.34MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/raster_dot.png | 0.12KB | 0.10KB | ▼ 13.11% |
css/images/raster@2x.png | 2.73KB | 0.10KB | ▼ 96.17% |
images/wm.png | 3.37KB | 1.58KB | ▼ 53.18% |
images/logo.png | 3.30KB | 1.87KB | ▼ 43.51% |
images/general-bgnd.png | 6.61KB | 3.57KB | ▼ 45.95% |