Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼140.60ms] Passed 4 tests
Analyzing server-side resources used by MediaElement.js - HTML5 Video & Audio Player
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.05 | 36.15 ▲4.57 |
Dashboard /wp-admin | 3.11 ▲0.05 | 50.51 ▲4.57 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 46.14 ▼0.16 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 88.68 ▼566.41 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 29.91 ▼0.38 |
MediaElement.js /wp-admin/options-general.php?page=media-element-html5-video-and-audio-player/mediaelement-js-wp.php | 3.02 | 27.24 |
Server storage [IO: ▲1.77MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 7 new options
New WordPress options |
---|
mep_default_audio_width |
mep_default_audio_height |
mep_video_skin |
mep_default_video_type |
mep_default_video_height |
mep_default_audio_type |
mep_default_video_width |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MediaElement.js - HTML5 Video & Audio Player
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,730 ▲134 | 16.06 ▲0.52 | 12.17 ▲3.48 | 49.98 ▲5.14 |
Dashboard /wp-admin | 2,972 ▲38 | 5.87 ▼0.09 | 134.43 ▼2.49 | 112.58 ▼8.61 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.72 ▲0.02 | 63.31 ▼2.57 | 92.43 ▲4.12 |
Add New Post /wp-admin/post-new.php | 2,316 ▲646 | 19.80 ▲0.67 | 399.99 ▲7.99 | 110.19 ▼0.73 |
Media Library /wp-admin/upload.php | 1,815 ▲5 | 5.03 ▲0.00 | 153.35 ▲2.03 | 118.88 ▲2.16 |
MediaElement.js /wp-admin/options-general.php?page=media-element-html5-video-and-audio-player/mediaelement-js-wp.php | 1,227 | 2.08 | 59.49 | 82.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php:24
- > 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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Video player) image not found
- Tags: There are too many tags (17 tag instead of maximum 10)
media-element-html5-video-and-audio-player/mediaelement-js-wp.php 85% from 13 tests
"MediaElement.js - HTML5 Video & Audio Player" version 4.2.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 277 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("media-element-html5-video-and-audio-player.php" instead of "mediaelement-js-wp.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
Good job! No executable or dangerous file extensions detected15,055 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 35 | 2,471 | 396 | 13,456 |
CSS | 4 | 204 | 44 | 1,302 |
PHP | 1 | 95 | 66 | 296 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
mediaelement/v4/mejs-controls.png | 2.82KB | 3.07KB | 0.00% |