Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼7.43ms] Passed 4 tests
Analyzing server-side resources used by Product Pricing Table by WooBeWoo
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 36.78 ▼4.77 |
Dashboard /wp-admin | 3.50 ▲0.16 | 53.14 ▼8.96 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 49.65 ▼4.77 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 91.31 ▼11.22 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 44.63 ▲7.89 |
Settings /wp-admin/admin.php?page=pricing-table-for-woo&tab=settings | 3.56 | 49.74 |
/wp-admin/admin.php?page=pricing-table-for-woo | 3.39 | 35.56 |
Tables Import / Export /wp-admin/admin.php?page=pricing-table-for-woo&tab=tables_import_export | 3.39 | 33.12 |
Overview /wp-admin/admin.php?page=pricing-table-for-woo&tab=overview | 3.49 | 37.64 |
Add New Table /wp-admin/admin.php?page=pricing-table-for-woo&tab=tables_add_new | 3.53 | 33.80 |
Show All Tables /wp-admin/admin.php?page=pricing-table-for-woo&tab=tables | 3.39 | 34.48 |
Server storage [IO: ▲5.35MB] [DB: ▲0.05MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 512 new files
Database: 7 new tables, 11 new options
New tables |
---|
wp_ptw_product_property_codes |
wp_ptw_tables |
wp_ptw_modules_type |
wp_ptw_product_properties |
wp_ptw_modules |
wp_ptw_products |
wp_ptw_usage_stat |
New WordPress options |
---|
ptw_plug_was_used |
ptw_plugin_activation_errors |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
wp_ptw_db_installed |
db_upgraded |
wp_ptw_db_version |
ptw_optw_data |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Pricing Table by WooBeWoo
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 14.72 ▲0.51 | 1.68 ▼0.13 | 40.40 ▼0.77 |
Dashboard /wp-admin | 2,240 ▲63 | 5.64 ▲0.02 | 88.61 ▼3.92 | 38.65 ▼1.17 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.01 ▼0.01 | 40.14 ▲5.86 | 33.57 ▼2.35 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 23.04 ▼0.60 | 680.34 ▲57.82 | 56.29 ▲1.98 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.23 ▼0.00 | 114.29 ▲12.54 | 49.09 ▲4.96 |
Settings /wp-admin/admin.php?page=pricing-table-for-woo&tab=settings | 1,240 | 3.19 | 60.02 | 50.79 |
/wp-admin/admin.php?page=pricing-table-for-woo | 1,545 | 3.61 | 70.87 | 65.96 |
Tables Import / Export /wp-admin/admin.php?page=pricing-table-for-woo&tab=tables_import_export | 1,616 | 3.58 | 75.53 | 39.67 |
Overview /wp-admin/admin.php?page=pricing-table-for-woo&tab=overview | 1,398 | 2.53 | 46.32 | 48.73 |
Add New Table /wp-admin/admin.php?page=pricing-table-for-woo&tab=tables_add_new | 1,309 | 2.52 | 44.82 | 36.59 |
Show All Tables /wp-admin/admin.php?page=pricing-table-for-woo&tab=tables | 1,555 | 3.61 | 68.11 | 39.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_ptw_product_properties
- wp_ptw_product_property_codes
- wp_ptw_products
- wp_ptw_tables
- Zombie WordPress options were found after uninstall: 9 options
- ptw_plugin_activation_errors
- ptw_optw_data
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- ptw_plug_was_used
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pricing-table-for-woo&tab=tables
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
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
Please take a closer look at the following
- 206× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-product-pricing-tables/modules/promo/views/tpl/overviewTabContent.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/woo-product-pricing-tables/config.php:24
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/woo-product-pricing-tables/classes/Twig/Node/Expression/Parent.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/woo-product-pricing-tables/classes/Twig/Node/For.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/woo-product-pricing-tables/classes/Twig/Node/Print.php:18
- > PHP Fatal error
Uncaught Error: Class 'modulePtw' not found in wp-content/plugins/woo-product-pricing-tables/modules/pages/mod.php:2
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/woo-product-pricing-tables/classes/Twig/TokenParser/Extends.php:20
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woo-product-pricing-tables/modules/tables/views/tpl/showAdminNotice.php:2
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/woo-product-pricing-tables/classes/Twig/TokenParser/Sandbox.php:23
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/woo-product-pricing-tables/classes/Twig/Node/Expression.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=pricing-table-for-woo&tab=tables_add_new
- > Network (severe)
http://woobewoo-14700.kxcdn.com/_assets/tables/img/prev/rainbow.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=pricing-table-for-woo&tab=tables_add_new
- > Network (severe)
http://woobewoo-14700.kxcdn.com/_assets/tables/img/prev/flat-table.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=pricing-table-for-woo&tab=tables_add_new
- > Network (severe)
http://woobewoo-14700.kxcdn.com/_assets/tables/img/prev/gradient-standard.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=pricing-table-for-woo&tab=tables_add_new
- > Network (severe)
http://woobewoo-14700.kxcdn.com/_assets/tables/css/bootstrap.partial.min.css?ver=1.0.7 - Failed to load resource: net::ERR_CONNECTION_RESET
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Tags: There are too many tags (20 tag instead of maximum 10)
- Screenshots: Please add an image for screenshot #5 ([Pricing Table examples](https://woobewoo.com/plugins/woocommerce-pricing-table/))
woo-product-pricing-tables/ptw.php 85% from 13 tests
The principal PHP file in "Product Pricing Table by WooBeWoo" v. 1.0.7 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-product-pricing-tables.php" instead of "ptw.php")
- Requires at least: Required version does not match the one declared in readme.txt ("3.3" instead of "3.4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin49,221 lines of code in 448 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 285 | 2,965 | 7,764 | 21,096 |
JavaScript | 118 | 1,471 | 2,508 | 18,764 |
CSS | 39 | 414 | 404 | 5,814 |
SVG | 3 | 0 | 0 | 2,796 |
PO File | 1 | 296 | 349 | 736 |
JSON | 1 | 0 | 0 | 13 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 11.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 189.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 22 | |
Traits | 0 | |
Classes | 241 | |
▷ Abstract classes | 22 | 9.13% |
▷ Concrete classes | 219 | 90.87% |
▷ Final classes | 0 | 0.00% |
Methods | 1,730 | |
▷ Static methods | 244 | 14.10% |
▷ Public methods | 1,500 | 86.71% |
▷ Protected methods | 195 | 11.27% |
▷ Private methods | 35 | 2.02% |
Functions | 80 | |
▷ Named functions | 79 | 98.75% |
▷ Anonymous functions | 1 | 1.25% |
Constants | 129 | |
▷ Global constants | 67 | 51.94% |
▷ Class constants | 62 | 48.06% |
▷ Public constants | 62 | 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
38 PNG files occupy 0.18MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/minimal@2x.png | 3.38KB | 2.56KB | ▼ 24.15% |
css/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/images/ui-icons_666666_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
js/color_picker/images/map-pointer.png | 0.34KB | 0.25KB | ▼ 26.45% |
modules/tables/css/images/minimal@2x.png | 6.41KB | 2.51KB | ▼ 60.86% |