Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.83MB] [CPU: ▼167.11ms] Passed 4 tests
Analyzing server-side resources used by Customer Reviews for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.77 | 29.36 ▲2.84 |
Dashboard /wp-admin | 3.94 ▲0.87 | 41.21 ▲0.20 |
Posts /wp-admin/edit.php | 3.98 ▲0.86 | 37.71 ▲3.13 |
Add New Post /wp-admin/post-new.php | 6.47 ▲1.03 | 67.65 ▼674.61 |
Media Library /wp-admin/upload.php | 3.84 ▲0.83 | 27.11 ▲3.49 |
Customer Reviews (Trustindex) New /wp-admin/admin.php?page=customer-reviews-for-woocommerce/settings.php | 3.81 | 29.20 |
Server storage [IO: ▲2.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 105 new files
Database: no new tables, 3 new options
New WordPress options |
---|
widget_trustindex_woocommerce_widget |
trustindex-woocommerce-active |
trustindex-woocommerce-version |
Browser metrics Passed 4 tests
A check of browser resources used by Customer Reviews for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲167 | 15.57 ▼0.41 | 9.43 ▲4.50 | 74.88 ▼3.39 |
Dashboard /wp-admin | 3,032 ▲136 | 6.17 ▲0.01 | 115.43 ▼13.18 | 198.32 ▲28.97 |
Posts /wp-admin/edit.php | 2,846 ▲103 | 3.39 ▲0.02 | 64.67 ▲1.03 | 142.16 ▲6.29 |
Add New Post /wp-admin/post-new.php | 3,535 ▼208 | 18.44 ▼0.35 | 422.25 ▼19.35 | 183.67 ▲1.91 |
Media Library /wp-admin/upload.php | 1,856 ▲104 | 5.55 ▲0.10 | 126.70 ▼19.02 | 201.97 ▲23.07 |
Customer Reviews (Trustindex) New /wp-admin/admin.php?page=customer-reviews-for-woocommerce/settings.php | 948 | 2.47 | 46.36 | 69.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- widget_trustindex_woocommerce_widget
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
Even though no errors were found, this is by no means 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
Please fix the following
- 9× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/customer-reviews-for-woocommerce/tabs/invite_list.php
- > /wp-content/plugins/customer-reviews-for-woocommerce/tabs/troubleshooting.php
- > /wp-content/plugins/customer-reviews-for-woocommerce/customer-reviews-for-woocommerce.php
- > /wp-content/plugins/customer-reviews-for-woocommerce/settings.php
- > /wp-content/plugins/customer-reviews-for-woocommerce/tabs/setup.php
- > /wp-content/plugins/customer-reviews-for-woocommerce/tabs/more_features.php
- > /wp-content/plugins/customer-reviews-for-woocommerce/trustindex-woocommerce-widget.class.php
- > /wp-content/plugins/customer-reviews-for-woocommerce/tabs/my_reviews.php
- > /wp-content/plugins/customer-reviews-for-woocommerce/tabs/unsubscribes.php
- 28× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: ti_command in wp-content/plugins/customer-reviews-for-woocommerce/tabs/setup/previous_invites.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function get_previous_orders() on null in wp-content/plugins/customer-reviews-for-woocommerce/tabs/setup/previous_invites.php:36
- > PHP Notice
Undefined variable: ti_command in wp-content/plugins/customer-reviews-for-woocommerce/tabs/setup/show_reviews.php on line 76
- > PHP Notice
Undefined variable: list_page_term in wp-content/plugins/customer-reviews-for-woocommerce/tabs/setup/_filter_pagination.php on line 2
- > PHP Notice
Undefined variable: ti_command in wp-content/plugins/customer-reviews-for-woocommerce/tabs/setup/setup_trustindex.php on line 28
- > PHP Notice
Undefined variable: page_url in wp-content/plugins/customer-reviews-for-woocommerce/tabs/setup/_filter_pagination.php on line 2
- > PHP Notice
Undefined variable: trustindex_woocommerce in wp-content/plugins/customer-reviews-for-woocommerce/tabs/setup/setup_trustindex.php on line 49
- > PHP Notice
Undefined variable: _page in wp-content/plugins/customer-reviews-for-woocommerce/tabs/setup/setup_trustindex.php on line 9
- > PHP Notice
Undefined variable: ti_command in wp-content/plugins/customer-reviews-for-woocommerce/tabs/setup/show_reviews.php on line 132
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/customer-reviews-for-woocommerce/tabs/setup/show_reviews.php:137
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in customer-reviews-for-woocommerce/assets to your readme.txt
customer-reviews-for-woocommerce/customer-reviews-for-woocommerce.php 92% from 13 tests
The principal PHP file in "Customer Reviews for WooCommerce" v. 3.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 162 characters long)
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 plugin7,741 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 12 | 46 | 7,711 |
SVG | 3 | 0 | 0 | 26 |
JavaScript | 3 | 0 | 0 | 3 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 108.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 266.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 107 | |
▷ Static methods | 10 | 9.35% |
▷ Public methods | 105 | 98.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.87% |
Functions | 16 | |
▷ Named functions | 3 | 18.75% |
▷ Anonymous functions | 13 | 81.25% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/img/trustindex-sign-logo.png | 0.68KB | 0.46KB | ▼ 32.04% |