68% reviewpress

Code Review | WordPress Reviews by ReviewPress

WordPress plugin WordPress Reviews by ReviewPress scored 68% from 54 tests.

About plugin

  • Plugin page: reviewpress
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.4
  • WordPress version: 5.9.2
  • First release: Aug 14, 2011
  • Latest release: Mar 31, 2017
  • Number of updates: 35
  • Update frequency: every 59.1 days
  • Top authors: hiddenpearls (60%)Ramoonus (42.86%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active / 6,637 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /5.58 ▲2.0768.39 ▲15.88
Dashboard /wp-admin5.60 ▲2.1949.79 ▲16.11
Posts /wp-admin/edit.php5.89 ▲2.2552.13 ▲15.26
Add New Post /wp-admin/post-new.php9.10 ▲2.13109.06 ▼1,147.32
Media Library /wp-admin/upload.php5.52 ▲2.2334.64 ▲10.31
Settings /wp-admin/admin.php?page=reviewpress_settings5.5339.78
Freemius Debug [v.1.2.1.5] /wp-admin/admin.php?page=freemius5.6038.60
Shortcode /wp-admin/admin.php?page=reviewpress_shortcode5.5236.81
Add Review /wp-admin/post-new.php?post_type=cptreviewpress5.7553.32
All Reviews /wp-admin/edit.php?post_type=cptreviewpress5.6049.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,243 ▲52118.12 ▲2.479.05 ▲3.2516.83 ▲14.56
Dashboard /wp-admin3,214 ▲3538.38 ▲2.21149.91 ▲7.01173.82 ▲8.53
Posts /wp-admin/edit.php3,042 ▲3545.08 ▲1.7280.35 ▲15.11157.39 ▲14.77
Add New Post /wp-admin/post-new.php1,751 ▲116.04 ▼5.72404.08 ▼6.65155.65 ▲2.23
Media Library /wp-admin/upload.php1,827 ▲1265.70 ▲0.23109.52 ▼35.26203.27 ▲19.28
Settings /wp-admin/admin.php?page=reviewpress_settings2,3175.70105.42140.67
Freemius Debug [v.1.2.1.5] /wp-admin/admin.php?page=freemius1,7364.9072.13129.13
Shortcode /wp-admin/admin.php?page=reviewpress_shortcode1,4944.8369.34116.79
Add Review /wp-admin/post-new.php?post_type=cptreviewpress2,2685.6794.90145.21
All Reviews /wp-admin/edit.php?post_type=cptreviewpress1,8145.4876.88128.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

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)
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP843,7918,65115,937
JavaScript111,1531,0448,950
PO File41,4221,4393,651
Sass15267821,636
CSS125251834
Markdown2680214
JSON20042
SVG20030
YAML22028

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 code0.51
Average class complexity40.36
▷ Minimum class complexity1.00
▷ Maximum class complexity1,019.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes44
▷ Abstract classes24.55%
▷ Concrete classes4295.45%
▷ Final classes00.00%
Methods737
▷ Static methods9012.21%
▷ Public methods56576.66%
▷ Protected methods121.63%
▷ Private methods16021.71%
Functions55
▷ Named functions5498.18%
▷ Anonymous functions11.82%
Constants97
▷ Global constants8082.47%
▷ Class constants1717.53%
▷ Public constants17100.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
FileSize - originalSize - compressedSavings
assets/images/star-off.png0.91KB0.81KB▼ 10.97%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
assets/images/star-on.png1.01KB1.11KB0.00%
assets/images/star-half.png0.94KB1.06KB0.00%