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: ▲0.08MB] [CPU: ▼4.61ms] Passed 4 tests
Analyzing server-side resources used by Pre Order Addon for WooCommerce - Advance Order/Backorder Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.86 ▲5.50 |
Dashboard /wp-admin | 3.38 ▲0.08 | 46.08 ▼6.69 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.37 ▲2.31 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 85.38 ▼15.40 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.76 ▲1.33 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 9 new options
New WordPress options |
---|
woocommerce_sdevs-preorder-gateway_settings |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
sdevs_preorder_installed |
sdevs_preorder_version |
Browser metrics Passed 4 tests
A check of browser resources used by Pre Order Addon for WooCommerce - Advance Order/Backorder Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 13.20 ▼1.06 | 1.63 ▼0.07 | 38.33 ▼8.33 |
Dashboard /wp-admin | 2,223 ▲32 | 5.84 ▼0.07 | 94.15 ▼14.01 | 40.43 ▲3.56 |
Posts /wp-admin/edit.php | 2,108 ▲16 | 2.04 ▼0.01 | 34.05 ▼0.57 | 36.93 ▲2.55 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 18.77 ▲0.49 | 608.17 ▼11.75 | 62.60 ▲9.72 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.22 ▼0.02 | 94.55 ▼7.90 | 43.12 ▲0.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- widget_theysaidso_widget
- woocommerce_sdevs-preorder-gateway_settings
- db_upgraded
- theysaidso_admin_options
- sdevs_preorder_installed
- sdevs_preorder_version
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wc-pre-order/includes/Admin/views/order-column.php:1
- > PHP Notice
Undefined variable: confirmed_items in wp-content/plugins/wc-pre-order/includes/Admin/views/widget.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wc-pre-order/includes/Admin/views/plugin-notice.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wc-pre-order/includes/Admin/views/widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wc-pre-order/includes/Admin/views/form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-pre-order/includes/Admin/views/pre-order-details.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/wc-pre-order/includes/Admin/views/settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/wc-pre-order/templates/myaccount/preorders.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-pre-order/includes/Admin/views/pre-order-customer.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in wc-pre-order/assets to your readme.txt
wc-pre-order/pre-order.php 77% from 13 tests
The entry point to "Pre Order Addon for WooCommerce - Advance Order/Backorder Plugin" version 1.0.6 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: The principal plugin file should be the same as the plugin slug ("wc-pre-order.php" instead of "pre-order.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,992 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 353 | 811 | 1,954 |
CSS | 1 | 6 | 0 | 30 |
JSON | 1 | 0 | 0 | 5 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 1 | 4.00% |
Methods | 136 | |
▷ Static methods | 21 | 15.44% |
▷ Public methods | 130 | 95.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 4.41% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.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
PNG images were not found in this plugin