78% bizreview

Code Review | BizReview - Business and Google Place Review WordPress Plugin

WordPress plugin BizReview - Business and Google Place Review WordPress Plugin scored78%from 54 tests.

About plugin

  • Plugin page: bizreview
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 27, 2019
  • Latest release: Nov 16, 2023
  • Number of updates: 15
  • Update frequency: every 106.9 days
  • Top authors: themeatelier (53.33%)fixolab (53.33%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,702 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.47MB] [CPU: ▼1.22ms] Passed 4 tests

Server-side resources used by BizReview - Business and Google Place Review WordPress Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.4939.55 ▼0.84
Dashboard /wp-admin3.81 ▲0.5047.22 ▼2.78
Posts /wp-admin/edit.php3.86 ▲0.5045.71 ▼1.47
Add New Post /wp-admin/post-new.php6.35 ▲0.4590.04 ▲4.99
Media Library /wp-admin/upload.php3.67 ▲0.4338.39 ▲0.22

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 156 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_bizreview_google_widget
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

BizReview - Business and Google Place Review WordPress Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,973 ▲21113.55 ▼0.7913.29 ▲11.5854.64 ▲10.53
Dashboard /wp-admin2,253 ▲825.64 ▲0.0094.38 ▼5.5141.14 ▼6.44
Posts /wp-admin/edit.php2,158 ▲552.16 ▲0.1338.74 ▼3.4734.56 ▼1.84
Add New Post /wp-admin/post-new.php1,577 ▲5123.18 ▲0.14681.66 ▼69.2357.57 ▼6.44
Media Library /wp-admin/upload.php1,458 ▲584.19 ▼0.06107.32 ▲1.7451.82 ▲6.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_bizreview_google_widget
    • db_upgraded
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bizreview/view/widgets/widget-google-review.php
    • > /wp-content/plugins/bizreview/bizreview.php
    • > /wp-content/plugins/bizreview/inc/functions.php
    • > /wp-content/plugins/bizreview/inc/class-enqueue.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant BIZREVIEW_ALERT_MSG - assumed 'BIZREVIEW_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/bizreview/inc/class-enqueue.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bizreview/view/google-shortcode.php:11
    • > PHP Warning
      Use of undefined constant BIZREVIEW_ALERT_MSG - assumed 'BIZREVIEW_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/bizreview/inc/functions.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bizreview/admin/admin.php:184
    • > PHP Warning
      Use of undefined constant BIZREVIEW_ALERT_MSG - assumed 'BIZREVIEW_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/bizreview/view/widgets/widget-google-review.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #9 (Supported functionality)
The official readme.txt might help

bizreview/bizreview.php 92% from 13 tests

"BizReview - Business and Google Place Review WordPress Plugin" version 1.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 159 characters long)

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 plugin29,440 lines of code in 117 files:
LanguageFilesBlank linesComment linesLines of code
SVG401210,987
CSS121,7817910,526
Sass841,1361,0244,900
PHP126947682,806
JavaScript59037221

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity24.11
▷ Minimum class complexity1.00
▷ Maximum class complexity109.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods96
▷ Static methods22.08%
▷ Public methods7477.08%
▷ Protected methods77.29%
▷ Private methods1515.62%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
view/elementor-widgets/assets/img/play.png2.00KB1.40KB▼ 29.99%
assets/google-places.png15.32KB0.63KB▼ 95.89%