Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼140.32ms] Passed 4 tests
A check of server-side resources used by WP Youtube Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.23 | 36.62 ▲16.75 |
Dashboard /wp-admin | 3.17 ▲0.11 | 50.16 ▲4.90 |
Posts /wp-admin/edit.php | 3.22 ▲0.12 | 46.97 ▲1.32 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.10 | 90.75 ▼569.34 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 34.27 ▲1.83 |
Add New Video /wp-admin/post-new.php?post_type=wp_youtube_gallery | 3.24 | 51.24 |
Settings /wp-admin/edit.php?post_type=wp_youtube_gallery&page=wpyg-settings | 3.08 | 31.44 |
All Videos /wp-admin/edit.php?post_type=wp_youtube_gallery | 3.16 | 36.02 |
Categories /wp-admin/edit-tags.php?taxonomy=wp_youtube_gallery_taxonomy&post_type=wp_youtube_gallery | 3.11 | 29.79 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WP Youtube Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,764 ▲168 | 15.95 ▲0.52 | 7.95 ▲0.09 | 45.24 ▼6.95 |
Dashboard /wp-admin | 3,039 ▲105 | 5.92 ▲0.04 | 135.61 ▼8.52 | 112.84 ▲2.27 |
Posts /wp-admin/edit.php | 2,807 ▲68 | 2.71 ▲0.02 | 66.69 ▲2.17 | 91.07 ▲1.40 |
Add New Post /wp-admin/post-new.php | 1,536 ▼2,151 | 16.71 ▲1.61 | 370.45 ▼79.67 | 104.53 ▼5.69 |
Media Library /wp-admin/upload.php | 1,801 ▼3 | 5.07 ▲0.06 | 149.97 ▲3.14 | 115.58 ▲2.90 |
Add New Video /wp-admin/post-new.php?post_type=wp_youtube_gallery | 3,141 | 8.94 | 213.53 | 129.38 |
Settings /wp-admin/edit.php?post_type=wp_youtube_gallery&page=wpyg-settings | 2,362 | 13.46 | 467.53 | 160.95 |
All Videos /wp-admin/edit.php?post_type=wp_youtube_gallery | 1,476 | 2.64 | 73.47 | 72.07 |
Categories /wp-admin/edit-tags.php?taxonomy=wp_youtube_gallery_taxonomy&post_type=wp_youtube_gallery | 1,796 | 2.54 | 61.79 | 76.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please describe screenshot #5 in wp-youtube-gallery/assets to your readme.txt
wp-youtube-gallery/wp-youtube-gallery.php Passed 13 tests
The primary PHP file in "WP Youtube Gallery" version 1.9 is used by WordPress to initiate all plugin functionality
132 characters long description:
A very simple and light weight youtube gallery plugin. Using shortcode you can add youtube video gallery on any page of the website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected532 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 40 | 83 | 452 |
CSS | 3 | 0 | 9 | 80 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 2 | 20.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected