10% basic-google-authorship

Code Review | Basic Google Authorship

WordPress plugin Basic Google Authorship scored 10% from 54 tests.

About plugin

  • Plugin page: basic-google-auth...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Nov 20, 2013
  • Latest release: Nov 24, 2013
  • Number of updates: 4
  • Update frequency: every 3.3 days
  • Top authors: Bilbud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,105 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/basic-google-authorship/basic-google-authorship.php+30
    Methods with the same name as their class will not be constructors in a future version of PHP; basicgoogleauthorship has a deprecated constructor

Server metrics [RAM: ▲0.01MB] [CPU: ▲2.24ms] Passed 4 tests

Analyzing server-side resources used by Basic Google Authorship
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.27 ▼3.71
Dashboard /wp-admin3.32 ▲0.0156.06 ▲0.47
Posts /wp-admin/edit.php3.37 ▲0.0156.43 ▲2.70
Add New Post /wp-admin/post-new.php5.90 ▲0.01128.27 ▲29.58
Media Library /wp-admin/upload.php3.24 ▲0.0143.80 ▲9.51

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Basic Google Authorship
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼013.30 ▼1.104.46 ▲2.7041.74 ▼3.88
Dashboard /wp-admin2,203 ▼35.82 ▼0.0198.67 ▲5.4436.54 ▼2.35
Posts /wp-admin/edit.php2,089 ▼31.96 ▼0.0335.24 ▲1.1731.88 ▼1.46
Add New Post /wp-admin/post-new.php1,542 ▲2323.32 ▼0.05683.57 ▲49.2954.33 ▲0.90
Media Library /wp-admin/upload.php1,388 ▲64.20 ▼0.01103.62 ▲2.8144.54 ▲0.36

Uninstaller [IO: ✅] [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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 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 50% 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/basic-google-authorship/basic-google-authorship.php:35

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)
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

basic-google-authorship/basic-google-authorship.php Passed 13 tests

"Basic Google Authorship" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
67 characters long description:
Replaces author links of your posts with your Google+ Profile Link.

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 plugin79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
PNG images were not found in this plugin