Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/ultimate-gallery/init.php+449
Methods with the same name as their class will not be constructors in a future version of PHP; wp_ultimate has a deprecated constructor
Server metrics [RAM: ▼1.69MB] [CPU: ▼191.40ms] Passed 4 tests
A check of server-side resources used by ULTIMATE VIDEO GALLERY
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.94 ▼0.78 | 6.45 ▼19.30 |
Dashboard /wp-admin | 1.96 ▼1.09 | 9.63 ▼37.11 |
Posts /wp-admin/edit.php | 1.96 ▼1.14 | 5.92 ▼47.41 |
Add New Post /wp-admin/post-new.php | 1.96 ▼3.47 | 5.95 ▼653.18 |
Media Library /wp-admin/upload.php | 1.96 ▼1.04 | 5.98 ▼27.88 |
ULTIMATE VIDEO /wp-admin/options-general.php?page=ultimate | 1.96 | 8.09 |
Server storage [IO: ▲2.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_wp_ultimate |
Browser metrics Passed 4 tests
A check of browser resources used by ULTIMATE VIDEO GALLERY
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,813 ▲217 | 16.77 ▲1.19 | 14.56 ▲4.35 | 52.09 ▼1.38 |
Dashboard /wp-admin | 2,978 ▲41 | 5.91 ▼0.17 | 147.34 ▼14.36 | 116.73 ▼2.60 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.00 | 94.55 ▲22.92 | 96.94 ▼2.63 |
Add New Post /wp-admin/post-new.php | 1,686 ▲95 | 18.74 ▼0.03 | 407.12 ▲8.31 | 114.19 ▼3.83 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.02 ▲0.01 | 159.63 ▼17.47 | 130.30 ▼8.21 |
ULTIMATE VIDEO /wp-admin/options-general.php?page=ultimate | 1,388 | 2.09 | 59.00 | 106.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/ultimate-gallery/init.php+449
Methods with the same name as their class will not be constructors in a future version of PHP; wp_ultimate has a deprecated constructor
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_wp_ultimate
Smoke tests 25% 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
- > GET request to /wp-admin/options-general.php?page=ultimate
- > Deprecated in wp-content/plugins/ultimate-gallery/init.php+449
Methods with the same name as their class will not be constructors in a future version of PHP; wp_ultimate has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=ultimate
- > Deprecated in wp-content/plugins/ultimate-gallery/init.php+760
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=ultimate
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in wp_ultimate is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ultimate
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ultimate
- > Notice in wp-content/plugins/ultimate-gallery/template/cabezera_panel.html+30
Undefined variable: sizethumbnail
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ultimate
- > Notice in wp-content/plugins/ultimate-gallery/template/cabezera_panel.html+40
Undefined variable: op1
SRP 0% 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ultimate-gallery/template/panel.php
- > /wp-content/plugins/ultimate-gallery/css/style.php
- 115× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined index: id in wp-content/plugins/ultimate-gallery/template/panel.php on line 16
- > PHP Notice
Undefined variable: id in wp-content/plugins/ultimate-gallery/template/panel.php on line 169
- > PHP Notice
Undefined variable: thumbnail_round in wp-content/plugins/ultimate-gallery/template/panel.php on line 323
- > PHP Notice
Undefined variable: op1 in wp-content/plugins/ultimate-gallery/template/panel.php on line 307
- > PHP Notice
Undefined variable: id in wp-content/plugins/ultimate-gallery/template/panel.php on line 357
- > PHP Notice
Undefined variable: id in wp-content/plugins/ultimate-gallery/template/panel.php on line 290
- > PHP Notice
Undefined variable: id in wp-content/plugins/ultimate-gallery/template/panel.php on line 190
- > PHP Notice
Undefined variable: id in wp-content/plugins/ultimate-gallery/template/panel.php on line 327
- > PHP Notice
Undefined variable: color1 in wp-content/plugins/ultimate-gallery/template/panel.php on line 358
- > PHP Notice
Undefined variable: id in wp-content/plugins/ultimate-gallery/template/panel.php on line 186
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Sample.), #2 (sample.), #3 (Ultimate Admin.), #4 (Gallery admin.), #5 (Video admin.), #6 (Wordpress media.)
- Tags: Too many tags (58 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ultimate-gallery/init.php 92% from 13 tests
"ULTIMATE VIDEO GALLERY" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ultimate-gallery.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,184 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 359 | 235 | 1,660 |
PHP | 4 | 631 | 303 | 1,172 |
HTML | 3 | 128 | 15 | 202 |
CSS | 1 | 18 | 6 | 150 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 54.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 5.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.33% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
24 PNG files occupy 0.25MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/play.png | 4.64KB | 1.62KB | ▼ 65.08% |
template/icono4.png | 14.52KB | 3.36KB | ▼ 76.85% |
images/next.png | 1.05KB | 1.10KB | 0.00% |
images/textbg.png | 0.08KB | 0.09KB | 0.00% |
images/next2.png | 35.49KB | 12.36KB | ▼ 65.18% |