Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.18MB] [CPU: ▲4.99ms] Passed 4 tests
This is a short check of server-side resources used by Auto YouTube Importer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.64 ▲1.18 | 48.55 ▲6.65 |
Dashboard /wp-admin | 4.50 ▲1.15 | 56.60 ▼5.35 |
Posts /wp-admin/edit.php | 4.61 ▲1.25 | 58.84 ▲14.19 |
Add New Post /wp-admin/post-new.php | 7.10 ▲1.21 | 106.72 ▲4.45 |
Media Library /wp-admin/upload.php | 4.42 ▲1.19 | 51.50 ▲16.10 |
Add New /wp-admin/post-new.php?post_type=secondline_import_yt | 4.46 | 52.60 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 4.59 | 52.54 |
YouTube Imports /wp-admin/edit.php?post_type=secondline_import_yt | 4.46 | 57.12 |
YouTube Importer /wp-admin/tools.php?page=youtube-importer-secondline | 4.49 | 45.69 |
Server storage [IO: ▲0.62MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 129 new files
Database: 4 new tables, 9 new options
New tables |
---|
wp_actionscheduler_actions |
wp_actionscheduler_claims |
wp_actionscheduler_logs |
wp_actionscheduler_groups |
New WordPress options |
---|
action_scheduler_hybrid_store_demarkation |
db_upgraded |
can_compress_scripts |
schema-ActionScheduler_StoreSchema |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
schema-ActionScheduler_LoggerSchema |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Auto YouTube Importer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.20 ▼1.09 | 1.79 ▲0.09 | 41.67 ▼2.79 |
Dashboard /wp-admin | 2,236 ▲48 | 4.88 ▼0.03 | 110.75 ▼10.04 | 38.79 ▼5.69 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.04 ▼0.01 | 41.07 ▲3.82 | 35.56 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.25 ▲0.10 | 645.48 ▼45.36 | 59.05 ▲7.95 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.26 ▲0.06 | 103.22 ▼0.79 | 44.18 ▲1.53 |
Add New /wp-admin/post-new.php?post_type=secondline_import_yt | 1,431 | 2.54 | 50.76 | 52.26 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,266 | 2.24 | 26.99 | 32.41 |
YouTube Imports /wp-admin/edit.php?post_type=secondline_import_yt | 1,106 | 2.01 | 34.97 | 31.93 |
YouTube Importer /wp-admin/tools.php?page=youtube-importer-secondline | 1,034 | 3.19 | 41.08 | 27.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_actionscheduler_logs
- wp_actionscheduler_claims
- wp_actionscheduler_actions
- wp_actionscheduler_groups
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-posts
- widget_theysaidso_widget
- schema-ActionScheduler_LoggerSchema
- can_compress_scripts
- action_scheduler_hybrid_store_demarkation
- theysaidso_admin_options
- db_upgraded
- schema-ActionScheduler_StoreSchema
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/auto-youtube-importer/templates/_form-field.php
- 49× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/auto-youtube-importer/lib/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php:21
- > PHP Warning
Use of undefined constant YOUTUBE_IMPORTER_SECONDLINE_BASE_FILE_PATH - assumed 'YOUTUBE_IMPORTER_SECONDLINE_BASE_FILE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/auto-youtube-importer/definitions.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/auto-youtube-importer/lib/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_AdminView_Deprecated' not found in wp-content/plugins/auto-youtube-importer/lib/action-scheduler/classes/ActionScheduler_AdminView.php:7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/auto-youtube-importer/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_Schema' not found in wp-content/plugins/auto-youtube-importer/lib/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/auto-youtube-importer/lib/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_Scheduler_command.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/auto-youtube-importer/lib/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php:10
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/auto-youtube-importer/lib/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php:8
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/auto-youtube-importer/lib/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
auto-youtube-importer/auto-youtube-importer.php Passed 13 tests
The main file in "Auto YouTube Importer" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
A simple YouTube video importer plugin with automatic / ongoing YouTube sync features.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin9,258 lines of code in 121 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 116 | 2,264 | 5,776 | 8,686 |
CSS | 1 | 65 | 0 | 312 |
JavaScript | 1 | 47 | 1 | 165 |
Markdown | 2 | 37 | 0 | 90 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 12.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 95 | |
▷ Abstract classes | 15 | 15.79% |
▷ Concrete classes | 80 | 84.21% |
▷ Final classes | 0 | 0.00% |
Methods | 700 | |
▷ Static methods | 111 | 15.86% |
▷ Public methods | 524 | 74.86% |
▷ Protected methods | 139 | 19.86% |
▷ Private methods | 37 | 5.29% |
Functions | 45 | |
▷ Named functions | 32 | 71.11% |
▷ Anonymous functions | 13 | 28.89% |
Constants | 47 | |
▷ Global constants | 14 | 29.79% |
▷ Class constants | 33 | 70.21% |
▷ Public constants | 33 | 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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/loader-icon.png | 5.31KB | 3.70KB | ▼ 30.37% |