Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼0.96ms] Passed 4 tests
Analyzing server-side resources used by Voltax Video Player
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 44.56 ▼4.08 |
Dashboard /wp-admin | 3.56 ▲0.26 | 51.89 ▼2.19 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 55.25 ▲6.70 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 90.48 ▲0.66 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 41.11 ▲1.75 |
Voltax Video /wp-admin/options-general.php?page=mm-video | 3.39 | 33.37 |
Server storage [IO: ▲1.98MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 101 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
mm_plugin_version |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Voltax Video Player
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.32 ▼0.05 | 1.81 ▲0.15 | 39.41 ▼5.49 |
Dashboard /wp-admin | 2,214 ▲37 | 5.63 ▼0.10 | 88.21 ▼2.20 | 39.34 ▼2.82 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.02 ▲0.01 | 38.49 ▼2.61 | 38.64 ▲2.30 |
Add New Post /wp-admin/post-new.php | 1,551 ▲22 | 23.71 ▲0.47 | 650.22 ▲1.89 | 34.52 ▼25.84 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.21 ▲0.05 | 97.23 ▼13.35 | 42.41 ▼1.37 |
Voltax Video /wp-admin/options-general.php?page=mm-video | 921 | 2.16 | 23.08 | 30.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'AMP_Base_Sanitizer' not found in wp-content/plugins/voltax-video-player/src/MinuteMedia/Ovp/AmpSanitizer.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/voltax-video-player/views/partials-admin-form-settings.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: vms, voltax, minute media, videos, video
voltax-video-player/mm-video.php 92% from 13 tests
The main PHP file in "Voltax Video Player" ver. 1.6.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("voltax-video-player.php" instead of "mm-video.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,000 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
TypeScript | 40 | 255 | 24 | 1,902 |
PHP | 12 | 245 | 544 | 1,306 |
Sass | 13 | 74 | 1 | 539 |
JSON | 4 | 0 | 0 | 128 |
JavaScript | 4 | 5 | 2 | 51 |
SVG | 4 | 0 | 0 | 48 |
HTML | 2 | 3 | 19 | 18 |
CSS | 2 | 1 | 1 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 19.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 25 | 32.47% |
▷ Public methods | 54 | 70.13% |
▷ Protected methods | 19 | 24.68% |
▷ Private methods | 4 | 5.19% |
Functions | 25 | |
▷ Named functions | 1 | 4.00% |
▷ Anonymous functions | 24 | 96.00% |
Constants | 37 | |
▷ Global constants | 2 | 5.41% |
▷ Class constants | 35 | 94.59% |
▷ Public constants | 35 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/images/playlist-icon.png | 3.72KB | 1.51KB | ▼ 59.53% |
public/logo512.png | 9.44KB | 10.35KB | 0.00% |
src/images/icon.png | 4.78KB | 1.57KB | ▼ 67.18% |
public/logo192.png | 5.22KB | 5.57KB | 0.00% |
build/logo192.png | 5.22KB | 5.57KB | 0.00% |