Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.85ms] Passed 4 tests
An overview of server-side resources used by Fast and Responsive Youtube Vimeo Embed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.96 ▼1.34 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.25 ▼7.68 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.12 ▼2.30 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 78.98 ▼16.07 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.81 ▲0.61 |
YTVF Embed /wp-admin/admin.php?page=ytvf-embed | 3.23 | 30.03 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Fast and Responsive Youtube Vimeo Embed
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.19 ▼1.22 | 1.90 ▲0.19 | 44.19 ▲3.94 |
Dashboard /wp-admin | 2,218 ▲30 | 4.87 ▼0.99 | 102.16 ▼3.92 | 38.34 ▼3.40 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 1.99 ▼0.01 | 35.43 ▼0.53 | 33.51 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,543 ▲24 | 23.37 ▲0.32 | 657.41 ▼37.82 | 58.17 ▼2.94 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.21 ▼0.06 | 108.90 ▲5.47 | 47.50 ▼3.38 |
YTVF Embed /wp-admin/admin.php?page=ytvf-embed | 866 | 1.74 | 28.73 | 25.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fast-and-responsive-youtube-vimeo-embed/ytvf.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% 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 your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in fast-and-responsive-youtube-vimeo-embed/assets to your readme.txt
- License uri: Invalid url: "GPLv2 or later"
fast-and-responsive-youtube-vimeo-embed/ytvf.php 92% from 13 tests
"Fast and Responsive Youtube Vimeo Embed" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("fast-and-responsive-youtube-vimeo-embed.php" instead of "ytvf.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin326 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 16 | 326 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 6 | 100.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
PNG images were not found in this plugin