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.32MB] [CPU: ▼7.17ms] Passed 4 tests
Server-side resources used by Ryviu - Product Reviews for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 41.95 ▼9.50 |
Dashboard /wp-admin | 3.66 ▲0.35 | 49.54 ▼8.66 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 48.05 ▲0.50 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 90.69 ▼11.00 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 39.97 ▲1.23 |
Ryviu /wp-admin/options-general.php?page=ryviu-setting-admin | 3.49 | 32.54 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
ryviu_settings_reviews |
widget_recent-posts |
ryviu_frr_status |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Ryviu - Product Reviews for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲61 | 14.26 ▼0.37 | 1.54 ▼0.63 | 40.39 ▼6.49 |
Dashboard /wp-admin | 2,247 ▲67 | 5.61 ▲0.01 | 100.40 ▲8.56 | 81.09 ▲41.82 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 2.06 ▲0.08 | 35.03 ▼2.11 | 31.87 ▼1.54 |
Add New Post /wp-admin/post-new.php | 1,735 ▲207 | 22.49 ▼0.53 | 721.70 ▲49.01 | 54.35 ▼5.26 |
Media Library /wp-admin/upload.php | 1,458 ▲55 | 4.25 ▲0.07 | 102.28 ▼17.02 | 83.22 ▲33.53 |
Ryviu /wp-admin/options-general.php?page=ryviu-setting-admin | 1,264 | 1.87 | 34.03 | 65.94 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- ryviu_frr_status
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ryviu/ajax.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ryviu/includes/settings.php:390
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ryviu/includes/woo-hooks.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ryviu/includes/ajax-handle.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ryviu/includes/functions.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ryviu/includes/json-api.php:9
- > 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 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in ryviu/assets to your readme.txt
ryviu/ryviu.php Passed 13 tests
"Ryviu - Product Reviews for WooCommerce" version 3.1.24's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
95 characters long description:
Display reviews in product page for woocommerce, manager data and get from https://app.ryviu.io
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
Good job! No executable or dangerous file extensions detected2,159 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 388 | 409 | 1,611 |
CSS | 3 | 83 | 3 | 455 |
JavaScript | 4 | 14 | 14 | 93 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 25.17 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 16 | 23.53% |
▷ Public methods | 64 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.88% |
Functions | 37 | |
▷ Named functions | 36 | 97.30% |
▷ Anonymous functions | 1 | 2.70% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin