Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > Error in wp-content/plugins/order-table-for-woocommerce/includes/start-args.php+59
Uncaught Error: Call to undefined function wc_get_attribute_taxonomy_names() in wp-content/plugins/order-table-for-woocommerce/includes/start-args.php:59
Stack trace:
#0 wp-content/plugins/order-table-for-woocommerce/otfw-order.php(259): include()
#1 wp-includes/class-wp-hook.php(310): OTFW::activate()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.85ms] Passed 4 tests
Server-side resources used by Wholesale Order Table for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.25 ▼6.83 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.98 ▼5.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.49 ▼1.42 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.10 ▼26.00 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.20 ▼0.76 |
Server storage [IO: ▲2.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: no new tables, 13 new options
New WordPress options |
---|
otfw_sale_badge |
Activated_Plugin |
widget_recent-comments |
Order_Table_Activated_Plugin |
theysaidso_admin_options |
otfw_is_premium |
otfw_override_all |
otfw_confirm_input |
can_compress_scripts |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Wholesale Order Table for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.35 | 1.77 ▼0.26 | 43.97 ▼1.12 |
Dashboard /wp-admin | 2,192 ▲15 | 5.62 ▼0.03 | 89.12 ▼19.45 | 38.80 ▼4.23 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.98 ▼0.04 | 36.06 ▼4.90 | 31.57 ▼5.29 |
Add New Post /wp-admin/post-new.php | 1,526 ▼12 | 22.91 ▲4.81 | 585.90 ▼51.14 | 57.60 ▼14.90 |
Media Library /wp-admin/upload.php | 1,391 ▼12 | 4.18 ▼0.03 | 99.53 ▼5.90 | 41.15 ▼1.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 13 options
- otfw_sale_badge
- otfw_use_plugin_increment_css
- widget_recent-posts
- widget_recent-comments
- Order_Table_Activated_Plugin
- otfw_is_premium
- Activated_Plugin
- theysaidso_admin_options
- db_upgraded
- otfw_override_all
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/order-table-for-woocommerce/templates/categories.php
- > /wp-content/plugins/order-table-for-woocommerce/templates/product.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'OTFW' not found in wp-content/plugins/order-table-for-woocommerce/templates/woocommerce/content-product.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: form, b2b, takeaway, woocommerce, wholesale...
order-table-for-woocommerce/otfw-order.php 85% from 13 tests
The principal PHP file in "Wholesale Order Table for WooCommerce" v. 2.1.9 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("order-table-for-woocommerce.php" instead of "otfw-order.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin15,075 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 13 | 297 | 110 | 7,320 |
SVG | 3 | 0 | 0 | 3,319 |
JavaScript | 7 | 194 | 229 | 2,226 |
PHP | 14 | 883 | 100 | 2,210 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 41.29 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.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 | 86 | |
▷ Static methods | 17 | 19.77% |
▷ Public methods | 83 | 96.51% |
▷ Protected methods | 3 | 3.49% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin