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.10MB] [CPU: ▲6.19ms] Passed 4 tests
A check of server-side resources used by Buttons Shortcode and Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.55 ▲1.08 | 53.14 ▲1.88 |
Dashboard /wp-admin | 4.41 ▲1.10 | 59.60 ▲7.13 |
Posts /wp-admin/edit.php | 4.45 ▲1.09 | 65.12 ▲13.45 |
Add New Post /wp-admin/post-new.php | 7.01 ▲1.11 | 96.13 ▲2.28 |
Media Library /wp-admin/upload.php | 4.34 ▲1.11 | 51.20 ▲15.05 |
Settings /wp-admin/admin.php?page=otw-bsw-settings | 4.30 | 44.89 |
otwfcr /wp-admin/admin.php?page=otwfcr | 4.29 | 44.96 |
License Manager /wp-admin/admin.php?page=otw-bsw-lm | 4.36 | 194.49 |
Server storage [IO: ▲2.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 128 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_otw_shortcode_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Buttons Shortcode and Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 14.65 ▲0.29 | 1.85 ▼0.08 | 42.83 ▲2.96 |
Dashboard /wp-admin | 2,228 ▲48 | 5.82 ▲0.24 | 88.17 ▼1.77 | 74.12 ▲28.42 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 2.29 ▲0.28 | 41.15 ▲0.87 | 35.67 ▼10.05 |
Add New Post /wp-admin/post-new.php | 6,240 ▲4,714 | 19.29 ▼3.93 | 878.68 ▲216.19 | 41.28 ▼27.38 |
Media Library /wp-admin/upload.php | 1,451 ▲51 | 4.51 ▲0.44 | 103.22 ▼9.01 | 82.26 ▲30.51 |
Settings /wp-admin/admin.php?page=otw-bsw-settings | 960 | 1.97 | 28.01 | 41.15 |
otwfcr /wp-admin/admin.php?page=otwfcr | 827 | 1.81 | 26.27 | 24.78 |
License Manager /wp-admin/admin.php?page=otw-bsw-lm | 971 | 1.82 | 27.21 | 26.17 |
Uninstaller [IO: ▲0.14MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_otw_shortcode_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/buttons-shortcode-and-widget/include/otw_components/otw_factory/views/action_message.php
- > /wp-content/plugins/buttons-shortcode-and-widget/include/otw_components/otw_shortcode/libs/recaptcha-php-1.11/example-mailhide.php
- 15× 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/buttons-shortcode-and-widget/include/otw_components/otw_factory/views/action_message.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_esc_text() in wp-content/plugins/buttons-shortcode-and-widget/include/otw_bsw_help.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Shortcodes' not found in wp-content/plugins/buttons-shortcode-and-widget/include/otw_components/otw_shortcode/shortcodes/otw_shortcode_button.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/buttons-shortcode-and-widget/include/otw_labels/otw_bsw_shortcode_object.labels.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/buttons-shortcode-and-widget/include/otw_components/otw_factory/views/license_manager.php:3
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/buttons-shortcode-and-widget/include/otw_components/otw_shortcode/otw_shortcode.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_post() in wp-content/plugins/buttons-shortcode-and-widget/include/otw_bsw_process_actions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/buttons-shortcode-and-widget/otw_content_manager.php:12
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/buttons-shortcode-and-widget/include/otw_components/otw_factory/otw_factory.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/buttons-shortcode-and-widget/include/otw_components/otw_form/otw_form.class.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (WYSIWYG page/post editor button), #2 (OTW Shortcode Widget), #3 (Buttons Options), #4 (Front-end)
buttons-shortcode-and-widget/otw_content_manager.php 92% from 13 tests
The principal PHP file in "Buttons Shortcode and Widget" v. 1.16 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("buttons-shortcode-and-widget.php" instead of "otw_content_manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin17,207 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 472 | 113 | 7,722 |
PHP | 28 | 1,434 | 915 | 4,698 |
SVG | 4 | 0 | 0 | 2,709 |
JavaScript | 14 | 506 | 132 | 2,061 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 76.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 5.26 |
▷ 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 | 46 | |
▷ Named functions | 46 | 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
PNG files should be compressed to save space and minimize bandwidth usage
35 compressed PNG files occupy 0.26MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/otw_components/otw_form/img/select2.png | 0.60KB | 0.99KB | 0.00% |
include/otw_components/otw_shortcode/images/pattern-5.png | 1.83KB | 1.89KB | 0.00% |
include/otw_components/otw_form/img/select.png | 0.20KB | 0.27KB | 0.00% |
include/otw_components/otw_shortcode/images/read-more.png | 0.17KB | 0.22KB | 0.00% |
include/otw_components/otw_form/img/colorpicker/colorpicker_rgb_r.png | 1.04KB | 0.77KB | ▼ 26.17% |