Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼146.11ms] Passed 4 tests
An overview of server-side resources used by Product Reviews for WooCommerce - Add Customer Review Rating and Recommendations, Set Review Reminder
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 36.88 ▲13.29 |
Dashboard /wp-admin | 3.06 ▲0.00 | 42.86 ▼7.08 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 43.20 ▼4.65 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 80.56 ▼572.41 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 32.05 ▼0.31 |
Server storage [IO: ▲7.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 147 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Reviews for WooCommerce - Add Customer Review Rating and Recommendations, Set Review Reminder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.90 ▲0.35 | 12.49 ▲2.29 | 44.42 ▼10.90 |
Dashboard /wp-admin | 2,973 ▲39 | 6.05 ▲0.09 | 143.50 ▼13.12 | 107.53 ▼0.18 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.02 | 71.25 ▲4.85 | 85.20 ▼5.73 |
Add New Post /wp-admin/post-new.php | 1,672 ▼11 | 18.66 ▼0.05 | 373.66 ▼48.27 | 104.83 ▼4.50 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▲0.02 | 154.95 ▼17.42 | 114.52 ▲0.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/product-reviews-for-woocommerce/public/partials/product-reviews-for-woocommerce-public-display.php
- > /wp-content/plugins/product-reviews-for-woocommerce/common/partials/product-reviews-for-woocommerce-common-display.php
- 20× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
require_once(PRODUCT_REVIEWS_FOR_WOOCOMMERCE_DIR_PATH/includes/class-product-reviews-for-woocommerce-qna-data.php): failed to open stream: No such file or directory in wp-content/plugins/product-reviews-for-woocommerce/admin/partials/product-reviews-for-woocommerce-review-qna-display.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'WP_Comment_Query' not found in wp-content/plugins/product-reviews-for-woocommerce/common/partials/product-reviews-for-woocommerce-common-grid-view.php:21
- > PHP Fatal error
Uncaught Error: Class 'WP_Comment_Query' not found in wp-content/plugins/product-reviews-for-woocommerce/common/partials/product-reviews-for-woocommerce-common-list-view.php:20
- > PHP Fatal error
require_once(): Failed opening required 'PRODUCT_REVIEWS_FOR_WOOCOMMERCE_DIR_PATH/includes/class-product-reviews-for-woocommerce-qna-data.php' (include_path='.:/usr/share/php') in wp-content/plugins/product-reviews-for-woocommerce/admin/partials/product-reviews-for-woocommerce-review-qna-display.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/product-reviews-for-woocommerce/onboarding/templates/product-reviews-for-woocommerce-onboarding-template.php:15
- > PHP Warning
Use of undefined constant PRODUCT_REVIEWS_FOR_WOOCOMMERCE_DIR_PATH - assumed 'PRODUCT_REVIEWS_FOR_WOOCOMMERCE_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/product-reviews-for-woocommerce/admin/partials/product-reviews-for-woocommerce-review-qna-display.php on line 17
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/product-reviews-for-woocommerce/includes/class-product-reviews-for-woocommerce-qna-data.php on line 13
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/product-reviews-for-woocommerce/includes/class-product-reviews-for-woocommerce-review-data.php on line 13
- > PHP Fatal error
Uncaught Error: Call to a member function get_id() on null in wp-content/plugins/product-reviews-for-woocommerce/public/partials/product-reviews-for-woocommerce-qna-callback.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/product-reviews-for-woocommerce/public/partials/product-reviews-for-woocommerce-review-vote-html.php:15
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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:
- Requires php: Invalid plugin version format
product-reviews-for-woocommerce/product-reviews-for-woocommerce.php 92% from 13 tests
Analyzing the main PHP file in "Product Reviews for WooCommerce - Add Customer Review Rating and Recommendations, Set Review Reminder" version 1.0.2
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 201 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected44,915 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 14 | 0 | 0 | 35,217 |
PHP | 44 | 784 | 1,949 | 5,294 |
CSS | 17 | 573 | 130 | 2,994 |
JavaScript | 12 | 129 | 66 | 827 |
PO File | 1 | 248 | 332 | 568 |
XML | 1 | 1 | 0 | 10 |
Sass | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 49.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 5.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 96.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 140 | |
▷ Static methods | 11 | 7.86% |
▷ Public methods | 128 | 91.43% |
▷ Protected methods | 4 | 2.86% |
▷ Private methods | 8 | 5.71% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
23 PNG files occupy 0.38MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/src/images/documentation.png | 1.48KB | 1.58KB | 0.00% |
admin/src/images/mwb-logo.png | 0.34KB | 0.26KB | ▼ 22.09% |
admin/image/Upload-Image.png | 4.78KB | 2.30KB | ▼ 51.80% |
admin/image/banner.png | 220.90KB | 68.96KB | ▼ 68.78% |
admin/src/images/connected.png | 1.32KB | 1.07KB | ▼ 18.77% |