Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.90MB] [CPU: ▲10.47ms] Passed 4 tests
Server-side resources used by The Ultimate Video Player For WordPress - by Presto Player
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.36 ▲1.89 | 54.59 ▲14.79 |
Dashboard /wp-admin | 5.24 ▲1.93 | 60.50 ▲10.35 |
Posts /wp-admin/edit.php | 5.29 ▲1.93 | 62.43 ▲15.07 |
Add New Post /wp-admin/post-new.php | 8.23 ▲2.34 | 99.00 ▲1.66 |
Media Library /wp-admin/upload.php | 5.09 ▲1.86 | 49.79 ▲16.32 |
Media Hub /wp-admin/edit.php?post_type=pp_video_block | 5.14 | 53.91 |
Settings /wp-admin/edit.php?post_type=pp_video_block&page=presto-player-settings | 5.12 | 49.31 |
Analytics Pro /wp-admin/edit.php?post_type=pp_video_block&page=presto-analytics | 5.11 | 47.79 |
Server storage [IO: ▲6.72MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 1,260 new files
Database: 6 new tables, 14 new options
New tables |
---|
wp_presto_player_email_collection |
wp_presto_player_audio_presets |
wp_presto_player_webhooks |
wp_presto_player_videos |
wp_presto_player_visits |
wp_presto_player_presets |
New WordPress options |
---|
presto_player_videos_database_version |
presto_player_audio_presets_database_version |
presto_player_email_collection_database_version |
can_compress_scripts |
theysaidso_admin_options |
presto_player_webhooks_database_version |
widget_theysaidso_widget |
presto_player_visits_database_version |
presto_audio_preset_seed_version |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
The Ultimate Video Player For WordPress - by Presto Player: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,994 ▲247 | 13.62 ▼0.73 | 10.28 ▲8.48 | 38.15 ▼5.57 |
Dashboard /wp-admin | 2,246 ▲69 | 5.55 ▼0.09 | 92.77 ▲2.67 | 74.65 ▲31.96 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 1.99 ▲0.05 | 33.15 ▼6.52 | 32.08 ▼3.25 |
Add New Post /wp-admin/post-new.php | 6,327 ▲4,800 | 25.64 ▲2.50 | 1,112.77 ▲434.17 | 77.22 ▲22.28 |
Media Library /wp-admin/upload.php | 1,448 ▲45 | 4.17 ▼0.02 | 108.25 ▲5.60 | 80.10 ▲33.98 |
Media Hub /wp-admin/edit.php?post_type=pp_video_block | 1,175 | 1.90 | 42.60 | 33.18 |
Settings /wp-admin/edit.php?post_type=pp_video_block&page=presto-player-settings | 1,486 | 11.76 | 362.20 | 128.37 |
Analytics Pro /wp-admin/edit.php?post_type=pp_video_block&page=presto-analytics | 1,423 | 9.15 | 130.20 | 97.60 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall successfully, leaving 6 tables in the database
- wp_presto_player_webhooks
- wp_presto_player_videos
- wp_presto_player_presets
- wp_presto_player_visits
- wp_presto_player_audio_presets
- wp_presto_player_email_collection
- Zombie WordPress options were found after uninstall: 14 options
- presto_preset_seed_version
- widget_theysaidso_widget
- widget_recent-comments
- presto_player_presets_database_version
- presto_player_audio_presets_database_version
- theysaidso_admin_options
- can_compress_scripts
- presto_player_videos_database_version
- presto_player_email_collection_database_version
- presto_player_visits_database_version
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/presto-player/templates/fallback.php
- 157× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/presto-player/templates/parts/captions.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/presto-player/vendor/mundschenk-at/check-wp-requirements/tests/class-testcase.php:32
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/presto-player/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Settings_Controller' not found in wp-content/plugins/presto-player/inc/Services/API/RestSettingsController.php:5
- > PHP Fatal error
Uncaught Error: Class 'DiceTest' not found in wp-content/plugins/presto-player/vendor/level-2/dice/tests/NamedInstancesTest.php:7
- > PHP Notice
Undefined variable: data in wp-content/plugins/presto-player/templates/parts/logo.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/presto-player/vendor/composer/installers/src/Composer/Installers/KnownInstaller.php:5
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/presto-player/templates/parts/captions.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/presto-player/vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php:5
- > PHP Fatal error
Uncaught Error: Interface 'PrestoPlayer\\Models\\ModelInterface' not found in wp-content/plugins/presto-player/inc/Models/Model.php:11
- > PHP Notice
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 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: audio, learndash, video, lms, lifterlms...
presto-player/presto-player.php 85% from 13 tests
This is the main PHP file of "The Ultimate Video Player For WordPress - by Presto Player" version 2.0.11, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
- Domain Path: The domain path must begin with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected52,041 lines of code in 1,219 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 460 | 1,516 | 954 | 19,428 |
PHP | 263 | 3,260 | 4,816 | 16,032 |
SVG | 323 | 1 | 0 | 4,614 |
TypeScript | 86 | 35 | 1,170 | 3,747 |
CSS | 35 | 190 | 37 | 3,500 |
JSON | 23 | 4 | 0 | 2,293 |
Sass | 14 | 164 | 14 | 1,256 |
Markdown | 4 | 311 | 0 | 632 |
JSX | 3 | 39 | 41 | 299 |
YAML | 5 | 44 | 31 | 192 |
XML | 3 | 4 | 1 | 48 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 10 | |
Traits | 1 | |
Classes | 290 | |
▷ Abstract classes | 4 | 1.38% |
▷ Concrete classes | 286 | 98.62% |
▷ Final classes | 0 | 0.00% |
Methods | 968 | |
▷ Static methods | 113 | 11.67% |
▷ Public methods | 834 | 86.16% |
▷ Protected methods | 83 | 8.57% |
▷ Private methods | 51 | 5.27% |
Functions | 46 | |
▷ Named functions | 5 | 10.87% |
▷ Anonymous functions | 41 | 89.13% |
Constants | 17 | |
▷ Global constants | 5 | 29.41% |
▷ Class constants | 12 | 70.59% |
▷ Public constants | 11 | 91.67% |
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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/presto-player-icon-color.png | 3.08KB | 3.08KB | 0.03% |