Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.78MB] [CPU: ▼108.92ms] 75% from 4 tests
This is a short check of server-side resources used by Get Better Reviews for WooCommerce
It is recommended to improve the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.78MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.89 ▲6.05 | 67.30 ▲39.79 |
Dashboard /wp-admin | 8.90 ▲5.84 | 88.48 ▲47.84 |
Posts /wp-admin/edit.php | 8.90 ▲5.79 | 80.43 ▲40.97 |
Add New Post /wp-admin/post-new.php | 11.06 ▲5.61 | 112.68 ▼551.91 |
Media Library /wp-admin/upload.php | 8.90 ▲5.90 | 62.93 ▲35.49 |
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius | 8.90 | 66.77 |
Server storage [IO: ▲5.92MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 317 new files
Database: 2 new tables, 13 new options
New tables |
---|
wp_wp2lwtsr_reviews |
wp_wp2lwtsr_reviewmeta |
New WordPress options |
---|
fs_accounts |
wtsr_limit_users |
wtsr_db_version |
fs_gdpr |
wtsr_check_ts_credentials_empty |
fs_debug_mode |
wtsr_3_0_0_update |
wtsr_check_trustpilot_credentials_empty |
wtsr_limit_days |
wtsr_version |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Get Better Reviews for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,857 ▲256 | 16.09 ▲0.29 | 8.25 ▲3.25 | 75.92 ▲0.99 |
Dashboard /wp-admin | 3,006 ▲111 | 6.11 ▼0.19 | 135.14 ▼3.22 | 198.47 ▲25.67 |
Posts /wp-admin/edit.php | 2,818 ▲75 | 3.37 ▲0.14 | 66.10 ▲2.02 | 157.55 ▲19.05 |
Add New Post /wp-admin/post-new.php | 1,928 ▼1,778 | 15.94 ▼3.14 | 396.38 ▼32.57 | 156.45 ▼6.07 |
Media Library /wp-admin/upload.php | 1,824 ▲75 | 5.58 ▲0.07 | 150.62 ▲4.30 | 201.28 ▲18.17 |
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius | 1,512 | 2.54 | 55.87 | 110.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/more-better-reviews-for-woocommerce/freemius/includes/class-freemius.php+8911
Undefined property: stdClass::$plugins
- Zombie tables were found after uninstall: 2 tables
- wp_wp2lwtsr_reviews
- wp_wp2lwtsr_reviewmeta
- Zombie WordPress options detected upon uninstall: 13 options
- fs_debug_mode
- wtsr_check_ts_credentials_empty
- wtsr_db_version
- wtsr_limit_users
- wtsr_limit_days
- fs_gdpr
- wtsr_woocommerce_only_mode_enabled
- wtsr_3_0_0_update
- fs_accounts
- wtsr_limit_message
- ...
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
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/more-better-reviews-for-woocommerce/public/partials/wtsr-public-display.php
- > /wp-content/plugins/more-better-reviews-for-woocommerce/admin/partials/welcome-page/wizard-tutorial-de.php
- > /wp-content/plugins/more-better-reviews-for-woocommerce/admin/partials/welcome-page/tutorial-de.php
- > /wp-content/plugins/more-better-reviews-for-woocommerce/admin/partials/welcome-page/wizard-tutorial-en.php
- > /wp-content/plugins/more-better-reviews-for-woocommerce/admin/partials/welcome-page/tutorial-en.php
- 24× 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 get_bloginfo() in wp-content/plugins/more-better-reviews-for-woocommerce/includes/lib/Wtsr_Required_Plugins.php:164
- > PHP Fatal error
Uncaught Error: Class 'Wtsr_License' not found in wp-content/plugins/more-better-reviews-for-woocommerce/admin/partials/wtsr-admin-wizard-block-license_warning.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/more-better-reviews-for-woocommerce/admin/partials/wtsr-admin-generate-order-reviews-table.php:12
- > PHP Notice
Undefined variable: mysql_orders in wp-content/plugins/more-better-reviews-for-woocommerce/admin/partials/wtsr-admin-generate-order-reviews-table-list.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/more-better-reviews-for-woocommerce/templates/emails/plain/wc-customer-review-thankyou.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/more-better-reviews-for-woocommerce/admin/partials/blocks/available-shortcodes-list.php:1
- > PHP Fatal error
Uncaught Error: Class 'TSManager' not found in wp-content/plugins/more-better-reviews-for-woocommerce/public/partials/shortcodes/woo_review_page.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/more-better-reviews-for-woocommerce/includes/class-wtsr-rest.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/more-better-reviews-for-woocommerce/public/partials/shortcodes/woo_review_page_empty.php:7
- > PHP Notice
Undefined variable: order in wp-content/plugins/more-better-reviews-for-woocommerce/templates/emails/plain/wc-customer-review-request.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 22 tag instead of maximum 10
more-better-reviews-for-woocommerce/more-better-reviews-for-woocommerce.php Passed 13 tests
"Get Better Reviews for WooCommerce" version 3.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
97 characters long description:
Get Better Reviews for WooCommerce is an automated reviews request system for WooCommerce reviews
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected72,136 lines of code in 243 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 201 | 11,374 | 18,597 | 47,827 |
PO File | 14 | 8,147 | 10,273 | 18,864 |
CSS | 16 | 290 | 76 | 2,958 |
JavaScript | 8 | 421 | 122 | 2,124 |
Markdown | 2 | 122 | 0 | 318 |
JSON | 2 | 0 | 0 | 45 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,029)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 63.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,029.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 91 | |
▷ Abstract classes | 5 | 5.49% |
▷ Concrete classes | 86 | 94.51% |
▷ Final classes | 0 | 0.00% |
Methods | 1,657 | |
▷ Static methods | 405 | 24.44% |
▷ Public methods | 1,237 | 74.65% |
▷ Protected methods | 55 | 3.32% |
▷ Private methods | 365 | 22.03% |
Functions | 114 | |
▷ Named functions | 114 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 136 | |
▷ Global constants | 104 | 76.47% |
▷ Class constants | 32 | 23.53% |
▷ Public constants | 32 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
26 PNG files occupy 0.17MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
admin/img/three_star.png | 1.33KB | 0.78KB | ▼ 41.15% |
public/img/star-gray.png | 1.58KB | 0.84KB | ▼ 46.70% |
admin/img/icon-woocommerce.png | 4.06KB | 2.05KB | ▼ 49.52% |
admin/img/one_star.png | 1.33KB | 0.78KB | ▼ 41.28% |