Benchmarks
Plugin footprint 48% 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.84MB] [CPU: ▼37.49ms] Passed 4 tests
This is a short check of server-side resources used by Checker youtube videos
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 44.54 ▼3.60 |
Dashboard /wp-admin | 3.12 ▼0.23 | 27.97 ▼41.35 |
Posts /wp-admin/edit.php | 3.12 ▼0.24 | 30.18 ▼22.57 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 26.77 ▼82.44 |
Media Library /wp-admin/upload.php | 3.12 ▼0.11 | 34.93 ▼3.07 |
Youtube checker /wp-admin/admin.php?page=youtube-checker | 3.12 | 26.15 |
Available videos0 /wp-admin/admin.php?page=youtube-checker-all-videos | 3.12 | 28.58 |
Settings /wp-admin/admin.php?page=youtube-checker-settings | 3.12 | 24.53 |
Unavailable videos0 /wp-admin/admin.php?page=youtube-checker-unavailable-videos | 3.12 | 28.74 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_youtube_check_history |
wp_posts_with_videos |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Checker youtube videos
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 14.28 ▼0.07 | 2.62 ▲0.75 | 44.19 ▲0.65 |
Dashboard /wp-admin | 2,246 ▲66 | 5.59 ▼0.07 | 92.48 ▼4.65 | 42.55 ▲2.55 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 1.98 ▲0.01 | 41.41 ▲2.93 | 37.06 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,570 ▲44 | 23.80 ▲0.87 | 654.11 ▲9.59 | 52.94 ▲0.07 |
Media Library /wp-admin/upload.php | 1,448 ▲45 | 4.21 ▲0.02 | 98.68 ▼3.13 | 44.20 ▼2.17 |
Youtube checker /wp-admin/admin.php?page=youtube-checker | 830 | 2.00 | 24.41 | 27.23 |
Available videos0 /wp-admin/admin.php?page=youtube-checker-all-videos | 832 | 2.02 | 23.97 | 28.20 |
Settings /wp-admin/admin.php?page=youtube-checker-settings | 887 | 2.01 | 26.59 | 27.64 |
Unavailable videos0 /wp-admin/admin.php?page=youtube-checker-unavailable-videos | 832 | 2.03 | 24.06 | 26.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_youtube_check_history
- wp_posts_with_videos
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=youtube-checker-unavailable-videos
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/admin.php?page=youtube-checker
- > Notice in wp-content/plugins/check-youtube-videos/class-pages.php+7
Undefined index: youtube_checker_action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=youtube-checker-unavailable-videos
- > Notice in wp-content/plugins/check-youtube-videos/class-database.php+136
Undefined index: pagination
- > GET request to /wp-admin/admin.php?page=youtube-checker-settings
- > Notice in wp-content/plugins/check-youtube-videos/templates/settings.php+8
Undefined index: is_wrong_api_key
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PetrovEgor\\ContentSources\\Content_Source_Abstract' not found in wp-content/plugins/check-youtube-videos/ContentSources/class-woo-commerce.php:5
- > PHP Fatal error
Uncaught Error: Class 'PetrovEgor\\templates\\Template' not found in wp-content/plugins/check-youtube-videos/templates/index-page.php:3
- > PHP Fatal error
Uncaught Error: Class 'PetrovEgor\\YoutubePlugins\\Youtube_Plugin_Abstract' not found in wp-content/plugins/check-youtube-videos/YoutubePlugins/class-youtube-widget-responsive.php:14
- > PHP Fatal error
Uncaught Error: Class 'PetrovEgor\\templates\\Template' not found in wp-content/plugins/check-youtube-videos/templates/unavailable-videos.php:2
- > PHP Fatal error
Uncaught Error: Class 'PetrovEgor\\ContentSources\\Content_Source_Abstract' not found in wp-content/plugins/check-youtube-videos/ContentSources/class-post.php:5
- > PHP Fatal error
Uncaught Error: Class 'PetrovEgor\\YoutubePlugins\\Youtube_Plugin_Abstract' not found in wp-content/plugins/check-youtube-videos/YoutubePlugins/class-youtube.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/check-youtube-videos/checker-youtube-videos.php:32
- > PHP Fatal error
Uncaught Error: Class 'PetrovEgor\\templates\\Template' not found in wp-content/plugins/check-youtube-videos/templates/available-videos.php:2
- > PHP Fatal error
Uncaught Error: Class 'PetrovEgor\\Singleton_Abstract' not found in wp-content/plugins/check-youtube-videos/YoutubePlugins/class-youtube-plugin-abstract.php:9
- > PHP Fatal error
Uncaught Error: Class 'PetrovEgor\\Singleton_Abstract' not found in wp-content/plugins/check-youtube-videos/ContentSources/class-content-source-abstract.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: youtube, broken, links
check-youtube-videos/checker-youtube-videos.php 77% from 13 tests
The entry point to "Checker youtube videos" version 1.0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- 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
- Description: Please don't use more than 140 characters for the plugin description (currently 222 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("check-youtube-videos.php" instead of "checker-youtube-videos.php")
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
There were no executable files found in this plugin1,119 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 158 | 147 | 1,116 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 3 | 18.75% |
▷ Concrete classes | 13 | 81.25% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 50 | 70.42% |
▷ Public methods | 68 | 95.77% |
▷ Protected methods | 1 | 1.41% |
▷ Private methods | 2 | 2.82% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin