Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.77ms] Passed 4 tests
An overview of server-side resources used by Step-By-Step Ordering System for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.24 ▼8.19 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.55 ▼7.19 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.15 ▲4.77 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.67 ▼5.01 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.85 ▲1.30 |
Server storage [IO: ▲2.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 85 new files
Database: no new tables, 10 new options
New WordPress options |
---|
sbs_general |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
sbs_version |
sbs_navbar |
widget_recent-posts |
step_order |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Step-By-Step Ordering System for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.68 ▼0.69 | 4.37 ▲2.54 | 38.14 ▼9.35 |
Dashboard /wp-admin | 2,206 ▲32 | 4.86 ▼0.02 | 111.10 ▼3.75 | 41.57 ▼6.38 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.00 | 39.23 ▲2.26 | 35.65 ▼2.65 |
Add New Post /wp-admin/post-new.php | 1,535 ▲18 | 23.41 ▲5.76 | 629.16 ▼61.41 | 62.17 ▲8.44 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.17 ▼0.00 | 97.04 ▼7.89 | 41.41 ▼3.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 10 options in the database
- sbs_version
- theysaidso_admin_options
- sbs_general
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- sbs_navbar
- step_order
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/step-by-step-ordering-system-for-woocommerce/includes/shortcodes/sbs-select-package.php:148
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/step-by-step-ordering-system-for-woocommerce/includes/plugin/activation.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/step-by-step-ordering-system-for-woocommerce/woocommerce/plugin-template-override.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/step-by-step-ordering-system-for-woocommerce/includes/woocommerce-actions/add-to-cart-loop.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/step-by-step-ordering-system-for-woocommerce/includes/themes/common-theme-styles-dequeue.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/step-by-step-ordering-system-for-woocommerce/includes/themes/common-theme-styles.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/step-by-step-ordering-system-for-woocommerce/includes/themes/theme-selector.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/step-by-step-ordering-system-for-woocommerce/includes/themes/main-style.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
5 plugin tags: ordering, e-commerce, step-by-step, woocommerce, shopping
step-by-step-ordering-system-for-woocommerce/wc-step-by-step-ordering.php 77% from 13 tests
The main PHP file in "Step-By-Step Ordering System for WooCommerce" ver. 1.3.9 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "3.0")
- 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
- Main file name: Name the main plugin file the same as the plugin slug ("step-by-step-ordering-system-for-woocommerce.php" instead of "wc-step-by-step-ordering.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin7,640 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 906 | 481 | 3,505 |
CSS | 21 | 305 | 411 | 3,385 |
JavaScript | 13 | 129 | 125 | 750 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 23.53% |
Functions | 109 | |
▷ Named functions | 102 | 93.58% |
▷ Anonymous functions | 7 | 6.42% |
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
15 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/nav-num-shapes/heart.png | 9.33KB | 4.52KB | ▼ 51.50% |
assets/admin/side-banner.png | 104.10KB | 42.13KB | ▼ 59.53% |
assets/admin/nav-num-shapes/default.png | 8.88KB | 3.45KB | ▼ 61.16% |
assets/admin/nav-num-shapes/twelve-star.png | 9.94KB | 4.51KB | ▼ 54.61% |
assets/admin/nav-step-shapes/tv-screen.png | 10.20KB | 5.27KB | ▼ 48.37% |