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
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼9.19ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Product Review Sorting
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 46.44 ▲4.10 |
Dashboard /wp-admin | 3.58 ▲0.23 | 54.43 ▼11.40 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 51.28 ▼7.40 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 89.76 ▼22.05 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 46.46 ▲7.06 |
WC Review Sort /wp-admin/admin.php?page=wc-product-review-sorting-setting-admin | 3.48 | 34.98 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Product Review Sorting
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲162 | 13.48 ▼1.21 | 9.69 ▲8.12 | 42.08 ▲3.93 |
Dashboard /wp-admin | 2,224 ▲54 | 5.60 ▼0.05 | 98.01 ▼1.04 | 43.11 ▲2.08 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 2.14 ▲0.09 | 35.61 ▼4.33 | 33.47 ▼5.57 |
Add New Post /wp-admin/post-new.php | 1,571 ▲17 | 23.21 ▲4.98 | 706.09 ▲50.91 | 54.09 ▲2.98 |
Media Library /wp-admin/upload.php | 1,426 ▲29 | 4.32 ▲0.05 | 106.29 ▼1.44 | 47.10 ▼1.57 |
WC Review Sort /wp-admin/admin.php?page=wc-product-review-sorting-setting-admin | 923 | 2.15 | 24.43 | 28.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woocommerce-product-review-sorting/templates/woocommerce/single-product-reviews.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woocommerce-product-review-sorting/templates/woocommerce-2.3/single-product-reviews.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
woocommerce-product-review-sorting/product_review_sorting.php 92% from 13 tests
The main file in "WooCommerce Product Review Sorting" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-product-review-sorting.php" instead of "product_review_sorting.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin3,849 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 361 | 216 | 2,162 |
PHP | 14 | 341 | 255 | 1,428 |
PO File | 1 | 53 | 73 | 130 |
JavaScript | 3 | 17 | 2 | 129 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 31.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 165.00 |
Average method complexity | 5.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 2 | 3.08% |
▷ Public methods | 65 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/fpd/grid.png | 2.69KB | 0.13KB | ▼ 95.17% |
assets/images/dualcube.png | 3.29KB | 0.65KB | ▼ 80.17% |
assets/images/placeholder.png | 2.75KB | 2.92KB | 0.00% |
(invalid) assets/images/question_mark.png | 0.86KB | 0.00KB | ▼ 100.00% |
assets/images/dclogo-2x.png | 4.35KB | 1.74KB | ▼ 60.10% |