Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/youtube-subscriber/youtube-subscriber.php+11
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼59.36ms] Passed 4 tests
Analyzing server-side resources used by YouTube Subscriber
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.37 | 4.67 ▼44.76 |
Dashboard /wp-admin | 2.12 ▼1.19 | 6.25 ▼45.32 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 5.77 ▼49.85 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 6.81 ▼97.51 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.75 ▼32.40 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_youtube_subscriber |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for YouTube Subscriber
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.69 ▲0.34 | 1.85 ▼0.38 | 41.19 ▼7.37 |
Dashboard /wp-admin | 2,195 ▲21 | 5.58 ▼0.06 | 93.35 ▼9.10 | 42.72 ▼2.37 |
Posts /wp-admin/edit.php | 2,097 ▲15 | 2.01 ▲0.01 | 39.47 ▲4.29 | 35.96 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,528 ▼2 | 23.18 ▼0.04 | 621.71 ▼51.50 | 47.06 ▼4.00 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.16 ▼0.05 | 98.26 ▼3.14 | 43.70 ▲1.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/youtube-subscriber/youtube-subscriber.php+11
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_youtube_subscriber
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/youtube-subscriber/shortcodes.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-subscriber/youtube-subscriber.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: youtube, share, subscribing
youtube-subscriber/youtube-subscriber.php Passed 13 tests
Analyzing the main PHP file in "YouTube Subscriber" version 2.0
65 characters long description:
Create widget with form or button to subscribe to YouTube channel
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
Success! There were no dangerous files found in this plugin267 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 20 | 36 | 196 |
JavaScript | 1 | 4 | 0 | 71 |
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.25 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/official-youtube-logo-tile_25x25.png | 0.68KB | 0.69KB | 0.00% |