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.00MB] [CPU: ▼7.83ms] Passed 4 tests
A check of server-side resources used by Breview for WooCommerce - Order completion review, multi-criteria rating and marketplace (Dokan) type reviews
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 26.78 ▼17.32 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.82 ▲0.04 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.46 ▼3.58 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 90.34 ▼10.44 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 43.81 ▲5.48 |
Multi Star-rating /wp-admin/admin.php?page=breview-multi-rating-settings | 3.19 | 29.36 |
Style /wp-admin/admin.php?page=breview-style-settings | 3.19 | 35.50 |
Breview /wp-admin/admin.php?page=breview-settings | 3.19 | 30.01 |
MS Web Arts /wp-admin/admin.php?page=mswebarts-overview | 3.24 | 32.50 |
Emails /wp-admin/admin.php?page=breview-email-settings | 3.19 | 32.22 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Breview for WooCommerce - Order completion review, multi-criteria rating and marketplace (Dokan) type reviews
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲196 | 13.46 ▼0.95 | 12.74 ▲11.01 | 43.79 ▼4.33 |
Dashboard /wp-admin | 2,216 ▲36 | 5.71 ▲0.18 | 88.51 ▼4.80 | 85.07 ▲44.22 |
Posts /wp-admin/edit.php | 2,130 ▲48 | 1.98 ▼0.05 | 36.43 ▼3.11 | 35.40 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,708 ▲182 | 22.39 ▼0.63 | 738.37 ▲86.66 | 60.57 ▼0.66 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.24 ▲0.10 | 107.93 ▼4.31 | 51.37 ▲3.43 |
Multi Star-rating /wp-admin/admin.php?page=breview-multi-rating-settings | 806 | 2.14 | 27.49 | 24.33 |
Style /wp-admin/admin.php?page=breview-style-settings | 788 | 2.03 | 27.36 | 24.76 |
Breview /wp-admin/admin.php?page=breview-settings | 807 | 2.14 | 25.78 | 24.11 |
MS Web Arts /wp-admin/admin.php?page=mswebarts-overview | 921 | 2.14 | 24.15 | 44.82 |
Emails /wp-admin/admin.php?page=breview-email-settings | 803 | 1.99 | 23.71 | 24.99 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=breview-multi-rating-settings
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'msbr_breview_multi_rating_settings_page' not found or invalid function name
- > GET request to /wp-admin/admin.php?page=breview-style-settings
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'msbr_breview_style_settings_page' not found or invalid function name
- > GET request to /wp-admin/admin.php?page=breview-settings
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'msbr_breview_general_settings_page' not found or invalid function name
- > GET request to /wp-admin/admin.php?page=breview-email-settings
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'msbr_breview_email_settings_page' not found or invalid function name
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
Almost there! Just fix the following items
- 54× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function mailer() on null in wp-content/plugins/breview/templates/emails/completed.php:23
- > PHP Warning
include_once(inc/functions/hooks-actions.php): failed to open stream: No such file or directory in wp-content/plugins/breview/inc/init.php on line 10
- > PHP Notice
Undefined variable: data in wp-content/plugins/breview/templates/product/add-review-popup-product.php on line 16
- > PHP Warning
include_once(): Failed opening 'inc/functions/hooks-actions.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/breview/inc/init.php on line 10
- > PHP Warning
include_once(): Failed opening 'inc/functions/review-form.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/breview/inc/init.php on line 9
- > PHP Warning
include_once(inc/classes/class-msbr-template-loader.php): failed to open stream: No such file or directory in wp-content/plugins/breview/inc/init.php on line 16
- > PHP Notice
Trying to get property 'order' of non-object in wp-content/plugins/breview/templates/emails/completed.php on line 19
- > PHP Notice
Undefined variable: data in wp-content/plugins/breview/templates/emails/completed.php on line 19
- > PHP Notice
Undefined variable: data in wp-content/plugins/breview/templates/emails/completed.php on line 20
- > PHP Warning
include_once(): Failed opening 'inc/admin/options-panel/options-panel.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/breview/inc/init.php on line 5
- > 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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: breview, woocommerce, review, marketplace, order...
breview/breview.php Passed 13 tests
"Breview for WooCommerce - Order completion review, multi-criteria rating and marketplace (Dokan) type reviews" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
103 characters long description:
The way reviews should be handled in every WooCommerce websites just like the traditional marketplaces.
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
Good job! No executable or dangerous file extensions detected2,705 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 265 | 401 | 1,540 |
CSS | 7 | 24 | 43 | 983 |
JavaScript | 9 | 19 | 72 | 180 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 62.50% |
▷ Protected methods | 3 | 37.50% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/assets/images/logo.png | 2.93KB | 1.65KB | ▼ 43.70% |
inc/admin/assets/images/trustpilot-logo.png | 3.28KB | 2.28KB | ▼ 30.46% |
inc/admin/assets/images/icon.png | 1.43KB | 0.69KB | ▼ 51.71% |