Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/product-pre-orders-for-woo/admin/product.php+18
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.56MB] [CPU: ▼0.55ms] 75% from 4 tests
This is a short check of server-side resources used by Product Pre-Orders for WooCommerce
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 643.49ms on /wp-admin/admin.php?page=product-pre-orders-for-woo-extensions)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.55 | 41.07 ▲3.35 |
Dashboard /wp-admin | 3.92 ▲0.61 | 51.82 ▼0.14 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 47.83 ▲1.47 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 87.70 ▼6.89 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 43.78 ▲8.53 |
Extensions /wp-admin/admin.php?page=product-pre-orders-for-woo-extensions | 3.96 | 643.49 |
Server storage [IO: ▲1.57MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
pre_order_setting_default |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
product-pre-orders-for-woo_start_use |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Pre-Orders for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲96 | 14.24 ▼0.11 | 1.61 ▲0.01 | 37.67 ▼2.72 |
Dashboard /wp-admin | 2,248 ▲70 | 5.58 ▼0.04 | 81.19 ▼15.43 | 42.25 ▲1.40 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 1.95 ▼0.07 | 35.08 ▼0.38 | 38.03 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,574 ▲48 | 18.43 ▼5.12 | 601.95 ▼32.45 | 68.37 ▲10.60 |
Media Library /wp-admin/upload.php | 1,453 ▲50 | 4.16 ▼0.03 | 99.56 ▼0.04 | 43.80 ▲1.11 |
Extensions /wp-admin/admin.php?page=product-pre-orders-for-woo-extensions | 1,764 | 2.05 | 28.32 | 65.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- product-pre-orders-for-woo_start_use
- widget_recent-comments
- pre_order_setting_default
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: wordpress, woocommerce pre-order, pre order, woo pre-order, pre-order...
product-pre-orders-for-woo/product-pre-orders-for-woo.php 92% from 13 tests
"Product Pre-Orders for WooCommerce" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0.0" instead of "5.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected12,341 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 1,388 | 432 | 7,572 |
PHP | 8 | 235 | 291 | 2,758 |
SVG | 1 | 0 | 4 | 1,514 |
CSS | 16 | 53 | 107 | 292 |
PO File | 1 | 64 | 64 | 205 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 62.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 6.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 1 | 1.39% |
▷ Public methods | 68 | 94.44% |
▷ Protected methods | 2 | 2.78% |
▷ Private methods | 2 | 2.78% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin