Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.59ms] Passed 4 tests
A check of server-side resources used by LR YouTube Grid Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 41.96 ▼1.37 |
Dashboard /wp-admin | 3.45 ▲0.14 | 50.59 ▲0.51 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 46.74 ▲2.75 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 86.68 ▼6.75 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.47 ▲1.27 |
LRYG Settings /wp-admin/edit.php?post_type=lr-youtube-gallery&page=lryg_settings | 3.34 | 33.72 |
Add New /wp-admin/post-new.php?post_type=lr-youtube-gallery | 3.41 | 45.91 |
Categories /wp-admin/edit-tags.php?taxonomy=youtube-category&post_type=lr-youtube-gallery | 3.36 | 34.78 |
Videos /wp-admin/edit.php?post_type=lr-youtube-gallery | 3.41 | 35.31 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for LR YouTube Grid Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,971 ▲214 | 13.63 ▼0.79 | 5.98 ▲3.65 | 47.01 ▼3.52 |
Dashboard /wp-admin | 2,247 ▲62 | 5.81 ▲0.91 | 95.83 ▼26.56 | 38.71 ▼9.33 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.05 ▲0.05 | 33.55 ▼2.81 | 35.94 ▲3.86 |
Add New Post /wp-admin/post-new.php | 1,548 ▲15 | 17.62 ▼3.25 | 737.28 ▲80.32 | 53.34 ▲5.25 |
Media Library /wp-admin/upload.php | 1,435 ▲50 | 4.25 ▲0.08 | 93.01 ▼9.09 | 43.89 ▼2.32 |
LRYG Settings /wp-admin/edit.php?post_type=lr-youtube-gallery&page=lryg_settings | 953 | 2.10 | 27.36 | 31.75 |
Add New /wp-admin/post-new.php?post_type=lr-youtube-gallery | 1,764 | 2.61 | 49.91 | 50.71 |
Categories /wp-admin/edit-tags.php?taxonomy=youtube-category&post_type=lr-youtube-gallery | 1,315 | 2.18 | 25.73 | 27.53 |
Videos /wp-admin/edit.php?post_type=lr-youtube-gallery | 1,092 | 1.97 | 31.40 | 28.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/lr-youtube-grid-gallery/admin/tinymce/lryg-tinymce-page.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lr-youtube-grid-gallery/custom-taxonomy-lr-youtube-grid-gallery.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/lr-youtube-grid-gallery/lr-youtube-grid-gallery.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lr-youtube-grid-gallery/custom-post-lr-youtube-grid-gallery.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/lr-youtube-grid-gallery/content-list-lr-youtube-grid-gallery.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/post-new.php?post_type=lr-youtube-gallery
- > Network (severe)
data:image/png; - Failed to load resource: net::ERR_INVALID_URL
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% 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
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
- Stable tag: No value
- Screenshots: Please a description for screenshot #7 in lr-youtube-grid-gallery/assets to your readme.txt
lr-youtube-grid-gallery/lr-youtube-grid-gallery.php Passed 13 tests
The main PHP file in "LR YouTube Grid Gallery" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
115 characters long description:
LR YouTube Grid Gallery is a plugin you can create an area for YouTube videos quickly with management by shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected3,103 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 1 | 9 | 1,938 |
PHP | 6 | 31 | 10 | 639 |
SVG | 1 | 0 | 0 | 504 |
JavaScript | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-youtube-32.png | 1.10KB | 1.30KB | 0.00% |
images/icon-youtube-64.png | 1.33KB | 1.46KB | 0.00% |
images/icon-youtube.png | 0.52KB | 0.61KB | 0.00% |
admin/tinymce/icon-youtube.png | 1.10KB | 1.30KB | 0.00% |