Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.11ms] Passed 4 tests
An overview of server-side resources used by YouTube quick shortcode plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.01 ▲0.02 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.97 ▼2.33 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.56 ▼0.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.57 ▼17.15 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.84 ▲0.53 |
YouTube Quick Shortcode Plugin /wp-admin/options-general.php?page=youtube_quick_shortcode | 3.24 | 31.27 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
YouTube quick shortcode plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.42 ▼0.19 | 1.89 ▲0.03 | 47.41 ▲1.49 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▼0.04 | 98.33 ▲8.94 | 41.29 ▼6.70 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 1.99 ▲0.01 | 34.06 ▼1.87 | 33.35 ▼9.16 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.12 ▼0.09 | 715.74 ▲54.56 | 59.10 ▲10.69 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.28 ▲0.11 | 110.46 ▼6.26 | 47.19 ▼0.54 |
YouTube Quick Shortcode Plugin /wp-admin/options-general.php?page=youtube_quick_shortcode | 969 | 1.99 | 23.34 | 23.67 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=youtube_quick_shortcode
- > Notice in wp-content/plugins/youtube-quick-shortcode/ytube-admin.php+41
Undefined variable: youtube_quick_shortcode_plugin_options_control
- > GET request to /wp-admin/options-general.php?page=youtube_quick_shortcode
- > Notice in wp-content/plugins/youtube-quick-shortcode/ytube-admin.php+52
Undefined variable: youtube_quick_shortcode_plugin_options_related
- > GET request to /wp-admin/options-general.php?page=youtube_quick_shortcode
- > Notice in wp-content/plugins/youtube-quick-shortcode/ytube-admin.php+63
Undefined variable: youtube_quick_shortcode_plugin_options_info
- > GET request to /wp-admin/options-general.php?page=youtube_quick_shortcode
- > Notice in wp-content/plugins/youtube-quick-shortcode/ytube-admin.php+74
Undefined variable: youtube_quick_shortcode_plugin_options_size
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/youtube-quick-shortcode/ytube-admin.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: youtube_quick_shortcode_plugin_options_info in wp-content/plugins/youtube-quick-shortcode/ytube-admin.php on line 63
- > PHP Notice
Undefined variable: youtube_quick_shortcode_plugin_options_size in wp-content/plugins/youtube-quick-shortcode/ytube-admin.php on line 74
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/youtube-quick-shortcode/ytube.php:13
- > PHP Notice
Undefined variable: youtube_quick_shortcode_plugin_options_related in wp-content/plugins/youtube-quick-shortcode/ytube-admin.php on line 52
- > PHP Notice
Undefined variable: youtube_quick_shortcode_plugin_options_control in wp-content/plugins/youtube-quick-shortcode/ytube-admin.php on line 41
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: embed, youtube, shortcode, quick
youtube-quick-shortcode/ytube.php 92% from 13 tests
"YouTube quick shortcode plugin" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("youtube-quick-shortcode.php" instead of "ytube.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin170 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 41 | 29 | 159 |
JavaScript | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin