84% wp-google-my-business-auto-publish

Code Review | Auto Publish for Google My Business

WordPress plugin Auto Publish for Google My Business scored84%from 54 tests.

About plugin

  • Plugin page: wp-google-my-busi...
  • Plugin version: 3.9
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 14, 2018
  • Latest release: Nov 6, 2023
  • Number of updates: 118
  • Update frequency: every 17.0 days
  • Top authors: northernbeacheswebsites (100%)

Code review

54 tests

User reviews

38 reviews

Install metrics

10,000+ active /138,174 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.26ms] Passed 4 tests

This is a short check of server-side resources used by Auto Publish for Google My Business
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1538.22 ▼2.24
Dashboard /wp-admin3.35 ▲0.0545.00 ▼15.06
Posts /wp-admin/edit.php3.41 ▲0.0547.81 ▼12.04
Add New Post /wp-admin/post-new.php5.96 ▲0.0794.83 ▲8.58
Media Library /wp-admin/upload.php3.27 ▲0.0433.20 ▲0.30

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Auto Publish for Google My Business
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8214.63 ▼0.082.39 ▲0.6337.76 ▼7.77
Dashboard /wp-admin2,224 ▲605.61 ▲0.0793.77 ▼27.8739.91 ▼8.10
Posts /wp-admin/edit.php2,158 ▲582.29 ▲0.3240.64 ▲0.2434.41 ▼2.09
Add New Post /wp-admin/post-new.php1,551 ▲2323.31 ▲0.18679.45 ▼10.8767.40 ▲17.11
Media Library /wp-admin/upload.php1,429 ▲324.17 ▼0.1095.33 ▼8.3240.46 ▼3.31

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-google-my-business-auto-publish/wp-google-my-business-auto-publish.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-google-my-business-auto-publish/inc/review-shortcode.php:107

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

wp-google-my-business-auto-publish/wp-google-my-business-auto-publish.php 92% from 13 tests

The entry point to "Auto Publish for Google My Business" version 3.9 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected6,620 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP51,3395882,476
JavaScript7643183854
CSS617529619

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions65
▷ Named functions65100.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
No PNG files were detected