Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲3.97MB] [CPU: ▼276.96ms] Passed 4 tests
A check of server-side resources used by Product Table for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.77 ▲4.25 | 83.40 ▲24.74 |
Dashboard /wp-admin | 7.79 ▲4.38 | 51.99 ▲15.65 |
Posts /wp-admin/edit.php | 7.79 ▲4.15 | 61.19 ▲13.66 |
Add New Post /wp-admin/post-new.php | 10.08 ▲3.10 | 115.41 ▼1,149.93 |
Media Library /wp-admin/upload.php | 7.79 ▲4.49 | 43.21 ▲12.78 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 7.79 | 44.42 |
Server storage [IO: ▲4.73MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 243 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_debug_mode |
fs_options |
fs_active_plugins |
fs_api_cache |
fs_accounts |
Browser metrics Passed 4 tests
Product Table for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,920 ▲166 | 16.69 ▲0.69 | 13.11 ▲6.79 | 2.39 ▼0.92 |
Dashboard /wp-admin | 2,917 ▲63 | 6.40 ▲0.06 | 116.53 ▼18.87 | 155.92 ▼3.42 |
Posts /wp-admin/edit.php | 2,716 ▲28 | 3.44 ▲0.01 | 64.69 ▲1.61 | 141.19 ▼5.34 |
Add New Post /wp-admin/post-new.php | 1,729 ▲68 | 21.13 ▲4.81 | 453.36 ▲31.94 | 161.14 ▲7.94 |
Media Library /wp-admin/upload.php | 1,723 ▲25 | 5.75 ▲0.02 | 145.08 ▲2.25 | 189.10 ▲3.15 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 1,420 | 2.70 | 56.36 | 146.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
Please fix the following items
- The uninstall procedure has failed, leaving 5 options in the database
- fs_options
- fs_api_cache
- fs_accounts
- fs_debug_mode
- fs_active_plugins
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/product-table/freemius/templates/ajax-loader.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/product-table/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/product-table/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/product-table/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/product-table/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/product-table/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/product-table/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/product-table/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/product-table/freemius/templates/partials/network-activation.php:6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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
5 plugin tags: woocommerce product, woocommerce price list, product table for woocommerce, woocommerce product table, woocommerce product list
product-table/product-table.php 92% from 13 tests
The main file in "Product Table for WooCommerce" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin57,029 lines of code in 189 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 108 | 6,358 | 14,671 | 26,738 |
JavaScript | 17 | 4,135 | 14,216 | 13,846 |
PO File | 10 | 5,550 | 6,667 | 12,010 |
Sass | 28 | 399 | 77 | 2,515 |
CSS | 25 | 44 | 121 | 1,898 |
Markdown | 1 | 7 | 0 | 22 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,360)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 69.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,360.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,057 | |
▷ Static methods | 166 | 15.70% |
▷ Public methods | 743 | 70.29% |
▷ Protected methods | 15 | 1.42% |
▷ Private methods | 299 | 28.29% |
Functions | 92 | |
▷ Named functions | 92 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 116 | |
▷ Global constants | 96 | 82.76% |
▷ Class constants | 20 | 17.24% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.27MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libraries/DataTables/DataTables-1.10.18/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
wordpressorg/screenshot-1.png | 85.02KB | 31.72KB | ▼ 62.69% |
wordpressorg/icon-128x128.png | 5.71KB | 2.73KB | ▼ 52.28% |
libraries/DataTables/DataTables-1.10.18/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |