Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.43ms] Passed 4 tests
A check of server-side resources used by TomParisDE YouTube Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.19 ▲2.93 |
Dashboard /wp-admin | 3.38 ▲0.08 | 49.72 ▲1.53 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 46.11 ▼5.41 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 94.79 ▼4.77 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.98 ▲2.98 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_tp_ytw_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
TomParisDE YouTube Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 14.68 ▲0.33 | 1.79 ▼0.16 | 44.68 ▲4.57 |
Dashboard /wp-admin | 2,200 ▲12 | 5.81 ▲0.90 | 102.64 ▲1.80 | 42.88 ▲3.21 |
Posts /wp-admin/edit.php | 2,089 ▲21 | 1.97 ▼0.06 | 35.76 ▲1.68 | 34.45 ▲1.95 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.62 ▲0.77 | 654.78 ▲32.43 | 49.51 ▼4.27 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.30 ▲0.09 | 96.89 ▼4.90 | 41.79 ▼3.17 |
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
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_tp_ytw_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: youtube_channel_id in wp-content/plugins/tomparis-youtube-widget/views/youtube.php on line 25
- > PHP Notice
Undefined variable: youtube_channel_id in wp-content/plugins/tomparis-youtube-widget/views/youtube.php on line 22
- > PHP Notice
Undefined variable: youtube_channel_name in wp-content/plugins/tomparis-youtube-widget/views/youtube.php on line 22
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tomparis-youtube-widget/includes/widget.php:6
- > PHP Notice
Undefined variable: youtube_channel_name in wp-content/plugins/tomparis-youtube-widget/views/youtube.php on line 18
- > PHP Notice
Undefined variable: youtube_channel_name in wp-content/plugins/tomparis-youtube-widget/views/youtube.php on line 22
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/tomparis-youtube-widget/views/youtube.php on line 19
- > PHP Notice
Undefined variable: banner_postion in wp-content/plugins/tomparis-youtube-widget/views/youtube.php on line 33
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tomparis-youtube-widget/views/youtube.php:42
- > PHP Notice
Undefined variable: youtube_snippet in wp-content/plugins/tomparis-youtube-widget/views/youtube.php on line 19
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 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
6 plugin tags: api, youtube, youtube widget, tomparis, tomparisde...
tomparis-youtube-widget/tp-youtube-widget.php 85% from 13 tests
The principal PHP file in "TomParisDE YouTube Widget" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("tomparis-youtube-widget.php" instead of "tp-youtube-widget.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin451 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 110 | 127 | 320 |
CSS | 1 | 27 | 0 | 131 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 10 | |
▷ Static methods | 3 | 30.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 20.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/youtube-logo-light.png | 10.10KB | 3.31KB | ▼ 67.27% |
public/img/youtube-logo-light-original.png | 6.92KB | 3.76KB | ▼ 45.63% |