Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.80MB] [CPU: ▼31.78ms] Passed 4 tests
An overview of server-side resources used by Lis Video Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 38.55 ▼0.34 |
Dashboard /wp-admin | 3.16 ▼0.19 | 23.39 ▼37.96 |
Posts /wp-admin/edit.php | 3.16 ▼0.20 | 26.86 ▼17.44 |
Add New Post /wp-admin/post-new.php | 3.16 ▼2.73 | 24.97 ▼61.75 |
Media Library /wp-admin/upload.php | 3.16 ▼0.07 | 24.34 ▼9.98 |
Gallery /wp-admin/edit-tags.php?taxonomy=video_gallery&post_type=video | 3.16 | 24.99 |
All Videos /wp-admin/edit.php?post_type=video | 3.16 | 23.51 |
Add New /wp-admin/post-new.php?post_type=video | 3.16 | 22.88 |
Video Gallery /wp-admin/options-general.php?page=video_gallery | 3.16 | 24.85 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
lis_lvg_box |
lis_lvg_source |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lis Video Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲137 | 13.29 ▼1.02 | 1.97 ▲0.11 | 50.33 ▼1.84 |
Dashboard /wp-admin | 2,246 ▲61 | 4.88 ▼0.97 | 108.01 ▲2.92 | 44.30 ▲3.55 |
Posts /wp-admin/edit.php | 2,129 ▲37 | 2.00 ▼0.03 | 39.35 ▼0.14 | 34.29 ▼0.81 |
Add New Post /wp-admin/post-new.php | 1,559 ▲26 | 23.26 ▲0.28 | 629.14 ▼26.68 | 58.68 ▼0.55 |
Media Library /wp-admin/upload.php | 1,428 ▲43 | 4.20 ▼0.01 | 98.74 ▼4.11 | 42.38 ▲0.54 |
Gallery /wp-admin/edit-tags.php?taxonomy=video_gallery&post_type=video | 1,296 | 2.13 | 26.23 | 33.21 |
All Videos /wp-admin/edit.php?post_type=video | 1,131 | 1.94 | 33.40 | 31.05 |
Add New /wp-admin/post-new.php?post_type=video | 1,846 | 3.73 | 60.97 | 33.40 |
Video Gallery /wp-admin/options-general.php?page=video_gallery | 998 | 2.02 | 22.87 | 27.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options detected upon uninstall: 8 options
- lis_lvg_box
- lis_lvg_source
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=video_gallery
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/post-new.php?post_type=video
- > Notice in wp-content/plugins/lis-video-gallery/lis_lvg_plugin_basic.php+188
Undefined index: video_url_noncename
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lis-video-gallery/lis_lvg_short.php:199
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/lis-video-gallery/lis_lvg_plugin_basic.php:114
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lis-video-gallery/lis_video_gallery.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== lis-video-gallery ===
)
lis-video-gallery/lis_video_gallery.php 85% from 13 tests
Analyzing the main PHP file in "Lis Video Gallery" version 0.2.1
It is important to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Name the main plugin file the same as the plugin slug ("lis-video-gallery.php" instead of "lis_video_gallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,514 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 325 | 46 | 745 |
CSS | 6 | 59 | 30 | 438 |
PO File | 2 | 118 | 122 | 296 |
JavaScript | 4 | 14 | 18 | 35 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 6.00 |
▷ Maximum method complexity | 6.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 | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 1 | 100.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/cbox_loading_background.png | 0.13KB | 0.15KB | 0.00% |
img/no_image.png | 19.26KB | 7.06KB | ▼ 63.34% |
img/cbox_overlay.png | 0.11KB | 0.15KB | 0.00% |
img/cbox_border.png | 0.07KB | 0.10KB | 0.00% |
img/icon-128x128.png | 11.54KB | 7.07KB | ▼ 38.73% |