Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/video-sidebar-widget/widget_url.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; Video_Widget has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼60.27ms] Passed 4 tests
Server-side resources used by Video Url
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 6.33 ▼44.72 |
Dashboard /wp-admin | 2.11 ▼1.20 | 5.93 ▼46.75 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.93 ▼48.76 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.56 ▼100.85 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 6.64 ▼34.96 |
Edit Page /wp-admin/admin.php?page=edit-page | 2.11 | 6.55 |
Delete Page /wp-admin/admin.php?page=delete-page | 2.11 | 5.50 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_videourl |
wp_newfield |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_video-widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Video Url
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲185 | 13.83 ▼0.72 | 25.57 ▲23.75 | 42.46 ▼2.09 |
Dashboard /wp-admin | 2,211 ▲31 | 5.51 ▼0.12 | 98.71 ▲13.14 | 43.08 ▼1.38 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 1.97 ▲0.00 | 35.52 ▼9.53 | 34.08 ▼6.98 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 23.35 ▲0.16 | 656.70 ▼48.05 | 61.55 ▼5.58 |
Media Library /wp-admin/upload.php | 1,413 ▲10 | 4.12 ▼0.07 | 100.24 ▼4.09 | 46.20 ▲2.23 |
Edit Page /wp-admin/admin.php?page=edit-page | 785 | 2.02 | 27.98 | 27.97 |
Delete Page /wp-admin/admin.php?page=delete-page | 799 | 2.03 | 25.28 | 22.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/video-sidebar-widget/widget_url.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; Video_Widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_video-widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=delete-page
- > Deprecated in wp-content/plugins/video-sidebar-widget/widget_url.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; Video_Widget has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=delete-page
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Video_Widget is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=delete-page
- > Notice in wp-content/plugins/video-sidebar-widget/delete.php+4
Undefined index: id
- > GET request to /wp-admin/admin.php?page=edit-page
- > Notice in wp-content/plugins/video-sidebar-widget/video_edit.php+6
Constant PRO_TABLE_PREFIX already defined
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-sidebar-widget/widget_url.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/video-sidebar-widget/videourl.php:13
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/video-sidebar-widget/videourl.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
video-sidebar-widget/videourl.php 92% from 13 tests
The entry point to "Video Url" version 1.0.0.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("video-sidebar-widget.php" instead of "videourl.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin242 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 49 | 19 | 242 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
3 PNG files occupy 0.20MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 50.42KB | 16.38KB | ▼ 67.51% |
screenshot-3.png | 48.74KB | 15.61KB | ▼ 67.97% |
screenshot-2.png | 102.43KB | 40.03KB | ▼ 60.92% |