Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.19ms] Passed 4 tests
A check of server-side resources used by Tiny Video Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 34.70 ▼4.56 |
Dashboard /wp-admin | 3.34 ▼0.01 | 49.74 ▼11.60 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 43.78 ▼3.13 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 83.55 ▼13.46 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.27 ▲0.92 |
All Videos /wp-admin/edit.php?post_type=tiny_video_item | 3.31 | 38.86 |
Add New /wp-admin/post-new.php?post_type=tiny_video_item | 3.34 | 49.18 |
Category /wp-admin/edit-tags.php?taxonomy=tiny_video_category&post_type=tiny_video_item | 3.26 | 38.84 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Tiny Video Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲167 | 13.41 ▼0.95 | 8.59 ▲7.07 | 39.94 ▲2.19 |
Dashboard /wp-admin | 2,232 ▲58 | 5.64 ▲0.00 | 84.38 ▼8.09 | 35.81 ▼1.01 |
Posts /wp-admin/edit.php | 2,134 ▲37 | 2.00 ▲0.01 | 36.85 ▼1.25 | 29.52 ▼7.60 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.44 ▲0.19 | 654.48 ▲1.88 | 62.53 ▲2.75 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.26 ▲0.07 | 96.26 ▼3.73 | 40.82 ▼1.83 |
All Videos /wp-admin/edit.php?post_type=tiny_video_item | 1,085 | 1.91 | 33.66 | 28.13 |
Add New /wp-admin/post-new.php?post_type=tiny_video_item | 1,787 | 3.75 | 79.50 | 36.85 |
Category /wp-admin/edit-tags.php?taxonomy=tiny_video_category&post_type=tiny_video_item | 1,283 | 2.26 | 30.92 | 33.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tiny-video-gallery/inc/widgets/vc.php:4
- > PHP Warning
require(TPVG_DIR_PATHinc/widgets/generic.php): failed to open stream: No such file or directory in wp-content/plugins/tiny-video-gallery/inc/widgets.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tiny-video-gallery/inc/cpt.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tiny-video-gallery/inc/widgets/generic.php:22
- > PHP Fatal error
require(): Failed opening required 'TPVG_DIR_PATHinc/widgets/generic.php' (include_path='.:/usr/share/php') in wp-content/plugins/tiny-video-gallery/inc/widgets.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'TinyVideoGallery\\Widgets\\Widget_Base' not found in wp-content/plugins/tiny-video-gallery/inc/widgets/elementor.php:5
- > PHP Warning
Use of undefined constant TPVG_DIR_PATH - assumed 'TPVG_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tiny-video-gallery/inc/widgets.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tiny-video-gallery/inc/metabox.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tiny-video-gallery/inc/taxonomy.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
2 plugin tags: video gallery, elementor video gallery
tiny-video-gallery/tiny-video-gallery.php 92% from 13 tests
"Tiny Video Gallery" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 170 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin940 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 85 | 122 | 524 |
JavaScript | 2 | 11 | 19 | 237 |
CSS | 2 | 25 | 0 | 179 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 2 | 9.09% |
▷ Public methods | 18 | 81.82% |
▷ Protected methods | 2 | 9.09% |
▷ Private methods | 2 | 9.09% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/static/vc_icon.png | 7.60KB | 3.37KB | ▼ 55.62% |