Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5747
Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.11ms] Passed 4 tests
This is a short check of server-side resources used by Enhanced YouTube Shortcode
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.41 ▲4.60 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.44 ▼3.64 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.39 ▼2.66 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.10 ▼14.75 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.41 ▲5.25 |
Enhanced YouTube /wp-admin/options-general.php?page=enhanced-youtube-shortcode/enhanced-youtube-shortcode.php | 3.19 | 31.50 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 17 new options
New WordPress options |
---|
pxsol_youtube_hd |
pxsol_youtube_showinfo |
pxsol_youtube_width |
pxsol_youtube_controls |
pxsol_youtube_related |
widget_recent-posts |
pxsol_youtube_height |
pxsol_youtube_theme |
theysaidso_admin_options |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Enhanced YouTube Shortcode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.39 ▼0.39 | 1.93 ▲0.18 | 42.04 ▲0.45 |
Dashboard /wp-admin | 2,205 ▲24 | 5.77 ▲0.04 | 97.82 ▼6.68 | 41.91 ▼2.60 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.11 ▲0.05 | 39.57 ▼1.48 | 38.21 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,535 ▼5 | 23.22 ▲4.97 | 697.94 ▲51.38 | 42.43 ▼17.96 |
Media Library /wp-admin/upload.php | 1,410 ▲13 | 4.21 ▲0.01 | 103.40 ▲2.03 | 44.52 ▼3.46 |
Enhanced YouTube /wp-admin/options-general.php?page=enhanced-youtube-shortcode/enhanced-youtube-shortcode.php | 1,079 | 1.76 | 28.95 | 81.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=enhanced-youtube-shortcode/enhanced-youtube-shortcode.php
- > Notice in wp-content/plugins/enhanced-youtube-shortcode/enhanced-youtube-shortcode.php+51
Undefined index: submit
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 fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/enhanced-youtube-shortcode/enhanced-youtube-shortcode.php:237
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (**Plugin admin page** with the options panel (***top***) & the reminder about how to use the shortcode (***bottom***).) image required
enhanced-youtube-shortcode/enhanced-youtube-shortcode.php 92% from 13 tests
Analyzing the main PHP file in "Enhanced YouTube Shortcode" version 2.0.1
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 337 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected249 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 2 | 9 | 234 |
JavaScript | 1 | 0 | 9 | 14 |
CSS | 1 | 0 | 9 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 6.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
11 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pxsol-toggle-dark.png | 4.88KB | 2.91KB | ▼ 40.32% |
images/pxsol-toggle-yes.png | 4.63KB | 2.88KB | ▼ 37.85% |
images/gplv3-88x31.png | 2.60KB | 2.53KB | ▼ 2.96% |
images/pxsol-toggle-light.png | 4.79KB | 2.88KB | ▼ 39.80% |
images/pxsol-saved-no.png | 2.72KB | 2.06KB | ▼ 24.40% |