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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼2.35ms] Passed 4 tests
Analyzing server-side resources used by Tabs Shortcode and Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 39.98 ▼3.33 |
Dashboard /wp-admin | 3.52 ▲0.22 | 52.10 ▲0.85 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 54.65 ▲5.49 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 94.27 ▼12.42 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 42.28 ▲9.24 |
otwfcr /wp-admin/admin.php?page=otwfcr | 3.37 | 35.55 |
License Manager /wp-admin/admin.php?page=otw-tsw-lm | 3.50 | 251.01 |
Settings /wp-admin/admin.php?page=otw-tsw-settings | 3.39 | 37.20 |
Server storage [IO: ▲2.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 127 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_otw_shortcode_widget |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tabs Shortcode and Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲208 | 14.23 ▼0.56 | 7.17 ▲5.23 | 43.23 ▼4.61 |
Dashboard /wp-admin | 2,243 ▲55 | 5.02 ▲0.15 | 113.33 ▲7.40 | 82.49 ▲35.28 |
Posts /wp-admin/edit.php | 2,144 ▲55 | 2.35 ▲0.32 | 39.52 ▲4.53 | 33.93 ▼0.44 |
Add New Post /wp-admin/post-new.php | 6,463 ▲4,944 | 28.75 ▲5.42 | 920.15 ▲327.24 | 36.83 ▼16.42 |
Media Library /wp-admin/upload.php | 1,446 ▲58 | 4.52 ▲0.33 | 94.54 ▼0.51 | 69.05 ▲29.67 |
otwfcr /wp-admin/admin.php?page=otwfcr | 822 | 1.86 | 29.74 | 27.29 |
License Manager /wp-admin/admin.php?page=otw-tsw-lm | 968 | 1.88 | 31.33 | 26.21 |
Settings /wp-admin/admin.php?page=otw-tsw-settings | 920 | 2.05 | 28.22 | 38.60 |
Uninstaller [IO: ▲0.14MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_otw_shortcode_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/tabs-shortcode-and-widget/include/otw_components/otw_factory/views/action_message.php
- > /wp-content/plugins/tabs-shortcode-and-widget/include/otw_components/otw_shortcode/libs/recaptcha-php-1.11/example-mailhide.php
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'OTW_Shortcodes' not found in wp-content/plugins/tabs-shortcode-and-widget/include/otw_components/otw_shortcode/shortcodes/otw_shortcode_tabslayout.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tabs-shortcode-and-widget/include/otw_labels/otw_tsw_shortcode_object.labels.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tabs-shortcode-and-widget/include/otw_labels/otw_tsw_factory_object.labels.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_post() in wp-content/plugins/tabs-shortcode-and-widget/include/otw_components/otw_shortcode/libs/recaptcha-php-1.11/example-captcha.php:18
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/tabs-shortcode-and-widget/include/otw_components/otw_factory/otw_factory.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tabs-shortcode-and-widget/include/otw_tsw_settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/tabs-shortcode-and-widget/otw_content_manager.php:11
- > PHP Notice
Undefined variable: return_url in wp-content/plugins/tabs-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_post() in wp-content/plugins/tabs-shortcode-and-widget/include/otw_tsw_process_actions.php:6
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/tabs-shortcode-and-widget/include/otw_components/otw_shortcode/otw_shortcode.class.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (WYSIWYG page/post editor button), #2 (OTW Shortcode Widget), #3 (Tabs Options), #4 (Front-end)
tabs-shortcode-and-widget/otw_content_manager.php 92% from 13 tests
The principal PHP file in "Tabs Shortcode and Widget" v. 1.17 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tabs-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 a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin17,114 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 472 | 113 | 7,722 |
PHP | 27 | 1,426 | 918 | 4,605 |
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
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 76.67 |
▷ 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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
35 PNG files occupy 0.21MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 72.18KB | 31.35KB | ▼ 56.56% |
include/otw_components/otw_shortcode/images/gm-edit.png | 0.31KB | 0.38KB | 0.00% |
include/otw_components/otw_form/img/colorpicker/colorpicker_hsb_s.png | 1.14KB | 0.80KB | ▼ 29.97% |
images/otw-sbm-icon.png | 0.13KB | 0.14KB | 0.00% |
screenshot-1.png | 19.37KB | 8.23KB | ▼ 57.53% |