84% wp-review

Code Review | WordPress Review Plugin: The Ultimate Solution for Building a Review Website

WordPress plugin WordPress Review Plugin: The Ultimate Solution for Building a Review Website scored84%from 54 tests.

About plugin

  • Plugin page: wp-review
  • Plugin version: 5.3.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.9
  • WordPress version: 6.3.1
  • First release: Feb 18, 2014
  • Latest release: Jan 26, 2022
  • Number of updates: 134
  • Update frequency: every 21.6 days
  • Top authors: MyThemeShop (98.51%)roymahfooz (2.24%)

Code review

54 tests

User reviews

177 reviews

Install metrics

30,000+ active /2,092,423 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲1.15MB] [CPU: ▲2.12ms] Passed 4 tests

Server-side resources used by WordPress Review Plugin: The Ultimate Solution for Building a Review Website
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.63 ▲1.1752.47 ▼2.45
Dashboard /wp-admin4.46 ▲1.1160.87 ▼3.87
Posts /wp-admin/edit.php4.53 ▲1.1756.92 ▲5.91
Add New Post /wp-admin/post-new.php7.18 ▲1.30114.60 ▲28.91
Media Library /wp-admin/upload.php4.37 ▲1.1549.03 ▲8.87

Server storage [IO: ▲4.50MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 106 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_wp_review_tab_widget
theysaidso_admin_options
wp_review_compatibility
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

WordPress Review Plugin: The Ultimate Solution for Building a Review Website: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲13213.52 ▼1.0610.74 ▲8.7237.79 ▼5.91
Dashboard /wp-admin2,207 ▲325.61 ▼0.1288.19 ▼18.9139.45 ▼2.71
Posts /wp-admin/edit.php2,212 ▲1122.38 ▲0.3648.72 ▲13.9853.42 ▲17.62
Add New Post /wp-admin/post-new.php7,523 ▲5,99722.15 ▼1.00816.13 ▲153.6838.32 ▼17.09
Media Library /wp-admin/upload.php1,404 ▲74.26 ▲0.0799.83 ▼0.7043.29 ▼1.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% 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 attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_wp_review_tab_widget
    • wp_review_compatibility
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 34× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-importer.php): failed to open stream: No such file or directory in wp-content/plugins/wp-review/admin/demo-importer/class-wp-import.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-review/includes/comments.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-review/admin/metaboxes.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-review/admin/admin.php:131
    • > PHP Warning
      Use of undefined constant WP_REVIEW_ADMIN - assumed 'WP_REVIEW_ADMIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-review/admin/demo-importer.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-review/admin/class-wpr-review-notice.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-review/includes/widget.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_editable_roles() in wp-content/plugins/wp-review/admin/options/role-manager.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-review/admin/options/yelp.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-review/admin/options/popup.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: product review, schema, schemaorg, rating, user rating...

wp-review/wp-review.php Passed 13 tests

"WordPress Review Plugin: The Ultimate Solution for Building a Review Website" version 5.3.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
134 characters long description:
Create reviews! Choose from stars, percentages or points for review scores. Supports Retina Display, WPMU and Unlimited Color Schemes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin25,988 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
PHP491,6902,54012,513
XML18167,100
SVG3012,700
CSS7308682,109
JavaScript152501181,566

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity34.82
▷ Minimum class complexity3.00
▷ Maximum class complexity183.00
Average method complexity5.89
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods76
▷ Static methods00.00%
▷ Public methods7396.05%
▷ Protected methods22.63%
▷ Private methods11.32%
Functions220
▷ Named functions21597.73%
▷ Anonymous functions52.27%
Constants19
▷ Global constants19100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/largethumb.png1.00KB1.18KB0.00%
public/images/smallthumb.png0.32KB0.40KB0.00%