Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼1.22ms] Passed 4 tests
An overview of server-side resources used by Order Reviews for WooCommerce Free
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 39.95 ▼0.33 |
Dashboard /wp-admin | 3.73 ▲0.43 | 50.33 ▼1.17 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 48.73 ▼4.80 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.37 | 91.65 ▲3.68 |
Media Library /wp-admin/upload.php | 3.59 ▲0.37 | 38.03 ▲1.44 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Order Reviews for WooCommerce Free
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.28 ▼1.31 | 4.27 ▲2.37 | 40.40 ▼12.85 |
Dashboard /wp-admin | 2,215 ▲33 | 5.88 ▲1.01 | 108.20 ▼6.40 | 42.93 ▲0.73 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.03 ▲0.04 | 34.35 ▼6.10 | 36.21 ▼1.04 |
Add New Post /wp-admin/post-new.php | 1,546 ▲4 | 23.52 ▲5.22 | 647.07 ▲38.39 | 61.36 ▲1.36 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.24 ▼0.01 | 100.05 ▲1.28 | 41.13 ▼3.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/order-reviews-for-woocommerce/render/Front/markup/popup-design-1.php:1
- > PHP Fatal error
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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: rating, woocommerce, order review for woocommerce, review, order review
order-reviews-for-woocommerce/order-reviews-for-woocommerce.php Passed 13 tests
The principal PHP file in "Order Reviews for WooCommerce Free" v. 1.0.0 is loaded by WordPress automatically on each request
72 characters long description:
A review and feedback capture plugin for WooCommerce. Powered by Jompha.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,219 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 244 | 145 | 1,426 |
CSS | 7 | 56 | 25 | 590 |
JavaScript | 4 | 32 | 9 | 165 |
SVG | 1 | 0 | 0 | 38 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 15.11 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 66 | |
▷ Static methods | 11 | 16.67% |
▷ Public methods | 47 | 71.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 28.79% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
7 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/rating-2.png | 3.49KB | 1.70KB | ▼ 51.34% |
resources/images/rating-1.png | 4.27KB | 2.23KB | ▼ 47.87% |
resources/images/rating-0.png | 3.96KB | 2.26KB | ▼ 42.99% |
resources/images/jsp-banner.png | 68.80KB | 28.39KB | ▼ 58.73% |
resources/images/rating-5.png | 4.05KB | 2.38KB | ▼ 41.17% |