Benchmarks
Plugin footprint 83% 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.05MB] [CPU: ▼7.63ms] Passed 4 tests
A check of server-side resources used by Hover Video Preview
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 38.76 ▼2.44 |
Dashboard /wp-admin | 3.36 ▲0.01 | 47.39 ▼15.60 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 46.55 ▲1.09 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 80.55 ▼13.55 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 33.97 ▲1.24 |
Hover Video Preview /wp-admin/options-general.php?page=settings_view | 3.25 | 28.96 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Hover Video Preview
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲183 | 14.45 ▼0.30 | 13.64 ▲11.46 | 46.80 ▲3.24 |
Dashboard /wp-admin | 2,214 ▲26 | 5.86 ▲0.99 | 98.71 ▼17.70 | 38.39 ▼3.64 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.01 ▼0.01 | 33.86 ▼1.72 | 35.12 ▼0.69 |
Add New Post /wp-admin/post-new.php | 1,521 ▲7 | 17.51 ▲0.07 | 681.40 ▲14.04 | 51.20 ▼2.21 |
Media Library /wp-admin/upload.php | 1,396 ▲14 | 4.22 ▼0.18 | 97.35 ▲3.66 | 40.34 ▼2.27 |
Hover Video Preview /wp-admin/options-general.php?page=settings_view | 881 | 2.17 | 24.03 | 31.87 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/hover-video-preview/admin/partials/hover-video-preview-admin-settings.php
- > /wp-content/plugins/hover-video-preview/public/partials/hover-video-preview-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: video hover, video, youtube, video preview, video tooltip...
hover-video-preview/hover-video-preview.php 92% from 13 tests
The primary PHP file in "Hover Video Preview" version 1.0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin3,460 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 260 | 311 | 1,137 |
CSS | 11 | 103 | 63 | 1,041 |
HTML | 2 | 75 | 3 | 688 |
PHP | 12 | 124 | 539 | 264 |
SVG | 2 | 0 | 1 | 227 |
Markdown | 1 | 6 | 0 | 59 |
JSON | 2 | 0 | 0 | 44 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 1.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.18MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/vendor/tooltipster/doc/images/browser-ie.png | 5.18KB | 2.46KB | ▼ 52.57% |
public/vendor/tooltipster/doc/images/browser-safari.png | 12.14KB | 4.50KB | ▼ 62.90% |
public/vendor/tooltipster/doc/images/browser-firefox.png | 9.13KB | 3.80KB | ▼ 58.35% |
public/vendor/tooltipster/doc/images/favicon.png | 0.37KB | 0.23KB | ▼ 37.83% |
public/vendor/tooltipster/doc/images/browser-chrome.png | 8.24KB | 3.45KB | ▼ 58.09% |