Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.56MB] [CPU: ▲2.07ms] Passed 4 tests
A check of server-side resources used by MKS Video Embed With Shortcode
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 45.11 ▲3.73 |
Dashboard /wp-admin | 3.90 ▲0.60 | 52.88 ▼4.89 |
Posts /wp-admin/edit.php | 3.95 ▲0.60 | 53.78 ▲5.57 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.54 | 101.13 ▲9.04 |
Media Library /wp-admin/upload.php | 3.76 ▲0.53 | 41.72 ▲3.88 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 115 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by MKS Video Embed With Shortcode
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲109 | 13.23 ▼1.22 | 5.48 ▲3.54 | 42.98 ▼3.28 |
Dashboard /wp-admin | 2,245 ▲42 | 4.88 ▲0.01 | 109.08 ▼4.94 | 40.03 ▼6.22 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.08 ▼0.08 | 39.71 ▲1.86 | 31.01 ▼5.75 |
Add New Post /wp-admin/post-new.php | 1,568 ▲23 | 22.99 ▼0.40 | 616.04 ▼47.44 | 87.85 ▲29.76 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.35 ▲0.16 | 99.91 ▼23.31 | 45.72 ▼4.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/mks-video-embed-with-shortcode/include/mks_bsw_help.php
- > /wp-content/plugins/mks-video-embed-with-shortcode/include/mks_components/mks_factory/views/action_message.php
- > /wp-content/plugins/mks-video-embed-with-shortcode/include/mks_components/mks_shortcode/libs/recaptcha-php-1.11/example-mailhide.php
- > /wp-content/plugins/mks-video-embed-with-shortcode/include/mks_components/mks_shortcode/libs/recaptcha-php-1.11/example-captcha.php
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MKS_Component' not found in wp-content/plugins/mks-video-embed-with-shortcode/include/mks_components/mks_form/mks_form.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mks-video-embed-with-shortcode/include/mks_bsw_settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mks-video-embed-with-shortcode/include/mks_labels/mks_bsw_factory_object.labels.php:2
- > PHP Notice
Undefined variable: return_url in wp-content/plugins/mks-video-embed-with-shortcode/include/mks_components/mks_factory/views/action_message.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'MKS_Component' not found in wp-content/plugins/mks-video-embed-with-shortcode/include/mks_components/mks_factory/mks_factory.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mks-video-embed-with-shortcode/include/mks_components/mks_shortcode/widgets/mks_shortcode_widget.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mks-video-embed-with-shortcode/include/mks_labels/mks_bsw_shortcode_object.labels.php:2
- > PHP Fatal error
Uncaught Error: Class 'MKS_Component' not found in wp-content/plugins/mks-video-embed-with-shortcode/include/mks_components/mks_shortcode/mks_shortcode.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/mks-video-embed-with-shortcode/mks_content_manager.php:12
- > PHP Notice
Undefined index: recaptcha_response_field in wp-content/plugins/mks-video-embed-with-shortcode/include/mks_components/mks_shortcode/libs/recaptcha-php-1.11/example-captcha.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
mks-video-embed-with-shortcode/mks_content_manager.php 92% from 13 tests
The primary PHP file in "MKS Video Embed With Shortcode" version 1.00 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mks-video-embed-with-shortcode.php" instead of "mks_content_manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin12,568 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 12 | 335 | 69 | 5,884 |
SVG | 4 | 0 | 0 | 2,709 |
PHP | 27 | 737 | 738 | 2,588 |
JavaScript | 10 | 339 | 57 | 1,387 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 26.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 14 | 14.58% |
▷ Public methods | 87 | 90.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 9.38% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
30 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/mks_components/mks_shortcode/images/gm-delete.png | 0.31KB | 0.38KB | 0.00% |
include/mks_components/mks_shortcode/images/read-more.png | 0.17KB | 0.22KB | 0.00% |
include/mks_components/mks_form/img/colorpicker/colorpicker_hsb_h.png | 0.99KB | 0.77KB | ▼ 21.94% |
include/mks_components/mks_form/img/colorpicker/colorpicker_hsb_s.png | 1.14KB | 0.80KB | ▼ 29.97% |
include/mks_components/mks_shortcode/images/diag-background-translucent.png | 0.08KB | 0.10KB | 0.00% |