89% g-business-reviews-rating

Code Review | Reviews and Rating – Google My Business

WordPress plugin Reviews and Rating – Google My Business scored89%from 54 tests.

About plugin

  • Plugin page: g-business-review...
  • Plugin version: 4.25
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Jul 29, 2019
  • Latest release: Nov 1, 2023
  • Number of updates: 1,105
  • Update frequency: every 1.4 days
  • Top authors: designextreme (100%)

Code review

54 tests

User reviews

148 reviews

Install metrics

20,000+ active /690,442 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲1.52MB] [CPU: ▲15.35ms] 75% from 4 tests

A check of server-side resources used by Reviews and Rating – Google My Business
Please have a look at the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 860.40ms on /wp-admin/options-general.php?page=google_business_reviews_rating_settings)
PageMemory (MB)CPU Time (ms)
Home /4.96 ▲1.4956.50 ▲15.76
Dashboard /wp-admin4.88 ▲1.58100.03 ▲47.19
Posts /wp-admin/edit.php4.89 ▲1.5365.26 ▲20.35
Add New Post /wp-admin/post-new.php7.36 ▲1.47100.02 ▲12.09
Media Library /wp-admin/upload.php4.85 ▲1.6151.58 ▲13.18
Reviews and Rating - Google My Business /wp-admin/options-general.php?page=google_business_reviews_rating_settings5.80860.40

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 21 new options
New WordPress options
google_business_reviews_rating_rating_max
widget_theysaidso_widget
google_business_reviews_rating_stylesheet
google_business_reviews_rating_review_text_excerpt_length
google_business_reviews_rating_review_text_max
google_business_reviews_rating_places
widget_recent-comments
google_business_reviews_rating_rating_min
google_business_reviews_rating_javascript
google_business_reviews_rating_view
...

Browser metrics Passed 4 tests

Checking browser requirements for Reviews and Rating – Google My Business
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,090 ▲32915.44 ▲0.885.33 ▲3.4437.77 ▼6.34
Dashboard /wp-admin2,391 ▲2116.29 ▲0.63116.86 ▲18.7842.59 ▲0.68
Posts /wp-admin/edit.php2,086 ▼142.02 ▼0.0241.88 ▲4.5731.30 ▼4.02
Add New Post /wp-admin/post-new.php1,531 ▲223.11 ▼0.55668.98 ▲25.9937.52 ▼39.45
Media Library /wp-admin/upload.php1,401 ▲44.13 ▼0.0680.64 ▼18.4540.68 ▼4.26
Reviews and Rating - Google My Business /wp-admin/options-general.php?page=google_business_reviews_rating_settings5,2923.5450.4935.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: gmb rating, google places, google rating, gmb reviews, google reviews and rating...

g-business-reviews-rating/g-business-reviews-rating.php 92% from 13 tests

The main file in "Reviews and Rating – Google My Business" v. 4.25 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 169 characters long)

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin15,718 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP61,0064367,771
CSS31725,085
JavaScript350622,862

PHP code 0% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,333)
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 675)
Cyclomatic complexity
Average complexity per logical line of code1.00
Average class complexity894.33
▷ Minimum class complexity3.00
▷ Maximum class complexity2,333.00
Average method complexity35.67
▷ Minimum method complexity1.00
▷ Maximum method complexity675.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods69
▷ Static methods710.14%
▷ Public methods5173.91%
▷ Protected methods00.00%
▷ Private methods1826.09%
Functions15
▷ Named functions00.00%
▷ Anonymous functions15100.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin