Benchmarks
Plugin footprint 83% 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.01MB] [CPU: ▼4.66ms] Passed 4 tests
An overview of server-side resources used by Woo Video Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.22 ▼0.21 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.70 ▼9.98 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.06 ▲0.38 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.53 ▼8.83 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.13 ▲1.72 |
Woo Video Gallery /wp-admin/options-general.php?page=video-gallery-settings | 3.01 | 21.77 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woo Video Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.35 | 1.86 ▲0.35 | 43.54 ▲5.24 |
Dashboard /wp-admin | 2,198 ▲18 | 5.61 ▲0.00 | 96.62 ▲9.63 | 40.76 ▼0.48 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.03 | 33.45 ▼1.49 | 35.98 ▲2.31 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.12 ▼0.41 | 635.16 ▼29.64 | 50.73 ▲2.87 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.22 ▼0.02 | 103.56 ▼10.67 | 45.33 ▼2.52 |
Woo Video Gallery /wp-admin/options-general.php?page=video-gallery-settings | 28 | 0.42 | 0.08 | 3.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 25% 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 0% 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 items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woo-video-gallery/WooVideoGallery.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function WooVideoGallery\\get_post_meta() in wp-content/plugins/woo-video-gallery/WooFrontend.php:59
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=video-gallery-settings
- > Network (severe)
wp-admin/options-general.php?page=video-gallery-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
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
Attributes that require attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
woo-video-gallery/WooVideoGallery.php 92% from 13 tests
The principal PHP file in "Woo Video Gallery" v. 1.0.5 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-video-gallery.php" instead of "WooVideoGallery.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,799 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 150 | 149 | 753 |
JavaScript | 5 | 57 | 31 | 528 |
CSS | 3 | 36 | 26 | 394 |
JSON | 1 | 0 | 0 | 63 |
HTML | 1 | 3 | 2 | 50 |
SVG | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 13.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 22 | 100.00% |
▷ Public methods | 20 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.09% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 0.90MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/star.png | 0.80KB | 1.16KB | 0.00% |
images/facebook.png | 2.76KB | 1.86KB | ▼ 32.53% |
images/gplus.png | 3.21KB | 1.80KB | ▼ 43.88% |
images/playvideo.png | 0.54KB | 0.45KB | ▼ 16.94% |
images/Screenshot from 2016-06-22 18_31_19.png | 211.97KB | 73.28KB | ▼ 65.43% |