Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼9.03ms] Passed 4 tests
An overview of server-side resources used by WP Video Lightbox
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 39.61 ▼1.62 |
Dashboard /wp-admin | 3.48 ▲0.18 | 41.58 ▼4.80 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 45.89 ▼3.45 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 76.06 ▼26.26 |
Media Library /wp-admin/upload.php | 3.40 ▲0.18 | 37.66 ▲1.85 |
Video Lightbox /wp-admin/options-general.php?page=wp_video_lightbox | 3.37 | 28.12 |
Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 77 new files
Database: no new tables, 10 new options
New WordPress options |
---|
wpvl_enable_prettyPhoto |
wpvl_plugin_version |
widget_theysaidso_widget |
widget_recent-comments |
wpvl_prettyphoto_options |
can_compress_scripts |
widget_recent-posts |
wpvl_enable_jquery |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP Video Lightbox
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲150 | 13.79 ▼0.57 | 5.80 ▲4.24 | 42.99 ▲4.32 |
Dashboard /wp-admin | 2,210 ▲19 | 5.80 ▲0.92 | 115.35 ▲12.01 | 41.74 ▼3.59 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.03 | 38.80 ▼2.58 | 34.15 ▼2.86 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.47 ▼5.86 | 664.43 ▲10.68 | 53.61 ▼5.10 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.24 ▲0.02 | 95.18 ▼9.65 | 41.36 ▼3.00 |
Video Lightbox /wp-admin/options-general.php?page=wp_video_lightbox | 814 | 2.03 | 28.58 | 29.60 |
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
These items require your attention
- The uninstall procedure has failed, leaving 10 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- wpvl_enable_jquery
- wpvl_enable_prettyPhoto
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- wpvl_plugin_version
- wpvl_prettyphoto_options
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-video-lightbox/misc_functions.php:2
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
wp-video-lightbox/wp-video-lightbox.php Passed 13 tests
The entry point to "WP Video Lightbox" version 1.9.10 is a PHP file that has certain tags in its header comment area
120 characters long description:
Simple video lightbox plugin to display videos in a nice overlay popup. It also supports images, flash, YouTube, iFrame.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected4,912 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,605 | 482 | 3,280 |
PHP | 4 | 107 | 56 | 901 |
CSS | 4 | 78 | 11 | 731 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 21.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
28 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/prettyPhoto/default/sprite_next.png | 1.33KB | 0.39KB | ▼ 70.69% |
images/prettyPhoto/light_rounded/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |
images/prettyPhoto/dark_rounded/btnNext.png | 1.38KB | 1.14KB | ▼ 17.29% |
images/prettyPhoto/facebook/contentPatternBottom.png | 0.14KB | 0.11KB | ▼ 21.13% |
images/prettyPhoto/light_square/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |