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.12MB] [CPU: ▲4.21ms] Passed 4 tests
Analyzing server-side resources used by Info Boxes Shortcode and Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.57 ▲1.11 | 52.66 ▲11.56 |
Dashboard /wp-admin | 4.42 ▲1.12 | 61.20 ▲6.02 |
Posts /wp-admin/edit.php | 4.48 ▲1.12 | 63.25 ▲2.12 |
Add New Post /wp-admin/post-new.php | 7.03 ▲1.14 | 100.67 ▼2.88 |
Media Library /wp-admin/upload.php | 4.37 ▲1.14 | 56.56 ▲15.60 |
otwfcr /wp-admin/admin.php?page=otwfcr | 4.32 | 48.42 |
License Manager /wp-admin/admin.php?page=otw-ibsw-lm | 4.38 | 180.89 |
Settings /wp-admin/admin.php?page=otw-ibsw-settings | 4.32 | 45.85 |
Server storage [IO: ▲2.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 127 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_otw_shortcode_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Info Boxes Shortcode and Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲104 | 14.20 ▼0.58 | 1.64 ▼0.03 | 42.87 ▼1.77 |
Dashboard /wp-admin | 2,243 ▲63 | 5.83 ▲0.23 | 91.01 ▼1.19 | 69.15 ▲21.04 |
Posts /wp-admin/edit.php | 2,157 ▲57 | 2.31 ▲0.34 | 39.79 ▼4.39 | 32.73 ▼6.81 |
Add New Post /wp-admin/post-new.php | 6,407 ▲4,881 | 27.94 ▲4.43 | 869.91 ▲167.54 | 36.55 ▼13.81 |
Media Library /wp-admin/upload.php | 1,451 ▲57 | 4.47 ▲0.26 | 101.03 ▼1.00 | 66.62 ▲21.90 |
otwfcr /wp-admin/admin.php?page=otwfcr | 824 | 1.89 | 25.18 | 24.34 |
License Manager /wp-admin/admin.php?page=otw-ibsw-lm | 968 | 1.81 | 28.93 | 25.04 |
Settings /wp-admin/admin.php?page=otw-ibsw-settings | 930 | 1.94 | 27.45 | 39.75 |
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
- widget_recent-comments
- widget_otw_shortcode_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/info-boxes-shortcode-and-widget/include/otw_components/otw_factory/views/action_message.php
- > /wp-content/plugins/info-boxes-shortcode-and-widget/include/otw_components/otw_shortcode/libs/recaptcha-php-1.11/example-mailhide.php
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/info-boxes-shortcode-and-widget/otw_content_manager.php:11
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/info-boxes-shortcode-and-widget/include/otw_components/otw_validator/otw_validator.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/info-boxes-shortcode-and-widget/include/otw_labels/otw_ibsw_shortcode_object.labels.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_post() in wp-content/plugins/info-boxes-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 esc_html__() in wp-content/plugins/info-boxes-shortcode-and-widget/include/otw_ibsw_settings.php:7
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/info-boxes-shortcode-and-widget/include/otw_components/otw_factory/otw_factory.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Shortcodes' not found in wp-content/plugins/info-boxes-shortcode-and-widget/include/otw_components/otw_shortcode/shortcodes/otw_shortcode_info_box.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/info-boxes-shortcode-and-widget/include/otw_components/otw_form/otw_form.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/info-boxes-shortcode-and-widget/include/otw_components/otw_shortcode/widgets/otw_shortcode_widget.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/info-boxes-shortcode-and-widget/include/otw_labels/otw_ibsw_factory_object.labels.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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: Add images for these screenshots: #1 (WYSIWYG page/post editor button), #2 (OTW Shortcode Widget), #3 (Info Boxes Options), #4 (Front-end)
info-boxes-shortcode-and-widget/otw_content_manager.php 92% from 13 tests
The main PHP file in "Info Boxes Shortcode and Widget" ver. 1.15 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("info-boxes-shortcode-and-widget.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 plugin17,260 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 472 | 113 | 7,722 |
PHP | 27 | 1,451 | 921 | 4,751 |
SVG | 4 | 0 | 0 | 2,709 |
JavaScript | 14 | 506 | 132 | 2,061 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 76.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 5.28 |
▷ 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
PNG files should be compressed to save space and minimize bandwidth usage
35 compressed PNG files occupy 0.51MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/otw_components/otw_shortcode/images/diag-background-translucent.png | 0.08KB | 0.10KB | 0.00% |
include/otw_components/otw_form/img/colorpicker/colorpicker_background.png | 1.85KB | 2.14KB | 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_hsb_b.png | 0.95KB | 0.76KB | ▼ 19.48% |
include/otw_components/otw_shortcode/images/diag-background.png | 0.08KB | 0.10KB | 0.00% |