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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.52ms] Passed 4 tests
Server-side resources used by Ni Youtube Video Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.85 ▼3.08 |
Dashboard /wp-admin | 3.35 ▲0.04 | 51.37 ▼3.15 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 50.79 ▲2.17 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.28 ▼0.87 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.38 ▼2.96 |
Video /wp-admin/edit.php?post_type=video_post_type | 3.31 | 35.54 |
Video Category /wp-admin/edit-tags.php?taxonomy=video_taxonomy&post_type=video_post_type | 3.26 | 32.48 |
Add New /wp-admin/post-new.php?post_type=video_post_type | 3.40 | 51.79 |
Server storage [IO: ▲1.53MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Ni Youtube Video Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 13.28 ▼1.10 | 1.89 ▼0.25 | 45.05 ▲0.93 |
Dashboard /wp-admin | 2,239 ▲51 | 5.84 ▼0.02 | 102.02 ▼9.71 | 71.33 ▲24.96 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.01 ▲0.02 | 33.99 ▼3.40 | 39.35 ▲1.65 |
Add New Post /wp-admin/post-new.php | 1,540 ▲18 | 17.50 ▼5.49 | 733.12 ▲53.68 | 56.23 ▼3.17 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.13 ▼0.02 | 110.92 ▼6.29 | 51.38 ▲3.83 |
Video /wp-admin/edit.php?post_type=video_post_type | 1,124 | 1.96 | 33.33 | 30.13 |
Video Category /wp-admin/edit-tags.php?taxonomy=video_taxonomy&post_type=video_post_type | 1,292 | 2.14 | 28.19 | 34.09 |
Add New /wp-admin/post-new.php?post_type=video_post_type | 2,317 | 7.71 | 166.47 | 142.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ni-youtube-video-gallery/include/single-video_post_type.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ni-youtube-video-gallery/include/ni-page-templater.php:139
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ni-youtube-video-gallery/include/video-list-template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ni-youtube-video-gallery/include/ni-video.php:4
- > 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 errors were detected
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
These attributes need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
ni-youtube-video-gallery/ni-youtube-video-gallery.php 92% from 13 tests
The entry point to "Ni Youtube Video Gallery" version 2.1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 190 characters long)
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 plugin362 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 76 | 95 | 328 |
CSS | 1 | 5 | 18 | 34 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
17 PNG files occupy 1.52MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 92.24KB | 28.22KB | ▼ 69.40% |
images/play-arrow.png | 1.28KB | 1.42KB | 0.00% |
screenshot-4.png | 87.93KB | 27.34KB | ▼ 68.90% |
images/video2.png | 1.17KB | 1.03KB | ▼ 12.41% |
images/icon.png | 0.41KB | 0.52KB | 0.00% |