56% reviewbucket-lite

Code Review | Reviewbucket Lite - Emoji reaction review and google place review WordPress Plugin

WordPress plugin Reviewbucket Lite - Emoji reaction review and google place review WordPress Plugin scored56%from 54 tests.

About plugin

  • Plugin page: reviewbucket-lite
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 8, 2020
  • Latest release: Feb 27, 2021
  • Number of updates: 15
  • Update frequency: every 27.8 days
  • Top authors: wpbucket (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /856 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.79MB] [CPU: ▼37.69ms] Passed 4 tests

Server-side resources used by Reviewbucket Lite - Emoji reaction review and google place review WordPress Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.18 ▼0.2917.63 ▼20.90
Dashboard /wp-admin3.23 ▼0.0820.69 ▼27.16
Posts /wp-admin/edit.php3.23 ▼0.1320.28 ▼27.15
Add New Post /wp-admin/post-new.php3.23 ▼2.6620.02 ▼75.55
Media Library /wp-admin/upload.php3.23 ▼0.0021.54 ▼8.56
Review Bucket Settings /wp-admin/admin.php?page=reviewbucketlite-setting-admin3.2321.81
Emoji Reaction /wp-admin/edit.php?post_type=emoji_reaction3.2319.58

Server storage [IO: ▲8.89MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 96 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Reviewbucket Lite - Emoji reaction review and google place review WordPress Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,125 ▲33915.44 ▲1.078.90 ▲7.1442.63 ▲0.04
Dashboard /wp-admin2,413 ▲2336.39 ▲0.77108.44 ▲20.0641.68 ▼2.79
Posts /wp-admin/edit.php2,345 ▲2453.65 ▲1.6251.88 ▲17.4431.71 ▼3.48
Add New Post /wp-admin/post-new.php1,755 ▲21820.56 ▲2.11642.06 ▲19.1332.32 ▼35.37
Media Library /wp-admin/upload.php1,481 ▲814.34 ▲0.1888.52 ▼4.7947.94 ▲4.29
Review Bucket Settings /wp-admin/admin.php?page=reviewbucketlite-setting-admin1,5563.8567.3476.20
Emoji Reaction /wp-admin/edit.php?post_type=emoji_reaction1,3093.6447.2626.88

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
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/reviewbucket-lite/inc/functions.php+21
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 0% 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)
Please fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=emoji_reaction
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/reviewbucket-lite/inc/functions.php+22
    Trying to access array offset on value of type bool

SRP 0% 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
Please fix the following
  • 20× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/reviewbucket-lite/inc/class-enqueue.php
    • > /wp-content/plugins/reviewbucket-lite/inc/meta-fields/tatcmf-config.php
    • > /wp-content/plugins/reviewbucket-lite/inc/meta-fields/fields/color-fields.php
    • > /wp-content/plugins/reviewbucket-lite/inc/functions.php
    • > /wp-content/plugins/reviewbucket-lite/reviewbucket-lite.php
    • > /wp-content/plugins/reviewbucket-lite/inc/meta-fields/fields/select-field.php
    • > /wp-content/plugins/reviewbucket-lite/inc/meta-fields/fields/date-fields.php
    • > /wp-content/plugins/reviewbucket-lite/inc/meta-fields/fields/range-slider.php
    • > /wp-content/plugins/reviewbucket-lite/inc/meta-fields/fields/media-fields.php
    • > /wp-content/plugins/reviewbucket-lite/inc/meta-fields/main-meta.php
  • 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant REVIEWBUCKETLITE_ALERT_MSG - assumed 'REVIEWBUCKETLITE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/reviewbucket-lite/inc/meta-fields/fields/checkbox-fields.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/reviewbucket-lite/view/google-shortcode.php:11
    • > PHP Warning
      Use of undefined constant REVIEWBUCKETLITE_ALERT_MSG - assumed 'REVIEWBUCKETLITE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/reviewbucket-lite/inc/meta-fields/fields/color-fields.php on line 13
    • > PHP Warning
      Use of undefined constant REVIEWBUCKETLITE_ALERT_MSG - assumed 'REVIEWBUCKETLITE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/reviewbucket-lite/inc/meta-fields/fields/text-fields.php on line 13
    • > PHP Warning
      Use of undefined constant REVIEWBUCKETLITE_ALERT_MSG - assumed 'REVIEWBUCKETLITE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/reviewbucket-lite/inc/class-enqueue.php on line 12
    • > PHP Warning
      Use of undefined constant REVIEWBUCKETLITE_ALERT_MSG - assumed 'REVIEWBUCKETLITE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/reviewbucket-lite/inc/meta-fields/fields/select-field.php on line 13
    • > PHP Warning
      Use of undefined constant REVIEWBUCKETLITE_ALERT_MSG - assumed 'REVIEWBUCKETLITE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/reviewbucket-lite/inc/meta-fields/fields/textarea-fields.php on line 13
    • > PHP Warning
      Use of undefined constant REVIEWBUCKETLITE_ALERT_MSG - assumed 'REVIEWBUCKETLITE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/reviewbucket-lite/inc/meta-fields/fields/number-fields.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ReviewbucketLite\\is_admin() in wp-content/plugins/reviewbucket-lite/admin/admin.php:267
    • > PHP Warning
      Use of undefined constant REVIEWBUCKETLITE_ALERT_MSG - assumed 'REVIEWBUCKETLITE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/reviewbucket-lite/inc/meta-fields/fields/email-fields.php on line 13

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=emoji_reaction
    • > Network (severe)
    wp-content/plugins/reviewbucket-lite//admin/assets/js/wpac.js?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=emoji_reaction
    • > Network (severe)
    wp-content/plugins/reviewbucket-lite//admin/assets/js/fbrev-connect.js?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
  • Requires php: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

reviewbucket-lite/reviewbucket-lite.php 92% from 13 tests

The entry point to "Reviewbucket Lite - Emoji reaction review and google place review WordPress Plugin" version 1.3.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin19,103 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
SVG701210,990
CSS128771294,992
PHP327735802,403
JavaScript8339114718

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.27
Average class complexity13.00
▷ Minimum class complexity2.00
▷ Maximum class complexity56.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods60
▷ Static methods11.67%
▷ Public methods5591.67%
▷ Protected methods23.33%
▷ Private methods35.00%
Functions28
▷ Named functions2796.43%
▷ Anonymous functions13.57%
Constants11
▷ Global constants872.73%
▷ Class constants327.27%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.22MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/reactions_love.png24.11KB0.59KB▼ 97.57%
assets/img/trust-logo.png19.81KB2.07KB▼ 89.55%
view/elementor-widgets/assets/img/play.png2.00KB1.40KB▼ 29.99%
assets/img/reactions_like.png24.11KB0.53KB▼ 97.79%
assets/trustpilot-vector-logo.png19.81KB2.07KB▼ 89.55%