Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.74MB] [CPU: ▲4.87ms] Passed 4 tests
Analyzing server-side resources used by JustTables – WooCommerce Product Table
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.22 ▲1.75 | 46.81 ▲1.48 |
Dashboard /wp-admin | 5.06 ▲1.71 | 56.94 ▼1.75 |
Posts /wp-admin/edit.php | 5.11 ▲1.75 | 62.57 ▲13.09 |
Add New Post /wp-admin/post-new.php | 7.64 ▲1.75 | 108.77 ▲6.67 |
Media Library /wp-admin/upload.php | 4.98 ▲1.75 | 56.18 ▲19.12 |
Recommendations /wp-admin/edit.php?post_type=jt-product-table&page=just-table-recommendations | 4.75 | 35.95 |
Server storage [IO: ▲2.66MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 296 new files
Database: no new tables, 7 new options
New WordPress options |
---|
just_tables_installed |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for JustTables – WooCommerce Product Table
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.28 ▼0.01 | 1.55 ▼0.34 | 39.14 ▼5.53 |
Dashboard /wp-admin | 2,206 ▲26 | 5.61 ▼0.09 | 94.60 ▲6.73 | 43.52 ▲4.05 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.17 ▲0.18 | 40.03 ▲4.70 | 36.46 ▼0.81 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 17.98 ▼5.06 | 637.26 ▼30.25 | 69.50 ▲17.78 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.30 ▲0.14 | 109.43 ▲13.59 | 45.55 ▲1.11 |
Recommendations /wp-admin/edit.php?post_type=jt-product-table&page=just-table-recommendations | 28 | 0.42 | 0.08 | 3.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- just_tables_installed
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 75× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function get_height() on null in wp-content/plugins/just-tables/includes/Frontend/views/elements/height.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_woocommerce_currency_symbol() in wp-content/plugins/just-tables/includes/Frontend/views/table.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/just-tables/includes/Frontend/views/config-options.php:66
- > PHP Notice
Undefined variable: product_min_purchase_quantity in wp-content/plugins/just-tables/includes/Frontend/views/elements/quantity.php on line 5
- > PHP Fatal error
Uncaught Error: Call to a member function get_availability() on null in wp-content/plugins/just-tables/includes/Frontend/views/elements/stock.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function get_description() on null in wp-content/plugins/just-tables/includes/Frontend/views/elements/description.php:2
- > PHP Notice
Undefined variable: available_for_backorder_status_text in wp-content/plugins/just-tables/includes/Frontend/views/table.php on line 29
- > PHP Notice
Undefined variable: product in wp-content/plugins/just-tables/includes/Frontend/views/elements/width.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function get_short_description() on null in wp-content/plugins/just-tables/includes/Frontend/views/elements/short-description.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/just-tables/includes/Frontend/views/elements/id.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=jt-product-table&page=just-table-recommendations
- > Network (severe)
wp-admin/edit.php?post_type=jt-product-table&page=just-table-recommendations - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce product table, justtables, woocommerce table, product table, woocommerce
just-tables/just-tables.php Passed 13 tests
The principal PHP file in "JustTables – WooCommerce Product Table" v. 1.5.3 is loaded by WordPress automatically on each request
38 characters long description:
Display WooCommerce products as table.
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 plugin47,850 lines of code in 241 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 145 | 4,538 | 3,019 | 20,790 |
JavaScript | 12 | 1,573 | 777 | 7,690 |
CSS | 10 | 472 | 688 | 7,090 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Sass | 16 | 970 | 3 | 5,674 |
SVG | 36 | 0 | 0 | 78 |
JSON | 2 | 0 | 0 | 28 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 23.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 6.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 78 | |
▷ Abstract classes | 2 | 2.56% |
▷ Concrete classes | 76 | 97.44% |
▷ Final classes | 1 | 1.32% |
Methods | 347 | |
▷ Static methods | 63 | 18.16% |
▷ Public methods | 334 | 96.25% |
▷ Protected methods | 6 | 1.73% |
▷ Private methods | 7 | 2.02% |
Functions | 60 | |
▷ Named functions | 55 | 91.67% |
▷ Anonymous functions | 5 | 8.33% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
28 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/extensions/whols-pro.png | 15.30KB | 7.40KB | ▼ 51.65% |
(invalid) assets/images/extensions/was-this-helpful.png | 1.21KB | 0.00KB | ▼ 100.00% |
assets/images/dataTables/sort_both.png | 0.27KB | 0.29KB | 0.00% |
assets/images/extensions/woolentor-addons-pro.png | 3.20KB | 1.69KB | ▼ 47.09% |
assets/images/select2/selector-icon.png | 0.15KB | 0.17KB | 0.00% |