Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.90ms] Passed 4 tests
Analyzing server-side resources used by Channel Subscribe - YouTube
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 37.91 ▼3.52 |
Dashboard /wp-admin | 3.41 ▲0.06 | 46.23 ▼13.14 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.65 ▲7.59 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 94.44 ▼8.70 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 34.18 ▼2.24 |
Channel Subscribe /wp-admin/options-general.php?page=AV_YT_plugin_options | 3.37 | 32.96 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 84 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
AV_YT_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_av_subscribe__channel_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Channel Subscribe - YouTube
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲196 | 13.81 ▼0.64 | 9.09 ▲6.96 | 39.21 ▼4.09 |
Dashboard /wp-admin | 2,213 ▲25 | 4.89 ▼0.02 | 98.51 ▼14.25 | 39.23 ▼6.66 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.02 | 41.76 ▲6.28 | 35.02 ▼2.21 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.24 ▲0.09 | 653.21 ▼5.78 | 53.33 ▼1.98 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.31 ▲0.09 | 101.94 ▼4.60 | 43.73 ▼0.70 |
Channel Subscribe /wp-admin/options-general.php?page=AV_YT_plugin_options | 1,930 | 15.36 | 407.12 | 81.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- AV_YT_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_av_subscribe__channel_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/yt-channel-subscribe/trunk/includes/admin/tpl/av-plugins-main.php
- > /wp-content/plugins/yt-channel-subscribe/includes/admin/tpl/av-plugins-main.php
- 20× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: is_dismissible in wp-content/plugins/yt-channel-subscribe/trunk/includes/admin/tpl/admin_notice.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/yt-channel-subscribe/trunk/includes/front/tpl/yt-subscribe.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/yt-channel-subscribe/trunk/index.php:35
- > PHP Notice
Undefined variable: notice_type in wp-content/plugins/yt-channel-subscribe/includes/admin/tpl/admin_notice.php on line 6
- > PHP Notice
Undefined variable: is_dismissible in wp-content/plugins/yt-channel-subscribe/includes/admin/tpl/admin_notice.php on line 6
- > PHP Notice
Undefined variable: notice_type in wp-content/plugins/yt-channel-subscribe/trunk/includes/admin/tpl/admin_notice.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/yt-channel-subscribe/includes/admin/tpl/admin_notice.php:7
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/yt-channel-subscribe/includes/admin/tpl/av-plugins-main.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/yt-channel-subscribe/trunk/includes/widgets/tpl/sidebar-form.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/yt-channel-subscribe/index.php:35
- > PHP Notice
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)
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: youtube subscribe, youtube channel, video marketing, youtube
yt-channel-subscribe/index.php 69% from 13 tests
"Channel Subscribe - YouTube" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/plugin/languages")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("yt-channel-subscribe.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 178 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,758 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 242 | 248 | 815 |
SVG | 7 | 7 | 7 | 729 |
CSS | 2 | 0 | 4 | 141 |
JavaScript | 3 | 27 | 10 | 73 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 46 | |
▷ Named functions | 46 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/assets/images/av_icon_16.png | 0.60KB | 0.77KB | 0.00% |
trunk/assets/images/av_icon_128.png | 8.71KB | 4.30KB | ▼ 50.68% |
assets/images/av_icon_256.png | 8.87KB | 4.36KB | ▼ 50.88% |
assets/images/av_icon_64.png | 2.30KB | 1.94KB | ▼ 15.68% |
assets/images/cover.png | 19.61KB | 8.12KB | ▼ 58.60% |