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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.84ms] Passed 4 tests
Server-side resources used by Video Lightbox for YouTube/Vimeo
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.37 ▲0.45 |
Dashboard /wp-admin | 3.32 ▲0.02 | 40.19 ▼6.06 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.36 ▼1.56 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 80.93 ▼20.17 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.43 ▲3.79 |
Video Lightbox /wp-admin/admin.php?page=ytubefancybox | 3.21 | 29.64 |
Youtube /wp-admin/admin.php?page=ytube | 3.21 | 30.43 |
Vimeo /wp-admin/admin.php?page=vimeo | 3.21 | 31.06 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Video Lightbox for YouTube/Vimeo
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲229 | 14.06 ▼0.32 | 9.33 ▲7.55 | 41.12 ▼5.42 |
Dashboard /wp-admin | 2,233 ▲45 | 5.89 ▲0.00 | 112.92 ▲13.13 | 45.63 ▲0.86 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.03 ▼0.02 | 35.27 ▼6.21 | 31.56 ▼5.09 |
Add New Post /wp-admin/post-new.php | 1,555 ▲19 | 23.20 ▼0.21 | 675.34 ▲55.99 | 53.77 ▼1.32 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.20 ▼0.10 | 100.31 ▲1.00 | 43.05 ▲1.57 |
Video Lightbox /wp-admin/admin.php?page=ytubefancybox | 864 | 2.06 | 28.37 | 28.01 |
Youtube /wp-admin/admin.php?page=ytube | 872 | 2.05 | 24.45 | 26.05 |
Vimeo /wp-admin/admin.php?page=vimeo | 869 | 2.05 | 23.23 | 24.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/youtubefancybox/youtubefancybox.php:208
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: amp, youtubefancybox, fancy box, lightbox youtube, lightbox...
youtubefancybox/youtubefancybox.php 85% from 13 tests
"Video Lightbox for YouTube/Vimeo" version 2.6.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages/")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin1,379 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 206 | 97 | 906 |
PHP | 3 | 86 | 114 | 389 |
CSS | 2 | 5 | 19 | 60 |
Markdown | 1 | 11 | 0 | 24 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.67 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/overlay.png | 0.11KB | 0.15KB | 0.00% |
css/images/controls.png | 1.23KB | 1.28KB | 0.00% |
css/images/loading_background.png | 0.13KB | 0.15KB | 0.00% |
css/images/border.png | 0.07KB | 0.10KB | 0.00% |