72% review-builder

Code Review | Review & Product Review by Review Builder

WordPress plugin Review & Product Review by Review Builder scored72%from 54 tests.

About plugin

  • Plugin page: review-builder
  • Plugin version: 2.0.21
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9
  • WordPress version: 6.3.1
  • First release: Jun 4, 2016
  • Latest release: Mar 6, 2018
  • Number of updates: 159
  • Update frequency: every 4.0 days
  • Top authors: Sygnoos (59.75%)reviewbuilder (40.88%)

Code review

54 tests

User reviews

37 reviews

Install metrics

100+ active /35,451 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲1.17MB] [CPU: ▲0.61ms] Passed 4 tests

A check of server-side resources used by Review & Product Review by Review Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.85 ▲1.3961.37 ▲21.58
Dashboard /wp-admin4.55 ▲1.2046.94 ▼16.00
Posts /wp-admin/edit.php4.62 ▲1.2658.86 ▲13.39
Add New Post /wp-admin/post-new.php6.79 ▲0.9083.72 ▼10.40
Media Library /wp-admin/upload.php4.56 ▲1.3251.63 ▲15.45
All Templates PRO /wp-admin/admin.php?page=sgrb_allTemplates4.5345.62
Comment box /wp-admin/admin.php?page=sgrb_addForm4.5346.10
All Comments /wp-admin/admin.php?page=sgrb_allComms4.5348.28
Add Review /wp-admin/admin.php?page=sgrb_add4.5349.20
Add Comment /wp-admin/admin.php?page=sgrb_addComment4.5354.04
More Plugins /wp-admin/admin.php?page=sgrb_sgPlugins4.5346.88
Settings /wp-admin/admin.php?page=sgrb_sgSettings4.5345.11
Add Template PRO /wp-admin/admin.php?page=sgrb_addTemplate4.5346.11
All Reviews /wp-admin/admin.php?page=sgrb_showAll4.5346.99

