Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.02MB] [CPU: ▲7.12ms] Passed 4 tests
An overview of server-side resources used by Separator Shortcode and Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.47 ▲1.01 | 51.79 ▲6.43 |
Dashboard /wp-admin | 4.32 ▲1.02 | 62.68 ▲11.14 |
Posts /wp-admin/edit.php | 4.38 ▲1.02 | 61.97 ▲14.67 |
Add New Post /wp-admin/post-new.php | 6.93 ▲1.04 | 113.09 ▼3.63 |
Media Library /wp-admin/upload.php | 4.26 ▲1.04 | 52.33 ▲14.52 |
License Manager /wp-admin/admin.php?page=otw-spsw-lm | 4.28 | 181.25 |
otwfcr /wp-admin/admin.php?page=otwfcr | 4.21 | 45.64 |
Settings /wp-admin/admin.php?page=otw-spsw-settings | 4.22 | 44.61 |
Server storage [IO: ▲1.95MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 127 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_otw_shortcode_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Separator Shortcode and Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 13.39 ▼1.33 | 2.13 ▼0.13 | 42.51 ▼3.20 |
Dashboard /wp-admin | 2,234 ▲49 | 5.00 ▲0.09 | 108.56 ▼8.96 | 87.27 ▲42.32 |
Posts /wp-admin/edit.php | 2,141 ▲55 | 2.49 ▲0.50 | 35.41 ▼2.63 | 33.22 ▼7.18 |
Add New Post /wp-admin/post-new.php | 6,401 ▲4,881 | 22.80 ▼0.45 | 908.32 ▲260.75 | 39.05 ▼13.22 |
Media Library /wp-admin/upload.php | 1,443 ▲55 | 4.48 ▲0.26 | 110.70 ▲5.89 | 80.48 ▲35.51 |
License Manager /wp-admin/admin.php?page=otw-spsw-lm | 957 | 1.87 | 28.07 | 27.99 |
otwfcr /wp-admin/admin.php?page=otwfcr | 773 | 1.89 | 28.27 | 23.27 |
Settings /wp-admin/admin.php?page=otw-spsw-settings | 919 | 2.02 | 28.52 | 39.40 |
Uninstaller [IO: ▲0.14MB] [DB: ▲0.01MB] 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 were found after uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- widget_otw_shortcode_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/separator-shortcode-and-widget/include/otw_components/otw_factory/views/action_message.php
- > /wp-content/plugins/separator-shortcode-and-widget/include/otw_components/otw_shortcode/libs/recaptcha-php-1.11/example-mailhide.php
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: return_url in wp-content/plugins/separator-shortcode-and-widget/include/otw_components/otw_factory/views/action_message.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/separator-shortcode-and-widget/include/otw_components/otw_form/otw_form.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_post() in wp-content/plugins/separator-shortcode-and-widget/include/otw_components/otw_shortcode/libs/recaptcha-php-1.11/example-captcha.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/separator-shortcode-and-widget/otw_content_manager.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/separator-shortcode-and-widget/include/otw_labels/otw_spsw_factory_object.labels.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/separator-shortcode-and-widget/include/otw_components/otw_shortcode/widgets/otw_shortcode_widget.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/separator-shortcode-and-widget/include/otw_spsw_settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_post() in wp-content/plugins/separator-shortcode-and-widget/include/otw_spsw_process_actions.php:6
- > PHP Fatal error
Uncaught Error: Class 'OTW_Shortcodes' not found in wp-content/plugins/separator-shortcode-and-widget/include/otw_components/otw_shortcode/shortcodes/otw_shortcode_divider.class.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/separator-shortcode-and-widget/include/otw_components/otw_factory/views/license_manager.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (WYSIWYG page/post editor button), #2 (OTW Shortcode Widget), #3 (Separator Options), #4 (Front-end)
separator-shortcode-and-widget/otw_content_manager.php 92% from 13 tests
The primary PHP file in "Separator Shortcode and Widget" version 1.13 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("separator-shortcode-and-widget.php" instead of "otw_content_manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin16,929 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 472 | 113 | 7,722 |
PHP | 27 | 1,422 | 921 | 4,420 |
SVG | 4 | 0 | 0 | 2,709 |
JavaScript | 14 | 506 | 132 | 2,061 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 75.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 5.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.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 | 159 | |
▷ Static methods | 22 | 13.84% |
▷ Public methods | 120 | 75.47% |
▷ Protected methods | 27 | 16.98% |
▷ Private methods | 12 | 7.55% |
Functions | 47 | |
▷ Named functions | 47 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
35 compressed PNG files occupy 0.15MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/otw_components/otw_form/img/colorpicker/colorpicker_hex.png | 0.52KB | 0.42KB | ▼ 19.92% |
include/otw_components/otw_shortcode/images/blockquote-testimonial.png | 0.16KB | 0.20KB | 0.00% |
include/otw_components/otw_shortcode/images/pattern-4.png | 0.09KB | 0.12KB | 0.00% |
include/otw_components/otw_form/img/colorpicker/colorpicker_submit.png | 0.96KB | 1.04KB | 0.00% |
include/otw_components/otw_form/img/select.png | 0.20KB | 0.27KB | 0.00% |