Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.49MB] [CPU: ▼3.96ms] 75% from 4 tests
This is a short check of server-side resources used by Video Gallery - Api Gallery, YouTube and Vimeo, Link Gallery
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 696.93ms on /wp-admin/edit.php?post_type=video_gallery&page=sr-feature-plugin-page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 43.30 ▲3.15 |
Dashboard /wp-admin | 3.85 ▲0.50 | 52.24 ▼9.43 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 48.02 ▲3.17 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.48 | 84.11 ▼11.60 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 37.82 ▲2.04 |
All Video Gallery /wp-admin/edit.php?post_type=video_gallery | 3.71 | 35.51 |
Our Theme /wp-admin/edit.php?post_type=video_gallery&page=sr-theme-page | 3.68 | 34.48 |
Add Video Gallery /wp-admin/post-new.php?post_type=video_gallery | 3.98 | 45.78 |
Featured Plugin /wp-admin/edit.php?post_type=video_gallery&page=sr-feature-plugin-page | 3.90 | 696.93 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.92 | 34.19 |
Server storage [IO: ▲3.89MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Video Gallery - Api Gallery, YouTube and Vimeo, Link Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲173 | 13.51 ▼0.87 | 8.45 ▲6.71 | 41.66 ▲2.07 |
Dashboard /wp-admin | 2,268 ▲88 | 5.56 ▼0.09 | 86.54 ▲1.25 | 41.09 ▼3.81 |
Posts /wp-admin/edit.php | 2,164 ▲67 | 2.06 ▲0.03 | 35.00 ▲1.17 | 37.70 ▲4.07 |
Add New Post /wp-admin/post-new.php | 1,589 ▲63 | 23.32 ▲0.29 | 664.43 ▲2.42 | 61.57 ▲8.16 |
Media Library /wp-admin/upload.php | 1,481 ▲78 | 4.23 ▲0.06 | 96.44 ▼4.80 | 47.75 ▲1.79 |
All Video Gallery /wp-admin/edit.php?post_type=video_gallery | 1,163 | 2.14 | 38.42 | 36.12 |
Our Theme /wp-admin/edit.php?post_type=video_gallery&page=sr-theme-page | 1,009 | 2.19 | 25.33 | 72.19 |
Add Video Gallery /wp-admin/post-new.php?post_type=video_gallery | 2,654 | 3.92 | 75.14 | 137.37 |
Featured Plugin /wp-admin/edit.php?post_type=video_gallery&page=sr-feature-plugin-page | 3,383 | 1.82 | 27.40 | 210.85 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,080 | 2.05 | 22.88 | 31.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
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
These server-side errors were triggered
- > GET request to /wp-admin/edit.php?post_type=video_gallery
- > Notice in wp-content/plugins/new-video-gallery/new-video-gallery.php+124
Undefined variable: columns
- > GET request to /wp-admin/edit.php?post_type=video_gallery
- > Notice in wp-content/plugins/new-video-gallery/new-video-gallery.php+124
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/new-video-gallery/include/video-gallery-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/new-video-gallery/include/shortcode.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/new-video-gallery/class-tgm-plugin-activation.php:2129
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/new-video-gallery/featured-plugins/featured-plugins.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/new-video-gallery/our-theme/awp-theme.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=video_gallery&page=sr-theme-page
- > Network (severe)
wp-content/plugins/new-video-gallery/js/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=video_gallery&page=sr-feature-plugin-page
- > Network (severe)
wp-content/plugins/new-video-gallery/css/bootstrap.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=video_gallery&page=sr-feature-plugin-page
- > Network (severe)
wp-content/plugins/new-video-gallery/js/bootstrap.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=video_gallery&page=sr-feature-plugin-page
- > Network (severe)
wp-content/plugins/new-video-gallery/js/featured-plugins/acl-media-upload-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=video_gallery&page=sr-feature-plugin-page
- > Network (severe)
wp-content/plugins/new-video-gallery/js/featured-plugins/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=video_gallery&page=sr-feature-plugin-page
- > Network (severe)
wp-content/plugins/new-video-gallery/featured-plugins/fonts/bootstrap/glyphicons-halflings-regular-2.html - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=video_gallery&page=sr-feature-plugin-page
- > Network (severe)
wp-content/plugins/new-video-gallery/featured-plugins/fonts/bootstrap/glyphicons-halflings-regular-3.html - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: youtube gallery, vimeo gallery, youtube api gallery, gallery, video gallery
new-video-gallery/new-video-gallery.php Passed 13 tests
"Video Gallery - Api Gallery, YouTube and Vimeo, Link Gallery" version 1.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
56 characters long description:
Create YouTube Vimeo Video Galleries Into WordPress Blog
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
There were no executable files found in this plugin43,419 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 16 | 2,143 | 423 | 28,752 |
JavaScript | 11 | 1,403 | 1,261 | 7,375 |
SVG | 3 | 0 | 0 | 3,644 |
PHP | 8 | 623 | 1,729 | 3,445 |
PO File | 1 | 89 | 99 | 203 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
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 | 43.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 118 | |
▷ Static methods | 5 | 4.24% |
▷ Public methods | 93 | 78.81% |
▷ Protected methods | 25 | 21.19% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
our-theme/img/aneeq-premium.png | 165.42KB | 57.84KB | ▼ 65.04% |
assets/img/p-vimeo.png | 2.50KB | 1.01KB | ▼ 59.52% |
assets/img/p-youtube.png | 2.25KB | 1.03KB | ▼ 54.22% |
assets/css/new-slide.png | 2.54KB | 1.19KB | ▼ 53.21% |