Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼4.88ms] Passed 4 tests
This is a short check of server-side resources used by Customer Reviews for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.38 | 34.23 ▼4.26 |
Dashboard /wp-admin | 3.67 ▲0.32 | 49.84 ▼15.32 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 48.73 ▼2.40 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 94.54 ▲2.48 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 34.97 ▲2.81 |
Server storage [IO: ▲20.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 834 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
ivole_activation_notice |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Customer Reviews for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲46 | 14.21 ▼0.05 | 1.57 ▼0.16 | 36.77 ▼6.22 |
Dashboard /wp-admin | 2,210 ▲36 | 5.56 ▼0.02 | 90.61 ▼10.46 | 43.73 ▼2.61 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 1.94 ▼0.07 | 39.98 ▲2.81 | 36.14 ▲2.21 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.21 ▲0.04 | 624.74 ▼49.88 | 46.05 ▼9.21 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.28 ▲0.08 | 95.81 ▼4.55 | 42.47 ▼1.38 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following items
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/customer-reviews-woocommerce/templates/badge-small.php
- > /wp-content/plugins/customer-reviews-woocommerce/templates/badge-wide-vs.php
- > /wp-content/plugins/customer-reviews-woocommerce/templates/compact-wide.php
- > /wp-content/plugins/customer-reviews-woocommerce/templates/badge-wide.php
- > /wp-content/plugins/customer-reviews-woocommerce/templates/compact.php
- 71× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: strCount in wp-content/plugins/customer-reviews-woocommerce/templates/badge-wide-vs.php on line 47
- > PHP Notice
Undefined variable: badgeClass in wp-content/plugins/customer-reviews-woocommerce/templates/compact.php on line 1
- > PHP Parse error
syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE) in wp-content/plugins/customer-reviews-woocommerce/vendor/giggsey/libphonenumber-for-php-lite/src/MultiFileMetadataSourceImpl.php on line 30
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/customer-reviews-woocommerce/vendor/giggsey/libphonenumber-for-php-lite/src/PhoneNumberUtil.php on line 1005
- > PHP Notice
Undefined variable: badgeVerified in wp-content/plugins/customer-reviews-woocommerce/templates/compact.php on line 3
- > PHP Notice
Undefined variable: avRating in wp-content/plugins/customer-reviews-woocommerce/templates/badge-wide.php on line 43
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/customer-reviews-woocommerce/templates/badge-small.php on line 3
- > PHP Notice
Undefined variable: verifiedPage in wp-content/plugins/customer-reviews-woocommerce/templates/badge-small.php on line 29
- > PHP Notice
Undefined variable: storeStats in wp-content/plugins/customer-reviews-woocommerce/templates/compact-wide.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/customer-reviews-woocommerce/templates/badge-wide-vs.php on line 15
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: woocommerce, customer reviews, review plugin, review reminder, review for discount
customer-reviews-woocommerce/ivole.php 92% from 13 tests
The main PHP script in "Customer Reviews for WooCommerce" version 5.38.4 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("customer-reviews-woocommerce.php" instead of "ivole.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin180,229 lines of code in 763 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 413 | 4,729 | 8,511 | 77,089 |
PO File | 22 | 26,659 | 38,046 | 71,681 |
SVG | 272 | 1 | 1 | 17,854 |
CSS | 7 | 233 | 3 | 6,370 |
JavaScript | 37 | 507 | 630 | 6,232 |
JSON | 5 | 1 | 0 | 459 |
Markdown | 3 | 80 | 0 | 279 |
Sass | 4 | 49 | 8 | 265 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 115)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 46.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 388.00 |
Average method complexity | 4.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 115.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 112 | |
▷ Abstract classes | 3 | 2.68% |
▷ Concrete classes | 109 | 97.32% |
▷ Final classes | 3 | 2.75% |
Methods | 1,233 | |
▷ Static methods | 188 | 15.25% |
▷ Public methods | 1,048 | 85.00% |
▷ Protected methods | 120 | 9.73% |
▷ Private methods | 65 | 5.27% |
Functions | 134 | |
▷ Named functions | 89 | 66.42% |
▷ Anonymous functions | 45 | 33.58% |
Constants | 112 | |
▷ Global constants | 9 | 8.04% |
▷ Class constants | 103 | 91.96% |
▷ Public constants | 62 | 60.19% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/shield-20.png | 1.14KB | 0.80KB | ▼ 30.03% |
img/small-star-full.png | 1.70KB | 0.82KB | ▼ 51.64% |
img/small-star-empty-light.png | 1.55KB | 0.76KB | ▼ 50.94% |
img/wide-star-empty-dark.png | 29.61KB | 0.86KB | ▼ 97.10% |
img/wide-star-full-dark.png | 29.63KB | 0.86KB | ▼ 97.10% |