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
You still need to fix the following installer errors
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲5.88MB] [CPU: ▲33.94ms] 75% from 4 tests
An overview of server-side resources used by All-in-One Video Gallery
Please take the time to fix the following items
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.88MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.25 ▲5.79 | 74.46 ▲32.08 |
Dashboard /wp-admin | 9.27 ▲5.97 | 88.27 ▲41.41 |
Posts /wp-admin/edit.php | 9.27 ▲5.91 | 87.54 ▲36.94 |
Add New Post /wp-admin/post-new.php | 11.73 ▲5.84 | 124.59 ▲25.32 |
Media Library /wp-admin/upload.php | 9.27 ▲6.04 | 79.11 ▲43.43 |
Freemius Debug [v.2.5.11] /wp-admin/admin.php?page=freemius | 9.27 | 73.08 |
Server storage [IO: ▲12.37MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 373 new files
Database: no new tables, 28 new options
New WordPress options |
---|
widget_aiovg-widget-videos |
fs_accounts |
widget_recent-posts |
aiovg_videos_settings |
aiovg_featured_images_settings |
aiovg_categories_settings |
aiovg_images_settings |
aiovg_general_settings |
aiovg_api_settings |
widget_aiovg-widget-video |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for All-in-One Video Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,088 ▲317 | 15.41 ▲0.79 | 5.39 ▲3.49 | 28.63 ▼16.72 |
Dashboard /wp-admin | 2,405 ▲214 | 6.71 ▲1.84 | 141.84 ▲39.15 | 45.40 ▲1.54 |
Posts /wp-admin/edit.php | 2,311 ▲219 | 3.63 ▲1.60 | 53.10 ▲10.65 | 32.60 ▼0.91 |
Add New Post /wp-admin/post-new.php | 6,234 ▲4,720 | 19.26 ▲1.77 | 944.65 ▲294.42 | 37.41 ▼12.49 |
Media Library /wp-admin/upload.php | 1,447 ▲62 | 4.46 ▲0.35 | 84.12 ▼26.41 | 46.00 ▼1.72 |
Freemius Debug [v.2.5.11] /wp-admin/admin.php?page=freemius | 1,302 | 3.41 | 39.80 | 26.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/all-in-one-video-gallery/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 13 options in the database
- can_compress_scripts
- widget_aiovg-widget-videos
- widget_aiovg-widget-video
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- fs_accounts
- widget_aiovg-widget-search
- fs_debug_mode
- widget_aiovg-widget-categories
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/all-in-one-video-gallery/public/templates/categories-template-list.php
- 41× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/all-in-one-video-gallery/admin/partials/issues.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/all-in-one-video-gallery/admin/partials/faq.php:15
- > PHP Notice
Undefined variable: form in wp-content/plugins/all-in-one-video-gallery/admin/partials/category-fields.php on line 33
- > PHP Notice
Undefined variable: form in wp-content/plugins/all-in-one-video-gallery/admin/partials/category-fields.php on line 13
- > PHP Notice
Undefined variable: player_settings in wp-content/plugins/all-in-one-video-gallery/public/templates/player-videojs.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/all-in-one-video-gallery/admin/partials/category-fields.php:66
- > PHP Notice
Undefined variable: post_type in wp-content/plugins/all-in-one-video-gallery/public/templates/player-videojs.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/all-in-one-video-gallery/admin/partials/video-tracks.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/all-in-one-video-gallery/admin/partials/video-submitbox.php:13
- > PHP Notice
Undefined variable: post_type in wp-content/plugins/all-in-one-video-gallery/public/templates/player-vidstack.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: vimeo gallery, live stream, video gallery, video player, youtube gallery
all-in-one-video-gallery/all-in-one-video-gallery.php 92% from 13 tests
Analyzing the main PHP file in "All-in-One Video Gallery" version 3.5.2
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 212 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected80,237 lines of code in 270 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 186 | 10,814 | 20,565 | 46,659 |
JSON | 10 | 0 | 0 | 28,163 |
JavaScript | 43 | 744 | 507 | 3,564 |
CSS | 26 | 351 | 114 | 1,643 |
SVG | 2 | 0 | 0 | 133 |
XML | 2 | 3 | 0 | 74 |
HTML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,087)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 71.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,087.00 |
Average method complexity | 4.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 81 | |
▷ Abstract classes | 2 | 2.47% |
▷ Concrete classes | 79 | 97.53% |
▷ Final classes | 0 | 0.00% |
Methods | 1,480 | |
▷ Static methods | 202 | 13.65% |
▷ Public methods | 1,075 | 72.64% |
▷ Protected methods | 17 | 1.15% |
▷ Private methods | 388 | 26.22% |
Functions | 166 | |
▷ Named functions | 165 | 99.40% |
▷ Anonymous functions | 1 | 0.60% |
Constants | 152 | |
▷ Global constants | 105 | 69.08% |
▷ Class constants | 47 | 30.92% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 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 |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
public/assets/images/placeholder-image.png | 8.60KB | 2.67KB | ▼ 68.91% |
admin/assets/images/logo.png | 1.18KB | 1.19KB | 0.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
public/assets/images/play.png | 1.28KB | 1.57KB | 0.00% |