84% automatic-update-google-business-profile-reviews

Code Review | Automatic Update Google Business Profile Reviews

WordPress plugin Automatic Update Google Business Profile Reviews scored84%from 54 tests.

About plugin

  • Plugin page: automatic-update-...
  • Plugin version: 0.2.1
  • PHP compatiblity: 8.0.27+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 23, 2022
  • Latest release: Jan 13, 2023
  • Number of updates: 6
  • Update frequency: every 18.8 days
  • Top authors: stheobald (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /267 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.87ms] Passed 4 tests

Analyzing server-side resources used by Automatic Update Google Business Profile Reviews
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.48 ▲2.37
Dashboard /wp-admin3.36 ▲0.0143.84 ▼18.95
Posts /wp-admin/edit.php3.41 ▲0.0547.40 ▲2.30
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.39 ▼8.21
Media Library /wp-admin/upload.php3.28 ▲0.0531.91 ▼6.60
Google My Business Rating /wp-admin/options-general.php?page=gmb_rating3.2534.10

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 12 new options
New WordPress options
gmb_rating_api_key
widget_recent-posts
gmb_rating_place_id
gmb_rating_url
gmb_ratings_total
gmb_rating_api_error
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
...

Browser metrics Passed 4 tests

An overview of browser requirements for Automatic Update Google Business Profile Reviews
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6314.40 ▲0.042.19 ▲0.3543.32 ▲6.66
Dashboard /wp-admin2,209 ▲325.55 ▲0.0083.89 ▼4.2538.17 ▼3.57
Posts /wp-admin/edit.php2,123 ▲261.98 ▲0.0141.56 ▲6.5740.89 ▲7.63
Add New Post /wp-admin/post-new.php1,550 ▲2418.26 ▼4.96640.36 ▼60.8469.16 ▲14.74
Media Library /wp-admin/upload.php1,420 ▲234.22 ▲0.0097.28 ▼7.7843.63 ▲0.96
Google My Business Rating /wp-admin/options-general.php?page=gmb_rating8542.1723.6027.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/automatic-update-google-business-profile-reviews/google-my-business-rating.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
No tags were found

automatic-update-google-business-profile-reviews/google-my-business-rating.php 92% from 13 tests

Analyzing the main PHP file in "Automatic Update Google Business Profile Reviews" version 0.2.1
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("automatic-update-google-business-profile-reviews.php" instead of "google-my-business-rating.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin296 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25335296

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/googlelogo_color_272x92dp.png5.83KB4.12KB▼ 29.30%