Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/rich-reviews/lib/rich-reviews-options.php+42
array_merge(): Expected parameter 1 to be an array, bool given
Server metrics [RAM: ▲0.62MB] [CPU: ▲1.25ms] 75% from 4 tests
A check of server-side resources used by Rich Reviews by Starfish
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,190.63ms on /wp-admin/admin.php?page=fp_admin_add_edit)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.58 | 55.40 ▲16.93 |
Dashboard /wp-admin | 3.97 ▲0.66 | 51.33 ▲3.20 |
Posts /wp-admin/edit.php | 4.02 ▲0.66 | 54.66 ▲4.90 |
Add New Post /wp-admin/post-new.php | 6.50 ▲0.62 | 88.31 ▼9.62 |
Media Library /wp-admin/upload.php | 3.83 ▲0.60 | 44.31 ▲6.51 |
Add New Review /wp-admin/admin.php?page=fp_admin_add_edit | 3.97 | 1,190.63 |
Instructions /wp-admin/admin.php?page=rich_reviews_settings_main | 3.97 | 164.25 |
Approved Reviews /wp-admin/admin.php?page=fp_admin_approved_reviews_page | 4.02 | 159.45 |
Options /wp-admin/admin.php?page=fp_admin_options_page | 3.79 | 35.60 |
Pending Reviews /wp-admin/admin.php?page=fp_admin_pending_reviews_page | 4.02 | 162.44 |
Server storage [IO: ▲1.88MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 56 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_richreviews |
New WordPress options |
---|
rr_markup_options |
rr_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
rr_form_options |
theysaidso_admin_options |
widget_rr_show_all |
rr_display_options |
... |
Browser metrics Passed 4 tests
Rich Reviews by Starfish: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,984 ▲238 | 14.00 ▼0.13 | 9.16 ▲7.30 | 43.82 ▼0.37 |
Dashboard /wp-admin | 2,292 ▲100 | 4.88 ▼0.07 | 103.43 ▼11.29 | 81.00 ▲38.96 |
Posts /wp-admin/edit.php | 2,189 ▲103 | 2.21 ▲0.19 | 40.61 ▲3.85 | 37.82 ▲6.59 |
Add New Post /wp-admin/post-new.php | 1,759 ▲245 | 22.41 ▲4.71 | 748.97 ▲50.26 | 38.39 ▼19.15 |
Media Library /wp-admin/upload.php | 1,477 ▲89 | 4.35 ▲0.11 | 98.17 ▼10.90 | 85.74 ▲40.72 |
Add New Review /wp-admin/admin.php?page=fp_admin_add_edit | 1,981 | 1.93 | 32.11 | 59.68 |
Instructions /wp-admin/admin.php?page=rich_reviews_settings_main | 2,142 | 1.82 | 27.16 | 65.58 |
Approved Reviews /wp-admin/admin.php?page=fp_admin_approved_reviews_page | 2,100 | 1.73 | 25.34 | 45.58 |
Options /wp-admin/admin.php?page=fp_admin_options_page | 988 | 1.82 | 27.20 | 30.51 |
Pending Reviews /wp-admin/admin.php?page=fp_admin_pending_reviews_page | 2,100 | 1.77 | 26.74 | 40.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_richreviews
- This plugin did not uninstall successfully, leaving 12 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- rr_markup_options
- rr_user_options
- widget_rr_show_all
- rr_admin_options
- widget_theysaidso_widget
- rr_display_options
- rr_form_options
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
- 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/rich-reviews/lib/rich-reviews-settings-communitybar.inc.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rich-reviews/views/frontend/form/rr-text-input.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rich-reviews/views/frontend/form/rr-textarea-input.php:5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/rich-reviews/lib/rich-reviews-admin-tables.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/template.php' (include_path='.:/usr/share/php') in wp-content/plugins/rich-reviews/views/frontend/snippets.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/template.php): failed to open stream: No such file or directory in wp-content/plugins/rich-reviews/views/frontend/snippets.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/rich-reviews/views/admin/dashboard/rr_form.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/rich-reviews/lib/rich-reviews-options.php:888
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/rich-reviews/views/admin/add-edit.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/rich-reviews/views/admin/dashboard/instructions.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Please describe screenshot #7 in rich-reviews/assets to your readme.txt
rich-reviews/rich-reviews.php 92% from 13 tests
The primary PHP file in "Rich Reviews by Starfish" version 1.9.19 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 159 characters long)
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 detected5,217 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 369 | 210 | 3,595 |
SVG | 4 | 0 | 0 | 627 |
Sass | 4 | 64 | 19 | 594 |
CSS | 2 | 25 | 8 | 296 |
JavaScript | 3 | 8 | 0 | 99 |
CoffeeScript | 1 | 2 | 0 | 6 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 24.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 113 | |
▷ Static methods | 9 | 7.96% |
▷ Public methods | 113 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 43 | |
▷ Named functions | 42 | 97.67% |
▷ Anonymous functions | 1 | 2.33% |
Constants | 56 | |
▷ Global constants | 56 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 1.49MB with 0.77MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/starfish.png | 8.65KB | 3.98KB | ▼ 54.00% |
assets/icon-128x128.png | 8.22KB | 3.84KB | ▼ 53.32% |
assets/screenshot-2.png | 9.54KB | 2.03KB | ▼ 78.75% |
assets/default_testimonial_source_icon.png | 5.30KB | 4.45KB | ▼ 16.09% |
assets/alert.png | 12.59KB | 5.27KB | ▼ 58.11% |