Benchmarks
Plugin footprint 48% 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.14MB] [CPU: ▼1.14ms] Passed 4 tests
A check of server-side resources used by RIVIO for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.99 ▲3.77 |
Dashboard /wp-admin | 3.46 ▲0.16 | 46.84 ▼2.34 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 45.31 ▲0.88 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 83.55 ▼6.88 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.86 ▲4.89 |
Server storage [IO: ▲2.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for RIVIO for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 13.32 ▼1.05 | 4.68 ▲3.07 | 43.48 ▲2.03 |
Dashboard /wp-admin | 2,223 ▲41 | 5.89 ▼0.02 | 108.08 ▲1.81 | 38.44 ▼5.89 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.02 ▲0.00 | 32.71 ▼3.20 | 34.03 ▲1.88 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 23.18 ▲5.56 | 646.99 ▲4.88 | 56.73 ▼16.60 |
Media Library /wp-admin/upload.php | 1,408 ▲17 | 4.19 ▼0.08 | 99.92 ▲3.59 | 42.85 ▼0.93 |
Uninstaller [IO: ▲2.32MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attentionZombie WordPress options were found after uninstall: 7 options
- Uninstall procedure validation failed for this plugin
- > Compile error in wp-content/plugins/rivio-reviews-for-woocommerce/uninstall.php+8
Cannot redeclare rivio_get_default_settings() (previously declared in wp-content/plugins/rivio-reviews-for-woocommerce/rivio.php:55)
- This plugin has failed uninstalling correctly, leaving 26 files (2.32MB) in the plugin directory
- (new file) assets/css/side-menu-logo.css
- (new file) assets/images/preview-tab.png
- (new file) assets/images/logo.png
- (new file) assets/css/rivio.css
- (new file) assets/images/preview-custom.png
- (new file) assets/images/preview-footer.png
- (new file) assets/images/animations/testimonial.gif
- (new file) assets/images/animations/seller-badge.gif
- (new file) assets/images/badge.png
- (new file) assets/images/logo_small.png
- ...
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 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)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Rivio embed module.), #2 (Rivio embed module.), #3 (Post-Purchase emails)
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
rivio-reviews-for-woocommerce/rivio.php 92% from 13 tests
"RIVIO for WooCommerce" version 1.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rivio-reviews-for-woocommerce.php" instead of "rivio.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,374 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 287 | 70 | 975 |
HTML | 2 | 15 | 12 | 290 |
CSS | 2 | 18 | 0 | 88 |
JavaScript | 2 | 2 | 0 | 16 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.40MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/preview-footer.png | 27.13KB | 11.41KB | ▼ 57.96% |
assets/images/logo.png | 1.38KB | 1.51KB | 0.00% |
screenshot-3.png | 80.96KB | 29.04KB | ▼ 64.13% |
assets/images/preview-custom.png | 26.86KB | 11.17KB | ▼ 58.40% |
assets/images/testimonial.png | 13.54KB | 5.71KB | ▼ 57.79% |