Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.04ms] Passed 4 tests
Analyzing server-side resources used by Import YouTube videos as WP Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.91 ▼1.56 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.44 ▼4.25 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 51.02 ▼2.65 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.57 ▼3.70 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.93 ▼0.61 |
Youtube importer /wp-admin/options-general.php?page=yt-to-posts | 3.30 | 36.27 |
Server storage [IO: ▲3.62MB] [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: 665 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Import YouTube videos as WP Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 13.19 ▼0.83 | 4.75 ▲3.02 | 40.23 ▼5.64 |
Dashboard /wp-admin | 2,224 ▲36 | 4.85 ▼1.04 | 108.79 ▼2.77 | 43.44 ▼2.50 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 2.07 ▲0.07 | 40.54 ▼0.20 | 37.67 ▲0.85 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 17.54 ▼5.69 | 698.98 ▲31.22 | 54.67 ▲0.56 |
Media Library /wp-admin/upload.php | 1,409 ▲18 | 4.22 ▲0.01 | 96.69 ▼6.13 | 41.76 ▼0.86 |
Youtube importer /wp-admin/options-general.php?page=yt-to-posts | 946 | 2.03 | 21.46 | 28.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
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 | 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
- 454× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/import-youtube-videos-as-wp-post/vendor/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/import-youtube-videos-as-wp-post/vendor/monolog/monolog/tests/Monolog/Formatter/NormalizerFormatterTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/import-youtube-videos-as-wp-post/vendor/google/apiclient-services/src/Google/Service/YouTube/IngestionInfo.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/import-youtube-videos-as-wp-post/vendor/google/apiclient-services/src/Google/Service/YouTube/VideoGetRatingResponse.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/import-youtube-videos-as-wp-post/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/import-youtube-videos-as-wp-post/vendor/google/apiclient-services/src/Google/Service/YouTube/LiveChatBanSnippet.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/import-youtube-videos-as-wp-post/vendor/monolog/monolog/tests/Monolog/Formatter/MongoDBFormatterTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/import-youtube-videos-as-wp-post/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/import-youtube-videos-as-wp-post/vendor/google/apiclient-services/src/Google/Service/YouTube/LocalizedString.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_Resource' not found in wp-content/plugins/import-youtube-videos-as-wp-post/vendor/google/apiclient-services/src/Google/Service/YouTube/Resource/I18nRegions.php:26
- > 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 issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== import-youtube-videos-as-wp-post ===
)
import-youtube-videos-as-wp-post/import-youtube-videos-as-wp-post.php Passed 13 tests
This is the main PHP file of "Import YouTube videos as WP Posts" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
127 characters long description:
Get a video list from a request to Youtube (free query, playlist ID, channel ID) and add their content to your own Wordpress :)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin66,649 lines of code in 632 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 577 | 9,751 | 32,788 | 60,080 |
Markdown | 29 | 1,427 | 0 | 4,637 |
JSON | 16 | 0 | 0 | 1,181 |
PO File | 2 | 128 | 190 | 375 |
JavaScript | 1 | 38 | 1 | 227 |
CSS | 1 | 5 | 3 | 61 |
XML | 3 | 3 | 0 | 43 |
YAML | 2 | 9 | 0 | 36 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 592.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 25 | |
Traits | 5 | |
Classes | 570 | |
▷ Abstract classes | 10 | 1.75% |
▷ Concrete classes | 560 | 98.25% |
▷ Final classes | 9 | 1.61% |
Methods | 4,835 | |
▷ Static methods | 132 | 2.73% |
▷ Public methods | 4,383 | 90.65% |
▷ Protected methods | 204 | 4.22% |
▷ Private methods | 248 | 5.13% |
Functions | 256 | |
▷ Named functions | 84 | 32.81% |
▷ Anonymous functions | 172 | 67.19% |
Constants | 322 | |
▷ Global constants | 21 | 6.52% |
▷ Class constants | 301 | 93.48% |
▷ Public constants | 301 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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 |
img/logo-t2p.png | 3.29KB | 1.56KB | ▼ 52.74% |