Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.87MB] [CPU: ▲5.43ms] Passed 4 tests
An overview of server-side resources used by Widgets as Shortcodes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.31 ▲0.85 | 45.35 ▲5.67 |
Dashboard /wp-admin | 4.18 ▲0.88 | 59.44 ▲10.08 |
Posts /wp-admin/edit.php | 4.23 ▲0.88 | 54.56 ▲5.55 |
Add New Post /wp-admin/post-new.php | 6.78 ▲0.90 | 92.43 ▲0.41 |
Media Library /wp-admin/upload.php | 4.10 ▲0.88 | 47.09 ▲15.16 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 111 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Widgets as Shortcodes: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲91 | 14.48 ▲0.12 | 1.54 ▼0.24 | 40.38 ▲0.69 |
Dashboard /wp-admin | 2,235 ▲47 | 5.05 ▼0.83 | 103.17 ▲2.23 | 81.59 ▲36.07 |
Posts /wp-admin/edit.php | 2,124 ▲38 | 2.30 ▲0.28 | 35.92 ▼0.35 | 34.77 ▲1.78 |
Add New Post /wp-admin/post-new.php | 6,610 ▲5,096 | 22.46 ▲4.76 | 937.80 ▲304.07 | 40.57 ▼21.29 |
Media Library /wp-admin/upload.php | 1,426 ▲44 | 4.50 ▲0.32 | 98.22 ▼0.92 | 78.14 ▲34.79 |
Uninstaller [IO: ▲0.14MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/widgets-as-shortcodes/include/otw_components/otw_shortcode/libs/recaptcha-php-1.11/example-mailhide.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/widgets-as-shortcodes/include/otw_components/otw_validator/otw_validator.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_post() in wp-content/plugins/widgets-as-shortcodes/include/otw_components/otw_shortcode/libs/recaptcha-php-1.11/example-captcha.php:18
- > PHP Fatal error
Uncaught Error: Class 'OTW_Shortcodes' not found in wp-content/plugins/widgets-as-shortcodes/include/otw_components/otw_shortcode/shortcodes/otw_shortcode_widget_shortcode.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_esc_text() in wp-content/plugins/widgets-as-shortcodes/include/otw_wssw_help.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widgets-as-shortcodes/include/otw_components/otw_shortcode/widgets/otw_shortcode_widget.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/widgets-as-shortcodes/include/otw_components/otw_shortcode/otw_shortcode.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/widgets-as-shortcodes/otw_content_manager.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/widgets-as-shortcodes/include/otw_wssw_settings.php:4
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/widgets-as-shortcodes/include/otw_components/otw_form/otw_form.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/widgets-as-shortcodes/include/otw_labels/otw_wssw_shortcode_object.labels.php:2
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (WYSIWYG page/post editor button), #2 (Front-end)
widgets-as-shortcodes/otw_content_manager.php 85% from 13 tests
The main file in "Widgets as Shortcodes" v. 1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 144 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("widgets-as-shortcodes.php" instead of "otw_content_manager.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
There were no executable files found in this plugin10,967 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 12 | 470 | 103 | 5,222 |
PHP | 22 | 1,149 | 901 | 3,629 |
JavaScript | 14 | 506 | 132 | 2,061 |
SVG | 3 | 0 | 0 | 38 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 63.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 173.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 136 | |
▷ Static methods | 22 | 16.18% |
▷ Public methods | 103 | 75.74% |
▷ Protected methods | 27 | 19.85% |
▷ Private methods | 6 | 4.41% |
Functions | 45 | |
▷ Named functions | 45 | 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
33 compressed PNG files occupy 0.18MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/otw_components/otw_shortcode/images/sidebars-icon-placeholder.png | 0.15KB | 0.15KB | 0.00% |
include/otw_components/otw_shortcode/images/pattern-3.png | 12.24KB | 13.51KB | 0.00% |
include/otw_components/otw_form/img/colorpicker/colorpicker_rgb_b.png | 0.95KB | 0.76KB | ▼ 19.48% |
include/otw_components/otw_form/img/select.png | 0.20KB | 0.27KB | 0.00% |
include/otw_components/otw_shortcode/images/pattern-5.png | 1.83KB | 1.89KB | 0.00% |