Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲2.12MB] [CPU: ▲6.96ms] Passed 4 tests
Server-side resources used by Product Table by WBW
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.95 ▲1.48 | 53.92 ▲12.29 |
Dashboard /wp-admin | 5.75 ▲2.44 | 58.64 ▲10.99 |
Posts /wp-admin/edit.php | 5.82 ▲2.46 | 64.24 ▲13.13 |
Add New Post /wp-admin/post-new.php | 7.98 ▲2.09 | 94.71 ▼8.59 |
Media Library /wp-admin/upload.php | 5.75 ▲2.52 | 53.36 ▲19.67 |
Show All Tables /wp-admin/admin.php?page=wtbp-table-press&tab=wootablepress | 5.77 | 53.59 |
Settings /wp-admin/admin.php?page=wtbp-table-press&tab=settings | 5.77 | 47.64 |
/wp-admin/admin.php?page=wtbp-table-press | 5.77 | 50.35 |
Server storage [IO: ▲5.30MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 337 new files
Database: 6 new tables, 11 new options
New tables |
---|
wp_wtbp_usage_stat |
wp_wtbp_modules |
wp_wtbp_tables |
wp_wtbp_modules_type |
wp_wtbp_favorites |
wp_wtbp_columns |
New WordPress options |
---|
wp_wtbp_db_version |
theysaidso_admin_options |
wtbp_plug_was_used |
db_upgraded |
wp_wtbp_db_installed |
wtbp_opts_data |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
wtbp_plugin_activation_errors |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Product Table by WBW
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲62 | 14.18 ▲0.05 | 1.73 ▼0.10 | 42.91 ▼1.85 |
Dashboard /wp-admin | 2,232 ▲55 | 5.58 ▼0.05 | 93.56 ▼10.16 | 39.87 ▼8.00 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 1.96 ▼0.06 | 41.33 ▲6.05 | 35.48 ▼3.01 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.45 ▲0.15 | 705.78 ▲17.42 | 62.12 ▲5.19 |
Media Library /wp-admin/upload.php | 1,428 ▲31 | 4.15 ▼0.03 | 96.76 ▼5.64 | 41.91 ▼1.42 |
Add New Table /wp-admin/admin.php?page=wtbp-table-press&tab=wootablepress#wtbpadd | 1,063 | 3.62 | 44.57 | 22.85 |
Show All Tables /wp-admin/admin.php?page=wtbp-table-press&tab=wootablepress | 1,057 | 3.62 | 48.64 | 22.15 |
Settings /wp-admin/admin.php?page=wtbp-table-press&tab=settings | 1,053 | 3.56 | 46.42 | 22.24 |
/wp-admin/admin.php?page=wtbp-table-press | 1,060 | 3.57 | 46.11 | 26.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_wtbp_favorites
- wp_wtbp_tables
- The uninstall procedure has failed, leaving 9 options in the database
- wtbp_plugin_activation_errors
- wtbp_plug_was_used
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- wtbp_opts_data
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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 take a closer look at the following
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/woo-product-tables/modules/promo/views/tpl/overviewTabContent.php
- > /wp-content/plugins/woo-product-tables/modules/wootablepress/views/tpl/wootablepressDescriptionPopup.php
- > /wp-content/plugins/woo-product-tables/modules/promo/views/tpl/adminTour.php
- > /wp-content/plugins/woo-product-tables/modules/promo/views/tpl/layeredStylePromo.php
- > /wp-content/plugins/woo-product-tables/modules/promo/views/tpl/welcomePage.php
- 64× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-product-tables/config.php on line 23
- > PHP Fatal error
Uncaught Error: Class 'ViewWtbp' not found in wp-content/plugins/woo-product-tables/modules/pages/views/pages.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/woo-product-tables/modules/promo/views/tpl/adminFooter.php:3
- > PHP Fatal error
Uncaught Error: Class 'TableWtbp' not found in wp-content/plugins/woo-product-tables/classes/tables/modules.php:2
- > PHP Fatal error
Uncaught Error: Class 'ModuleWtbp' not found in wp-content/plugins/woo-product-tables/modules/promo/mod.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/woo-product-tables/modules/wootablepress/views/tpl/wootablepressVariablesPopup.php:19
- > PHP Fatal error
Uncaught Error: Class 'ControllerWtbp' not found in wp-content/plugins/woo-product-tables/modules/admin_nav/controller.php:2
- > PHP Fatal error
Uncaught Error: Class 'BaseObjectWtbp' not found in wp-content/plugins/woo-product-tables/classes/view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/woo-product-tables/config.php:25
- > PHP Fatal error
Uncaught Error: Class 'TableWtbp' not found in wp-content/plugins/woo-product-tables/classes/tables/tables.php:2
- > PHP Warning
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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: woocommerce product table, woocommerce, quick order form, product table, bulk order form
woo-product-tables/woo-producttables.php 85% from 13 tests
This is the main PHP file of "Product Table by WBW" version 1.9.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-product-tables.php" instead of "woo-producttables.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("3.3" instead of "3.4.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected44,507 lines of code in 246 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 97 | 940 | 2,361 | 14,502 |
JavaScript | 103 | 738 | 1,824 | 13,326 |
PO File | 5 | 2,645 | 3,331 | 7,645 |
CSS | 40 | 446 | 181 | 6,363 |
SVG | 1 | 0 | 0 | 2,671 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 423)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 31.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 691.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 423.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 73 | |
▷ Abstract classes | 9 | 12.33% |
▷ Concrete classes | 64 | 87.67% |
▷ Final classes | 0 | 0.00% |
Methods | 844 | |
▷ Static methods | 240 | 28.44% |
▷ Public methods | 775 | 91.82% |
▷ Protected methods | 51 | 6.04% |
▷ Private methods | 18 | 2.13% |
Functions | 21 | |
▷ Named functions | 17 | 80.95% |
▷ Anonymous functions | 4 | 19.05% |
Constants | 72 | |
▷ Global constants | 58 | 80.56% |
▷ Class constants | 14 | 19.44% |
▷ Public constants | 14 | 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
69 PNG files occupy 0.25MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |
modules/wootablepress/img/filter_attr.png | 3.91KB | 1.90KB | ▼ 51.26% |
modules/wootablepress/img/pagination.png | 4.21KB | 1.92KB | ▼ 54.31% |
modules/wootablepress/img/assets/close_btns/exclusive_close.png | 1.43KB | 1.52KB | 0.00% |
modules/wootablepress/images/close.png | 0.27KB | 0.29KB | 0.00% |