Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.47MB] [CPU: ▼347.17ms] Passed 4 tests
Server-side resources used by Import Youtube Videos
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▼0.54 | 16.43 ▼33.82 |
Dashboard /wp-admin | 2.89 ▼0.51 | 13.99 ▼19.12 |
Posts /wp-admin/edit.php | 2.90 ▼0.74 | 15.45 ▼22.37 |
Add New Post /wp-admin/post-new.php | 2.89 ▼4.08 | 14.08 ▼1,313.37 |
Media Library /wp-admin/upload.php | 2.89 ▼0.40 | 13.14 ▼10.35 |
Add New /wp-admin/post-new.php?post_type=videos | 2.90 | 14.10 |
All Video /wp-admin/edit.php?post_type=videos | 2.90 | 13.67 |
Import Youtube /wp-admin/tools.php?page=youtube-importer-import_youtube | 2.90 | 13.77 |
Categories /wp-admin/edit-tags.php?taxonomy=categories&post_type=videos | 2.90 | 14.74 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Import Youtube Videos
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,821 ▲67 | 15.98 ▲0.44 | 7.26 ▲1.57 | 2.13 ▼0.41 |
Dashboard /wp-admin | 2,942 ▲88 | 6.20 ▲0.04 | 116.76 ▼11.63 | 155.30 ▼10.83 |
Posts /wp-admin/edit.php | 2,747 ▲56 | 3.25 ▲0.01 | 62.65 ▲0.04 | 142.71 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,697 ▲36 | 16.26 ▲0.36 | 403.97 ▼6.95 | 154.64 ▼10.47 |
Media Library /wp-admin/upload.php | 1,753 ▲55 | 5.56 ▲0.09 | 135.82 ▼1.70 | 184.23 ▼0.96 |
Add New /wp-admin/post-new.php?post_type=videos | 9,427 | 18.94 | 565.56 | 150.17 |
All Video /wp-admin/edit.php?post_type=videos | 1,474 | 3.18 | 58.06 | 108.62 |
Import Youtube /wp-admin/tools.php?page=youtube-importer-import_youtube | 1,350 | 4.76 | 70.82 | 128.72 |
Categories /wp-admin/edit-tags.php?taxonomy=categories&post_type=videos | 1,677 | 2.82 | 54.39 | 108.57 |
Uninstaller [IO: ▲0.17MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following itemsZombie WordPress options detected upon uninstall: 1 option
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5768
register_post_type was called incorrectly. Post type names must be between 1 and 20 characters in length. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.)
- The plugin did not uninstall correctly, leaving 30 files (0.17MB) in the plugin directory
- (new file) app/Hooks.php
- (new file) app/Helper/Importer.php
- (new file) app/PostTypes.php
- (new file) app/AdminMenu.php
- (new file) app/AdminAssets.php
- (new file) app/Helper/FeedForm.php
- (new file) app/RestAPI.php
- (new file) app/Helper/Importer/FeedItem.php
- (new file) app/Helper/Youtube.php
- (new file) app/Controller.php
- ...
- recovery_mode_email_last_sent
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 16 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=categories&post_type=videos
- > User notice in wp-includes/functions.php+5768
register_post_type was called incorrectly. Post type names must be between 1 and 20 characters in length. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.)
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/import-youtube-videos/templates/_form-field.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/import-youtube-videos/templates/tools.php:2
- > PHP Fatal error
Uncaught Error: Class 'YoutubeImporterImportyoutube\\Settings' not found in wp-content/plugins/import-youtube-videos/templates/settings.php:13
- > PHP Warning
Use of undefined constant YOUTUBE_IMPORTER_IMPORTYOUTUBE_BASE_FILE_PATH - assumed 'YOUTUBE_IMPORTER_IMPORTYOUTUBE_BASE_FILE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/import-youtube-videos/definitions.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'YoutubeImporterImportyoutube\\Helper\\FeedForm' not found in wp-content/plugins/import-youtube-videos/templates/importer-form.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Admin screenshot to show setting option where you can insert your api key.), #3 (Admin screenshot to show list of video that you view after click on preview you can select video that you want to import from here .)
- Screenshots: Add a description for screenshot #0 in import-youtube-videos/assets to your readme.txt
import-youtube-videos/import-youtube-videos.php 92% from 13 tests
The principal PHP file in "Import Youtube Videos" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin2,064 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 506 | 102 | 1,455 |
CSS | 1 | 73 | 0 | 400 |
JavaScript | 1 | 57 | 13 | 209 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 14.29 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 28 | 54.90% |
▷ Public methods | 48 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.88% |
Functions | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
Constants | 14 | |
▷ Global constants | 14 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/deleteicon.png | 2.25KB | 2.03KB | ▼ 9.75% |
assets/close.png | 0.86KB | 0.72KB | ▼ 16.61% |
assets/loader-icon.png | 3.75KB | 1.35KB | ▼ 63.86% |