Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲2.16MB] [CPU: ▼276.47ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Reviews by ReviewPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.58 ▲2.07 | 68.39 ▲15.88 |
Dashboard /wp-admin | 5.60 ▲2.19 | 49.79 ▲16.11 |
Posts /wp-admin/edit.php | 5.89 ▲2.25 | 52.13 ▲15.26 |
Add New Post /wp-admin/post-new.php | 9.10 ▲2.13 | 109.06 ▼1,147.32 |
Media Library /wp-admin/upload.php | 5.52 ▲2.23 | 34.64 ▲10.31 |
Settings /wp-admin/admin.php?page=reviewpress_settings | 5.53 | 39.78 |
Freemius Debug [v.1.2.1.5] /wp-admin/admin.php?page=freemius | 5.60 | 38.60 |
Shortcode /wp-admin/admin.php?page=reviewpress_shortcode | 5.52 | 36.81 |
Add Review /wp-admin/post-new.php?post_type=cptreviewpress | 5.75 | 53.32 |
All Reviews /wp-admin/edit.php?post_type=cptreviewpress | 5.60 | 49.30 |
Server storage [IO: ▲1.70MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 156 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wpbr_custom_css |
wpbr_reviews |
REVIEWPRESS_VERSION |
fs_debug_mode |
wpbr_display |
fs_api_cache |
wpbr_form |
fs_accounts |
fs_active_plugins |
Browser metrics Passed 4 tests
WordPress Reviews by ReviewPress: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,243 ▲521 | 18.12 ▲2.47 | 9.05 ▲3.25 | 16.83 ▲14.56 |
Dashboard /wp-admin | 3,214 ▲353 | 8.38 ▲2.21 | 149.91 ▲7.01 | 173.82 ▲8.53 |
Posts /wp-admin/edit.php | 3,042 ▲354 | 5.08 ▲1.72 | 80.35 ▲15.11 | 157.39 ▲14.77 |
Add New Post /wp-admin/post-new.php | 1,751 ▲1 | 16.04 ▼5.72 | 404.08 ▼6.65 | 155.65 ▲2.23 |
Media Library /wp-admin/upload.php | 1,827 ▲126 | 5.70 ▲0.23 | 109.52 ▼35.26 | 203.27 ▲19.28 |
Settings /wp-admin/admin.php?page=reviewpress_settings | 2,317 | 5.70 | 105.42 | 140.67 |
Freemius Debug [v.1.2.1.5] /wp-admin/admin.php?page=freemius | 1,736 | 4.90 | 72.13 | 129.13 |
Shortcode /wp-admin/admin.php?page=reviewpress_shortcode | 1,494 | 4.83 | 69.34 | 116.79 |
Add Review /wp-admin/post-new.php?post_type=cptreviewpress | 2,268 | 5.67 | 94.90 | 145.21 |
All Reviews /wp-admin/edit.php?post_type=cptreviewpress | 1,814 | 5.48 | 76.88 | 128.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/reviewpress/freemius/includes/class-freemius.php+4348
First parameter must either be an object or the name of an existing class
- The uninstall procedure has failed, leaving 9 options in the database
- fs_active_plugins
- fs_api_cache
- wpbr_reviews
- fs_accounts
- fs_debug_mode
- wpbr_form
- wpbr_custom_css
- REVIEWPRESS_VERSION
- wpbr_display
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/reviewpress/include/shortcode-page.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/reviewpress/include/class-shortcode.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/reviewpress/include/shortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reviewpress/include/class.upgrade.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reviewpress/include/class-all-review.php:19
- > 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 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
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
reviewpress/reviewpress.php 92% from 13 tests
The main PHP script in "WordPress Reviews by ReviewPress" version 1.0.5 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected31,322 lines of code in 134 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 84 | 3,791 | 8,651 | 15,937 |
JavaScript | 11 | 1,153 | 1,044 | 8,950 |
PO File | 4 | 1,422 | 1,439 | 3,651 |
Sass | 15 | 267 | 82 | 1,636 |
CSS | 12 | 52 | 51 | 834 |
Markdown | 2 | 68 | 0 | 214 |
JSON | 2 | 0 | 0 | 42 |
SVG | 2 | 0 | 0 | 30 |
YAML | 2 | 2 | 0 | 28 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,019)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 40.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,019.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 44 | |
▷ Abstract classes | 2 | 4.55% |
▷ Concrete classes | 42 | 95.45% |
▷ Final classes | 0 | 0.00% |
Methods | 737 | |
▷ Static methods | 90 | 12.21% |
▷ Public methods | 565 | 76.66% |
▷ Protected methods | 12 | 1.63% |
▷ Private methods | 160 | 21.71% |
Functions | 55 | |
▷ Named functions | 54 | 98.18% |
▷ Anonymous functions | 1 | 1.82% |
Constants | 97 | |
▷ Global constants | 80 | 82.47% |
▷ Class constants | 17 | 17.53% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/star-off.png | 0.91KB | 0.81KB | ▼ 10.97% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/images/star-on.png | 1.01KB | 1.11KB | 0.00% |
assets/images/star-half.png | 0.94KB | 1.06KB | 0.00% |