Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/youtube-comments/google-api-php-client/src/service/Google_Utils.php+58
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.68MB] [CPU: ▼51.20ms] Passed 4 tests
A check of server-side resources used by YouTube Comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.15 | 5.89 ▼30.13 |
Dashboard /wp-admin | 2.33 ▼0.98 | 8.63 ▼40.22 |
Posts /wp-admin/edit.php | 2.33 ▼1.03 | 8.10 ▼38.50 |
Add New Post /wp-admin/post-new.php | 2.33 ▼3.56 | 8.00 ▼95.95 |
Media Library /wp-admin/upload.php | 2.33 ▼0.90 | 8.46 ▼26.02 |
YouTube Comments /wp-admin/options-general.php?page=youtube-comments | 2.33 | 7.02 |
Server storage [IO: ▲1.97MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 81 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for YouTube Comments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.14 ▼1.25 | 4.76 ▲2.81 | 41.27 ▲0.32 |
Dashboard /wp-admin | 2,213 ▲28 | 5.86 ▼0.04 | 97.63 ▼11.32 | 42.59 ▼0.77 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.06 ▲0.05 | 39.89 ▼1.88 | 38.23 ▲2.57 |
Add New Post /wp-admin/post-new.php | 1,530 ▲16 | 22.23 ▲4.73 | 643.28 ▼41.20 | 65.41 ▲6.60 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.15 ▼0.08 | 100.80 ▼8.15 | 48.55 ▲0.48 |
YouTube Comments /wp-admin/options-general.php?page=youtube-comments | 884 | 2.07 | 25.14 | 28.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/youtube-comments/google-api-php-client/src/service/Google_Utils.php+58
Array and string offset access syntax with curly braces is deprecated
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=youtube-comments
- > Deprecated in wp-content/plugins/youtube-comments/google-api-php-client/src/service/Google_Utils.php+58
Array and string offset access syntax with curly braces is deprecated
- > GET request to /wp-admin/options-general.php?page=youtube-comments
- > Deprecated in wp-content/plugins/youtube-comments/class-comments.php+331
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/youtube-comments/template-comments.php
- 63× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/youtube-comments/google-api-php-client/src/contrib/Google_BigqueryService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/youtube-comments/google-api-php-client/src/contrib/Google_LatitudeService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/youtube-comments/google-api-php-client/src/contrib/Google_FusiontablesService.php:27
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/youtube-comments/google-api-php-client/src/contrib/Google_PlusService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_Cache' not found in wp-content/plugins/youtube-comments/google-api-php-client/src/cache/Google_FileCache.php:27
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/youtube-comments/google-api-php-client/src/contrib/Google_AuditService.php:27
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/youtube-comments/google-api-php-client/src/contrib/Google_MirrorService.php:27
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/youtube-comments/google-api-php-client/src/contrib/Google_WebfontsService.php:25
- > PHP Notice
Undefined variable: start_index in wp-content/plugins/youtube-comments/template-comments.php on line 91
- > PHP Warning
require_once(io/Google_HttpRequest.php): failed to open stream: No such file or directory in wp-content/plugins/youtube-comments/google-api-php-client/src/io/Google_IO.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
youtube-comments/youtube-comments.php Passed 13 tests
Analyzing the main PHP file in "YouTube Comments" version 1.2.1
79 characters long description:
This plugin finds YouTube links in post content and imports the video comments.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin41,819 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 74 | 2,052 | 10,530 | 41,622 |
CSS | 1 | 30 | 3 | 137 |
JavaScript | 1 | 10 | 9 | 60 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 1.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 1.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 1,071 | |
▷ Abstract classes | 4 | 0.37% |
▷ Concrete classes | 1,067 | 99.63% |
▷ Final classes | 0 | 0.00% |
Methods | 9,048 | |
▷ Static methods | 20 | 0.22% |
▷ Public methods | 9,021 | 99.70% |
▷ Protected methods | 4 | 0.04% |
▷ Private methods | 23 | 0.25% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 16 | 100.00% |
▷ Public constants | 16 | 100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
profile.png | 0.90KB | 0.62KB | ▼ 31.97% |