Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.13ms] Passed 4 tests
An overview of server-side resources used by YouTube Subscribe
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.87 ▼5.82 |
Dashboard /wp-admin | 3.37 ▲0.07 | 43.33 ▼9.62 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 47.91 ▼2.24 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.03 ▼10.83 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.53 ▲2.11 |
SM YouTube Subscribe /wp-admin/options-general.php?page=sm-youtube-subscribe | 3.26 | 30.52 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_smyoutubesubscribe_widget |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
YouTube Subscribe: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.67 ▼0.75 | 1.51 ▼0.26 | 43.99 ▼0.03 |
Dashboard /wp-admin | 2,207 ▲19 | 5.90 ▲0.99 | 100.43 ▼20.09 | 39.32 ▼10.24 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▼0.05 | 40.29 ▲5.50 | 34.17 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.30 ▲5.71 | 622.42 ▲3.76 | 51.42 ▲5.39 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.21 ▼0.06 | 100.07 ▲0.12 | 41.68 ▼2.06 |
SM YouTube Subscribe /wp-admin/options-general.php?page=sm-youtube-subscribe | 830 | 2.02 | 23.91 | 29.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_smyoutubesubscribe_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-youtube-subscribe/easy-youtube-subscribe.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/easy-youtube-subscribe/includes/sm-youtube-subscription-shortcode.php:216
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: subscribe, widget, youtube, share, shortcode
easy-youtube-subscribe/easy-youtube-subscribe.php Passed 13 tests
"YouTube Subscribe" version 3.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
Youtube channel subscribe plugin for wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin254 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 55 | 67 | 254 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin