Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.72ms] Passed 4 tests
Server-side resources used by Woo Product Shortcodes (Free)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 41.70 ▼5.48 |
Dashboard /wp-admin | 3.33 ▲0.02 | 55.43 ▼3.29 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 55.50 ▲0.80 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.87 ▼14.90 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.01 ▲3.11 |
/wp-admin/admin.php?page=product_shortcodes_main___errors | 3.19 | 35.22 |
Woo Product Shortcodes /wp-admin/tools.php?page=product_shortcodes_main___dashboard | 3.22 | 32.20 |
/wp-admin/admin.php?page=product_shortcodes_main___settings | 3.21 | 36.48 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Woo Product Shortcodes (Free)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.01 | 1.73 ▼0.07 | 42.41 ▼1.83 |
Dashboard /wp-admin | 2,199 ▲19 | 5.63 ▲0.03 | 90.56 ▼35.53 | 41.34 ▼4.90 |
Posts /wp-admin/edit.php | 2,104 ▲22 | 2.00 ▼0.01 | 39.72 ▲2.83 | 36.12 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 23.07 ▲0.34 | 693.48 ▼2.07 | 52.84 ▼7.34 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.18 ▼0.00 | 106.59 ▲0.00 | 46.92 ▲0.88 |
/wp-admin/admin.php?page=product_shortcodes_main___errors | 756 | 1.99 | 34.33 | 25.78 |
Woo Product Shortcodes /wp-admin/tools.php?page=product_shortcodes_main___dashboard | 790 | 2.00 | 24.57 | 22.65 |
/wp-admin/admin.php?page=product_shortcodes_main___settings | 803 | 2.02 | 23.47 | 28.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=product_shortcodes_main___errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'zfunction___woo_product_shortcodes___error_logs' not found or invalid function name
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woo-product-shortcodes/admin/page_header.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/woo-product-shortcodes/admin/page_error_logs.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/woo-product-shortcodes/admin/page_dashboard.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/woo-product-shortcodes/admin/page_settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-shortcodes/woo-product-shortcodes.php:39
- > PHP Notice
Undefined variable: tab in wp-content/plugins/woo-product-shortcodes/admin/page_header.php on line 3
- > PHP Notice
Undefined variable: tab in wp-content/plugins/woo-product-shortcodes/admin/page_header.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== woo-product-shortcodes ===
) - Donate link: Invalid url: ""
woo-product-shortcodes/woo-product-shortcodes.php 92% from 13 tests
The principal PHP file in "Woo Product Shortcodes (Free)" v. 2.2 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin206 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 39 | 18 | 206 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin