84% google-plus-author

Code Review | WP Google Authorship

WordPress plugin WP Google Authorship scored84%from 54 tests.

About plugin

  • Plugin page: google-plus-author
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3
  • WordPress version: 6.3.1
  • First release: Feb 13, 2012
  • Latest release: Nov 20, 2015
  • Number of updates: 7
  • Update frequency: every 196.6 days
  • Top authors: mervinpraison (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /20,056 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by WP Google Authorship
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.16 ▲1.96
Dashboard /wp-admin3.32 ▲0.0142.87 ▼7.10
Posts /wp-admin/edit.php3.37 ▲0.0144.79 ▲0.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.86 ▼11.81
Media Library /wp-admin/upload.php3.24 ▲0.0136.13 ▲2.63

Server storage [IO: ▲0.11MB] [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: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Google Authorship
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.19 ▼1.181.72 ▼0.4140.75 ▼1.19
Dashboard /wp-admin2,206 ▲154.84 ▼0.0399.54 ▼3.9242.54 ▼4.37
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0236.02 ▼3.7532.85 ▼0.49
Add New Post /wp-admin/post-new.php1,547 ▲1418.07 ▼5.41646.94 ▼44.3073.01 ▲21.45
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.03100.39 ▼9.2042.06 ▼4.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/google-plus-author/google-plus-author.php:67

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Google Plus Profile Picture in Google Search Result), #2 (Profile Page Setup), #3 (Rich Snippet Testing Tool)
You can look at the official readme.txt

google-plus-author/google-plus-author.php 92% from 13 tests

The primary PHP file in "WP Google Authorship" version 2.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 160 characters long)

Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected68 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1272068

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png33.51KB16.30KB▼ 51.35%
screenshot-1.png21.77KB9.67KB▼ 55.57%
screenshot-3.png49.67KB23.13KB▼ 53.44%