Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼1.13ms] 75% from 4 tests
Server-side resources used by Wonder Video Embed
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,009.90ms on /wp-admin/admin.php?page=wonderplugin_videoembed_overview)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 36.59 ▼4.75 |
Dashboard /wp-admin | 3.61 ▲0.31 | 51.98 ▲4.45 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 56.47 ▲9.76 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 85.02 ▼13.99 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 43.04 ▲11.37 |
Overview /wp-admin/admin.php?page=wonderplugin_videoembed_overview | 4.56 | 1,009.90 |
Quick Start /wp-admin/admin.php?page=wonderplugin_videoembed_show_quick_start | 3.44 | 36.01 |
Settings /wp-admin/admin.php?page=wonderplugin_videoembed_edit_settings | 3.45 | 31.84 |
Server storage [IO: ▲0.47MB] [DB: ▲0.03MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_wonderplugin_videoembed_widget |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Wonder Video Embed: 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 / | 3,073 ▲302 | 15.38 ▲0.99 | 5.64 ▲3.80 | 40.39 ▼4.44 |
Dashboard /wp-admin | 2,377 ▲192 | 6.73 ▲1.86 | 129.93 ▲21.78 | 132.93 ▲86.48 |
Posts /wp-admin/edit.php | 2,295 ▲209 | 3.60 ▲1.59 | 55.38 ▲14.18 | 85.84 ▲49.33 |
Add New Post /wp-admin/post-new.php | 1,711 ▲181 | 22.90 ▲4.85 | 652.92 ▲40.95 | 37.48 ▼11.91 |
Media Library /wp-admin/upload.php | 1,437 ▲49 | 4.38 ▲0.13 | 80.26 ▼18.91 | 87.98 ▲45.07 |
Overview /wp-admin/admin.php?page=wonderplugin_videoembed_overview | 1,240 | 3.96 | 56.97 | 83.60 |
Quick Start /wp-admin/admin.php?page=wonderplugin_videoembed_show_quick_start | 1,518 | 3.70 | 49.75 | 85.87 |
Settings /wp-admin/admin.php?page=wonderplugin_videoembed_edit_settings | 1,103 | 3.70 | 49.23 | 76.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_wonderplugin_videoembed_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
The SRP test was a success
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 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 16 tag instead of maximum 10
wonderplugin-video-embed/wonderpluginvideoembed.php 92% from 13 tests
The principal PHP file in "Wonder Video Embed" v. 1.9 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wonderplugin-video-embed.php" instead of "wonderpluginvideoembed.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,453 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 372 | 13 | 1,268 |
CSS | 2 | 30 | 0 | 120 |
JavaScript | 3 | 0 | 15 | 65 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 25.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 84 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
20 PNG files occupy 0.38MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo-16.png | 0.32KB | 0.29KB | ▼ 9.04% |
images/wordpress-add-youtube.png | 39.40KB | 11.77KB | ▼ 70.12% |
images/logo-32.png | 0.47KB | 0.44KB | ▼ 6.65% |
engine/playvideo-64-64-2.png | 0.73KB | 0.50KB | ▼ 32.04% |
images/wordpress-post-video.png | 25.46KB | 7.60KB | ▼ 70.14% |