Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/smart-youtube/smartyoutube.php+1418
Methods with the same name as their class will not be constructors in a future version of PHP; SmartYouTube_Widget has a deprecated constructor
Server metrics [RAM: ▼1.19MB] [CPU: ▼202.54ms] Passed 4 tests
Server-side resources used by Smart YouTube PRO
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.44 ▼0.40 | 6.73 ▼32.01 |
Dashboard /wp-admin | 2.45 ▼0.60 | 11.07 ▼42.92 |
Posts /wp-admin/edit.php | 2.46 ▼0.65 | 8.68 ▼45.72 |
Add New Post /wp-admin/post-new.php | 2.45 ▼2.98 | 6.84 ▼688.96 |
Media Library /wp-admin/upload.php | 2.45 ▼0.55 | 6.35 ▼32.57 |
Settings /wp-admin/admin.php?page=syt_settings | 2.46 | 7.62 |
Colorbox Options /wp-admin/admin.php?page=syt_colorbox_options | 2.46 | 6.61 |
About /wp-admin/admin.php?page=syt_about | 2.46 | 7.03 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 162 new files
Database: no new tables, 2 new options
New WordPress options |
---|
smart_youtube_pro |
widget_smart-youtube |
Browser metrics Passed 4 tests
Smart YouTube PRO: 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 / | 3,722 ▲150 | 15.84 ▲0.57 | 14.45 ▲2.15 | 50.27 ▼8.51 |
Dashboard /wp-admin | 3,004 ▲73 | 5.92 ▼0.01 | 158.17 ▼13.05 | 136.59 ▲23.86 |
Posts /wp-admin/edit.php | 2,798 ▲62 | 2.70 ▼0.01 | 69.93 ▼9.79 | 93.62 ▼10.05 |
Add New Post /wp-admin/post-new.php | 1,714 ▲133 | 18.73 ▲1.08 | 445.11 ▼27.59 | 120.08 ▼21.40 |
Media Library /wp-admin/upload.php | 1,792 ▼15 | 5.01 ▼0.05 | 154.35 ▼22.47 | 140.60 ▲12.65 |
Settings /wp-admin/admin.php?page=syt_settings | 1,957 | 2.37 | 69.27 | 116.20 |
Colorbox Options /wp-admin/admin.php?page=syt_colorbox_options | 1,242 | 2.10 | 61.47 | 92.30 |
About /wp-admin/admin.php?page=syt_about | 1,145 | 2.09 | 68.61 | 86.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/smart-youtube/smartyoutube.php+1418
Methods with the same name as their class will not be constructors in a future version of PHP; SmartYouTube_Widget has a deprecated constructor
- The uninstall procedure has failed, leaving 2 options in the database
- widget_smart-youtube
- smart_youtube_pro
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=syt_about
- > Deprecated in wp-content/plugins/smart-youtube/smartyoutube.php+1418
Methods with the same name as their class will not be constructors in a future version of PHP; SmartYouTube_Widget has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=syt_about
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in SmartYouTube_Widget is deprecated since version 4.3.0! Use __construct() instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=syt_about
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=syt_about
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% 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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/smart-youtube/smartyoutube.php:33
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=syt_settings
- > Javascript (severe) in unknown
/wp-content/plugins/smart-youtube//yt.js 91:36 Uncaught TypeError: Cannot read properties of null (reading 'checked')
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugin Admin Panel), #2 (Plugin in action in your RSS feed)
- Tags: You are using too many tags: 12 tag instead of maximum 10
smart-youtube/smartyoutube.php 92% from 13 tests
The principal PHP file in "Smart YouTube PRO" v. 4.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smart-youtube.php" instead of "smartyoutube.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,594 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 174 | 85 | 1,275 |
JavaScript | 3 | 184 | 72 | 849 |
CSS | 10 | 34 | 98 | 470 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.73 |
Average class complexity | 207.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 414.00 |
Average method complexity | 16.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.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 | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
102 compressed PNG files occupy 0.19MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/theme8/images/internet_explorer/borderTopCenter.png | 0.17KB | 0.15KB | ▼ 10.40% |
themes/theme9/images/controls.png | 0.56KB | 0.57KB | 0.00% |
themes/theme4/images/internet_explorer/borderMiddleLeft.png | 0.15KB | 0.16KB | 0.00% |
themes/theme10/images/next.png | 1.47KB | 1.53KB | 0.00% |
themes/theme1/images/internet_explorer/borderBottomCenter.png | 0.11KB | 0.10KB | ▼ 8.11% |