Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲1.45MB] [CPU: ▲6.08ms] Passed 4 tests
Analyzing server-side resources used by ELEX Embed YouTube Video Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.90 ▲1.44 | 51.94 ▲0.73 |
Dashboard /wp-admin | 4.76 ▲1.45 | 59.43 ▲1.05 |
Posts /wp-admin/edit.php | 4.87 ▲1.51 | 67.38 ▲15.24 |
Add New Post /wp-admin/post-new.php | 7.33 ▲1.44 | 110.60 ▲7.28 |
Media Library /wp-admin/upload.php | 4.70 ▲1.47 | 57.39 ▲16.55 |
Gallery & Settings /wp-admin/admin.php?page=ehyt_settings | 5.01 | 54.91 |
Go Premium! /wp-admin/admin.php?page=go-premium | 4.67 | 42.41 |
Server storage [IO: ▲9.72MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 1,196 new files
Database: 4 new tables, 10 new options
New tables |
---|
wp_elex_galleries |
wp_elex_categories |
wp_elex_gallery_source |
wp_elex_gallery_videos |
New WordPress options |
---|
db_upgraded |
elex_yt_video_player_settings |
widget_recent-posts |
elex_yt_configuration_settings |
elex-embed-youtube-video-gallery/elex-embed-youtube-video-gallery-basic.php_activation_date |
theysaidso_admin_options |
elex_yt_gallery_settings |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by ELEX Embed YouTube Video Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,391 ▲630 | 14.93 ▲0.56 | 11.19 ▲9.28 | 42.75 ▼0.76 |
Dashboard /wp-admin | 2,602 ▲425 | 5.39 ▼0.18 | 115.57 ▲11.38 | 88.10 ▲44.19 |
Posts /wp-admin/edit.php | 2,479 ▲376 | 3.10 ▲1.14 | 59.20 ▲21.79 | 60.58 ▲24.97 |
Add New Post /wp-admin/post-new.php | 1,996 ▲470 | 23.21 ▲0.15 | 684.78 ▲11.97 | 39.25 ▼29.93 |
Media Library /wp-admin/upload.php | 1,811 ▲408 | 4.95 ▲0.76 | 112.69 ▲1.50 | 84.52 ▲35.41 |
Gallery & Settings /wp-admin/admin.php?page=ehyt_settings | 1,599 | 2.90 | 39.16 | 54.72 |
Go Premium! /wp-admin/admin.php?page=go-premium | 1,419 | 2.40 | 35.08 | 57.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 4 tables
- wp_elex_categories
- wp_elex_gallery_source
- wp_elex_gallery_videos
- wp_elex_galleries
- The uninstall procedure has failed, leaving 10 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- elex_yt_video_player_settings
- elex_yt_configuration_settings
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- elex_yt_gallery_settings
- elex-embed-youtube-video-gallery/elex-embed-youtube-video-gallery-basic.php_activation_date
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 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
The following issues need your attention
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/elex-embed-youtube-video-gallery/resources/css/tab.php
- > /wp-content/plugins/elex-embed-youtube-video-gallery/review_and_troubleshoot_notify/resources/logo.php
- > /wp-content/plugins/elex-embed-youtube-video-gallery/resources/css/youtubeapi.php
- > /wp-content/plugins/elex-embed-youtube-video-gallery/resources/view/gallery-list.php
- 591× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/elex-embed-youtube-video-gallery/vendor/google/apiclient-services/src/YouTube/SuperChatEventSnippet.php:20
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\AsymmetricKey' not found in wp-content/plugins/elex-embed-youtube-video-gallery/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC.php:54
- > PHP Warning
Class 'Google\\AuthHandler\\Guzzle5AuthHandler' not found in wp-content/plugins/elex-embed-youtube-video-gallery/vendor/google/apiclient/src/aliases.php on line 33
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Binary' not found in wp-content/plugins/elex-embed-youtube-video-gallery/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/sect113r1.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/elex-embed-youtube-video-gallery/vendor/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Class 'Google\\Auth\\CredentialsLoader' not found in wp-content/plugins/elex-embed-youtube-video-gallery/vendor/google/auth/src/Credentials/ServiceAccountCredentials.php:61
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\PuTTY' not found in wp-content/plugins/elex-embed-youtube-video-gallery/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/PuTTY.php:27
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/elex-embed-youtube-video-gallery/vendor/google/apiclient-services/src/YouTube/ChannelToStoreLinkDetails.php:20
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/elex-embed-youtube-video-gallery/elex-embed-youtube-video-gallery-basic.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\KoblitzPrime' not found in wp-content/plugins/elex-embed-youtube-video-gallery/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/secp256k1.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% 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 require attention:
- Donate link: Invalid URI ("")
elex-embed-youtube-video-gallery/elex-embed-youtube-video-gallery-basic.php 77% from 13 tests
"ELEX Embed YouTube Video Gallery" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path folder was not found ("/lang")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("elex-embed-youtube-video-gallery.php" instead of "elex-embed-youtube-video-gallery-basic.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected137,325 lines of code in 1,119 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 940 | 14,055 | 52,743 | 94,348 |
JSON | 23 | 1 | 0 | 16,757 |
CSS | 11 | 422 | 211 | 13,429 |
Markdown | 30 | 1,823 | 0 | 5,486 |
JavaScript | 24 | 507 | 173 | 5,463 |
Sass | 3 | 70 | 86 | 940 |
SVG | 77 | 0 | 2 | 676 |
YAML | 6 | 25 | 5 | 103 |
XML | 2 | 10 | 4 | 61 |
Python | 1 | 17 | 3 | 49 |
Dockerfile | 1 | 8 | 0 | 10 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 670.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 86 | |
Interfaces | 38 | |
Traits | 13 | |
Classes | 850 | |
▷ Abstract classes | 217 | 25.53% |
▷ Concrete classes | 633 | 74.47% |
▷ Final classes | 52 | 8.21% |
Methods | 5,538 | |
▷ Static methods | 782 | 14.12% |
▷ Public methods | 4,630 | 83.60% |
▷ Protected methods | 394 | 7.11% |
▷ Private methods | 514 | 9.28% |
Functions | 238 | |
▷ Named functions | 77 | 32.35% |
▷ Anonymous functions | 161 | 67.65% |
Constants | 649 | |
▷ Global constants | 91 | 14.02% |
▷ Class constants | 558 | 85.98% |
▷ Public constants | 550 | 98.57% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
25 PNG files occupy 2.08MB with 1.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/logo/Embed YouTube Video gallery Premium.png | 82.93KB | 20.84KB | ▼ 74.87% |
resources/images/logo/ship calculator.png | 102.70KB | 27.53KB | ▼ 73.19% |
resources/images/logo/Stamps.com.png | 145.14KB | 39.72KB | ▼ 72.64% |
resources/icon/right-arrow.png | 0.23KB | 0.16KB | ▼ 31.20% |
resources/images/logo/Youtube optimizer.png | 80.45KB | 19.62KB | ▼ 75.61% |