Server storage [IO: ▲3.32MB] [DB: ▲0.03MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 213 new files
Database: 8 new tables, 9 new options
New tables
wp_sgrb_template
wp_sgrb_category
wp_sgrb_template_design
wp_sgrb_review
wp_sgrb_comment_rating
wp_sgrb_page_review
wp_sgrb_comment
wp_sgrb_rate_log
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
SGRB_VERSION
widget_sgrbwidget
theysaidso_admin_options
sgrb-comment-box-theme
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Review & Product Review by Review Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲10914.21 ▼0.161.75 ▼0.0645.71 ▲2.13
Dashboard /wp-admin2,256 ▲765.62 ▼0.0493.01 ▼4.9139.12 ▼6.91
Posts /wp-admin/edit.php2,161 ▲612.03 ▲0.0439.05 ▲0.6336.67 ▲0.91
Add New Post /wp-admin/post-new.php6,263 ▲4,72720.26 ▲2.12884.83 ▲231.1777.97 ▲13.40
Media Library /wp-admin/upload.php1,458 ▲584.18 ▼0.0496.81 ▲2.0544.77 ▲2.58
All Templates PRO /wp-admin/admin.php?page=sgrb_allTemplates1,3753.4148.0585.64
Comment box /wp-admin/admin.php?page=sgrb_addForm1,4733.4347.2394.01
All Comments /wp-admin/admin.php?page=sgrb_allComms1,2253.3543.5480.98
Add Review /wp-admin/admin.php?page=sgrb_add3,9645.26107.01218.92
Add Comment /wp-admin/admin.php?page=sgrb_addComment1,2803.4343.1377.23
More Plugins /wp-admin/admin.php?page=sgrb_sgPlugins1,0192.0021.9625.95
Settings /wp-admin/admin.php?page=sgrb_sgSettings1,2283.7150.0033.75
Add Template PRO /wp-admin/admin.php?page=sgrb_addTemplate1,1293.3445.3234.36
All Reviews /wp-admin/admin.php?page=sgrb_showAll1,2283.4941.5975.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • SGRB_VERSION
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 38 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sgrb_showAll
    • > Warning in wp-content/plugins/review-builder/com/core/ActiveRecord.php+121
    count(): Parameter must be an array or an object that implements Countable
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sgrb_addComment
    • > Notice in wp-content/plugins/review-builder/com/layouts/Comment/save.php+18
    Undefined index: id
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/core/Template.php+208
    Undefined offset: 3
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/core/Template.php+219
    Undefined variable: options
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/core/Template.php+219
    Trying to access array offset on value of type null
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sgrb_addComment
    • > Notice in wp-content/plugins/review-builder/com/layouts/Comment/save.php+15
    Undefined index: title
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/rateOptions.php+66
    Undefined index: rate-type
  • 19 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+172
    Undefined index: review-type
  • 26 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/edit.php+246
    Undefined index: template
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/templateSelectSection.php+67
    Undefined index: simple-review-template-type
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/generalOptions.php+77
    Undefined index: required-title-checkbox
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/generalOptions.php+88
    Undefined index: required-email-checkbox
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/generalOptions.php+101
    Undefined index: auto-approve-checkbox
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/generalOptions.php+114
    Undefined index: user-detect-by
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/rateOptions.php+72
    Undefined index: skin-color
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/rateOptions.php+83
    Undefined index: rate-text-color
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/rateOptions.php+102
    Undefined index: transparent-background
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/rateOptions.php+92
    Undefined index: total-rate-background-color
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/rateOptions.php+114
    Undefined index: total-rate
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/rateOptions.php+127
    Undefined index: show-comments
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/rateOptions.php+163
    Undefined index: wrapper-width
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/rateOptions.php+167
    Undefined index: wrapper-width-px
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+7
    Undefined index: success-comment-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+15
    Undefined index: total-rating-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+23
    Undefined index: add-review-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+31
    Undefined index: edit-review-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+41
    Undefined index: name-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+49
    Undefined index: name-placeholder-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+57
    Undefined index: email-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+65
    Undefined index: email-placeholder-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+73
    Undefined index: title-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+81
    Undefined index: title-placeholder-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+89
    Undefined index: comment-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+97
    Undefined index: comment-placeholder-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+105
    Undefined index: load-more-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+113
    Undefined index: no-more-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+121
    Undefined index: show-all-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+129
    Undefined index: hide-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+139
    Undefined index: post-button-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+169
    Undefined index: no-category-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+179
    Undefined index: no-name-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+187
    Undefined index: no-email-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+195
    Undefined index: no-title-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+203
    Undefined index: no-comment-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/localization.php+211
    Undefined index: comment-by-text
    • > GET request to /wp-admin/admin.php?page=sgrb_add
    • > Notice in wp-content/plugins/review-builder/com/layouts/Review/googleSearchPreviewOptions.php+11
    Undefined index: sgrb-google-search-on
    • > GET request to /wp-admin/admin.php?page=sgrb_addComment
    • > Notice in wp-content/plugins/review-builder/com/layouts/Comment/save.php+55
    Undefined index: review_id
    • > GET request to /wp-admin/admin.php?page=sgrb_addComment
    • > Notice in wp-content/plugins/review-builder/com/layouts/Comment/save.php+142
    Undefined index: name
    • > GET request to /wp-admin/admin.php?page=sgrb_addComment
    • > Notice in wp-content/plugins/review-builder/com/layouts/Comment/save.php+153
    Undefined index: email
    • > GET request to /wp-admin/admin.php?page=sgrb_addComment
    • > Notice in wp-content/plugins/review-builder/com/layouts/Comment/save.php+168
    Undefined index: comment
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sgrb_addComment
    • > Notice in wp-content/plugins/review-builder/com/layouts/Comment/save.php+181
    Undefined index: isApproved

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 62× 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 _e() in wp-content/plugins/review-builder/com/layouts/Review/morePlugins.php:9
    • > PHP Fatal error
      Uncaught Error: Call to a member function includeModel() on null in wp-content/plugins/review-builder/com/models/Category.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/review-builder/com/layouts/Review/localization.php:4
    • > PHP Fatal error
      Uncaught Error: Call to a member function includeModel() on null in wp-content/plugins/review-builder/com/models/Review.php:4
    • > PHP Fatal error
      Uncaught Error: Call to a member function includeController() on null in wp-content/plugins/review-builder/com/controllers/CommentForm.php:3
    • > PHP Fatal error
      Uncaught Error: Call to a member function includeLib() on null in wp-content/plugins/review-builder/com/lib/Review.php:4
    • > PHP Notice
      Trying to get property 'app_url' of non-object in wp-content/plugins/review-builder/com/layouts/Review/banner.php on line 66
    • > PHP Fatal error
      Uncaught Error: Call to a member function includeModel() on null in wp-content/plugins/review-builder/com/models/Comment_Rating.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/review-builder/com/layouts/Review/generalOptions.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/review-builder/com/layouts/Review/banner.php:74

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=sgrb_sgPlugins
    • > Network (severe)
    http://ps.w.org/popup-builder/assets/icon-128x128.jpg?rev=1575777 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots require images: #7 (Comments list), #8 (Add review section to the post)
The official readme.txt might help

review-builder/app.php 85% from 13 tests

The principal PHP file in "Review & Product Review by Review Builder" v. 2.0.21 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("review-builder.php" instead of "app.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin25,468 lines of code in 113 files:
LanguageFilesBlank linesComment linesLines of code
PHP521,0377779,553
JavaScript201,7241,2309,503
CSS265651233,475
PO File37758551,879
SVG300783
HTML940275

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity27.61
▷ Minimum class complexity1.00
▷ Maximum class complexity286.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes33
▷ Abstract classes412.12%
▷ Concrete classes2987.88%
▷ Final classes00.00%
Methods304
▷ Static methods5618.42%
▷ Public methods27088.82%
▷ Protected methods227.24%
▷ Private methods123.95%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants29
▷ Global constants2068.97%
▷ Class constants931.03%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
41 PNG files occupy 0.39MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/page/styles/general/images/ui-bg_fine-grain_10_eceadf_60x60.png0.15KB0.08KB▼ 42.38%
assets/page/img/star_simbol.png3.33KB2.38KB▼ 28.53%
assets/page/styles/general/images/ui-bg_fine-grain_68_b83400_60x60.png8.11KB2.26KB▼ 72.15%
assets/page/styles/general/images/ui-bg_diagonal-maze_20_6e4f1c_10x10.png0.60KB0.17KB▼ 70.94%
assets/page/styles/general/images/ui-bg_fine-grain_10_f8f7f6_60x60.png3.08KB1.39KB▼ 54.84%