88% google-auto-post

Code Review | Auto Post to Google+

WordPress plugin Auto Post to Google+ scored 88% from 54 tests.

About plugin

  • Plugin page: google-auto-post
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 5.8.1
  • First release: Aug 17, 2013
  • Latest release: Sep 17, 2014
  • Number of updates: 6
  • Update frequency: every 66.0 days
  • Top authors: cardiganmedia (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active / 19,720 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼139.30ms] Passed 4 tests

This is a short check of server-side resources used by Auto Post to Google+
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0337.05 ▲6.58
Dashboard /wp-admin3.09 ▲0.0344.12 ▼0.27
Posts /wp-admin/edit.php3.14 ▲0.0244.44 ▼6.56
Add New Post /wp-admin/post-new.php5.45 ▲0.01104.18 ▼550.19
Media Library /wp-admin/upload.php3.03 ▲0.0331.74 ▼0.18
Google+ Auto Post /wp-admin/options-general.php?page=ergplus2.9834.99

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Auto Post to Google+
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲4715.81 ▲0.237.46 ▼1.3548.97 ▼0.87
Dashboard /wp-admin2,975 ▲445.86 ▼0.07139.78 ▼3.34121.34 ▲1.61
Posts /wp-admin/edit.php2,744 ▲52.70 ▼0.0070.99 ▲0.9390.89 ▲0.32
Add New Post /wp-admin/post-new.php1,723 ▲11915.92 ▼2.91417.13 ▲0.91127.89 ▲7.62
Media Library /wp-admin/upload.php1,812 ▲55.04 ▲0.02161.86 ▲10.36157.19 ▲23.14
Google+ Auto Post /wp-admin/options-general.php?page=ergplus1,2022.0557.4081.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ergplus
    • > Notice in wp-content/plugins/google-auto-post/ergplus-autopost.php+49
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-auto-post/ergplus-autopost.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === google-auto-post === )
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Screenshot 1 : The Options Panel), #2 (Screenshot 2 : The Post Screen)
Please take inspiration from this readme.txt

google-auto-post/ergplus-autopost.php 92% from 13 tests

This is the main PHP file of "Auto Post to Google+" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("google-auto-post.php" instead of "ergplus-autopost.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin137 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions10100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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.35MB with 0.21MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png210.68KB82.60KB▼ 60.80%
screenshot-2.png142.92KB57.35KB▼ 59.87%