Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.24ms] Passed 4 tests
Analyzing server-side resources used by Awesome Youtube Subscribe
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.30 ▼3.02 |
Dashboard /wp-admin | 3.37 ▲0.02 | 50.34 ▼11.85 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.52 ▼6.41 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 82.38 ▼15.66 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.26 ▲4.73 |
Awesome YouTube Subscribe /wp-admin/options-general.php?page=sm-youtube-subscribe | 3.26 | 32.82 |
Server storage [IO: ▲0.02MB] [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 |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_smyoutubesubscribe_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Awesome Youtube Subscribe
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.62 ▼0.98 | 1.69 ▲0.03 | 43.03 ▼0.12 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▲0.07 | 111.04 ▲8.92 | 42.94 ▲0.03 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.05 ▲0.06 | 35.12 ▼0.52 | 31.37 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 23.30 ▲0.04 | 674.63 ▲3.69 | 56.73 ▲5.33 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.02 | 99.72 ▲0.21 | 46.13 ▲4.19 |
Awesome YouTube Subscribe /wp-admin/options-general.php?page=sm-youtube-subscribe | 830 | 2.03 | 26.65 | 33.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_smyoutubesubscribe_widget
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/awsome-youtube-subscribe/easy-youtube-subscribe.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/awsome-youtube-subscribe/includes/sm-youtube-subscription-shortcode.php:216
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== awsome-youtube-subscribe ===
)
awsome-youtube-subscribe/easy-youtube-subscribe.php 92% from 13 tests
The entry point to "Awesome Youtube Subscribe" version 2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("awsome-youtube-subscribe.php" instead of "easy-youtube-subscribe.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected238 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 56 | 65 | 238 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin