Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.46ms] Passed 4 tests
Server-side resources used by HTML5 Videos
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 308.30 ▲269.69 |
Dashboard /wp-admin | 3.32 ▼0.02 | 41.29 ▼18.70 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.41 ▼3.02 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 75.66 ▼17.52 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.04 ▼2.61 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
HTML5 Videos: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 13.81 ▼0.80 | 8.87 ▲7.28 | 35.89 ▼6.29 |
Dashboard /wp-admin | 2,209 ▲18 | 4.85 ▼0.06 | 107.52 ▲3.65 | 42.43 ▼0.96 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.04 | 39.49 ▼2.35 | 35.99 ▼0.87 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 23.44 ▲0.27 | 648.93 ▼15.28 | 58.41 ▲5.12 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.08 | 92.89 ▼20.69 | 42.01 ▼6.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/html5-videos/html5-videos.php
- > /wp-content/plugins/html5-videos/html5_window.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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== html5-videos ===
) - Donate link: Please fix this invalid url: ""
html5-videos/html5-videos.php Passed 13 tests
The principal PHP file in "HTML5 Videos" v. 1.0.2 is loaded by WordPress automatically on each request
80 characters long description:
Adds a button to the WYSIWYG editor to embed HTML5 videos from the Media Library
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
There were no executable files found in this plugin347 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 71 | 41 | 168 |
JavaScript | 3 | 32 | 19 | 122 |
CSS | 2 | 4 | 0 | 57 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/video-js.png | 8.04KB | 3.82KB | ▼ 52.47% |
img/html5.png | 0.32KB | 0.33KB | 0.00% |