74% simple-google-authorship-and-avatar

Code Review | Simple Google Authorship and Avatar

WordPress plugin Simple Google Authorship and Avatar scored74%from 54 tests.

About plugin

  • Plugin page: simple-google-aut...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5
  • WordPress version: 6.3.1
  • First release: Jan 28, 2013
  • Latest release: Jan 29, 2013
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: mark-k (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /2,871 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼1.22MB] [CPU: ▼39.54ms] Passed 4 tests

Analyzing server-side resources used by Simple Google Authorship and Avatar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.7112.16 ▼29.64
Dashboard /wp-admin2.79 ▼0.5121.20 ▼26.51
Posts /wp-admin/edit.php2.79 ▼0.5618.30 ▼29.29
Add New Post /wp-admin/post-new.php2.79 ▼3.1015.79 ▼72.70
Media Library /wp-admin/upload.php2.79 ▼0.4416.85 ▼23.97

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Google Authorship and Avatar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.23 ▼1.171.80 ▲0.0943.32 ▼0.71
Dashboard /wp-admin2,206 ▲215.85 ▼0.0194.85 ▼8.3539.77 ▼4.80
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0139.54 ▲0.3735.92 ▼1.55
Add New Post /wp-admin/post-new.php1,514 ▼017.62 ▼0.04674.80 ▼9.8249.09 ▼6.29
Media Library /wp-admin/upload.php1,388 ▼04.26 ▲0.07104.13 ▼0.9244.80 ▼2.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'mk_gplus_gapi_token' not found or invalid function name
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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 | 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-google-authorship-and-avatar/simple-google-authorship.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: authorship, avatar, google authorship, google profile

simple-google-authorship-and-avatar/simple-google-authorship.php 92% from 13 tests

This is the main PHP file of "Simple Google Authorship and Avatar" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-google-authorship-and-avatar.php" instead of "simple-google-authorship.php")

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
There were no executable files found in this plugin181 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12913181

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG files were detected