79% baw-google-author

Code Review | BAW Google Author

WordPress plugin BAW Google Author scored79%from 54 tests.

About plugin

  • Plugin page: baw-google-author
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Jun 9, 2011
  • Latest release: Aug 12, 2015
  • Number of updates: 15
  • Update frequency: every 101.7 days
  • Top authors: juliobox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,625 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.89ms] Passed 4 tests

Server-side resources used by BAW Google Author
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0448.77 ▲8.64
Dashboard /wp-admin3.33 ▲0.0345.35 ▼6.25
Posts /wp-admin/edit.php3.38 ▲0.0348.41 ▲0.92
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.76 ▼0.58
Media Library /wp-admin/upload.php3.25 ▲0.0337.11 ▲2.34
Google Author /wp-admin/options-general.php?page=baw_ga_config3.1929.94

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
bawga_authorname
can_compress_scripts
bawga_authorstyle
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for BAW Google Author
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.27 ▼1.382.18 ▲0.2154.83 ▲10.14
Dashboard /wp-admin2,210 ▲224.83 ▼0.04106.61 ▼15.0338.64 ▼5.79
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0239.64 ▲3.3937.78 ▲6.04
Add New Post /wp-admin/post-new.php1,536 ▼122.74 ▲4.34614.43 ▼36.5647.88 ▼10.38
Media Library /wp-admin/upload.php1,395 ▲74.23 ▲0.05100.03 ▲5.2746.23 ▲3.18
Google Author /wp-admin/options-general.php?page=baw_ga_config7972.0424.0133.18

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=baw_ga_config
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=baw_ga_config
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 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/baw-google-author/baw-google-author.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: seo, tag, author, google, meta

baw-google-author/baw-google-author.php Passed 13 tests

The main PHP file in "BAW Google Author" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
29 characters long description:
Add a meta tag AUTHOR for SEO

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin136 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP112995
PO File1131241

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions10
▷ Named functions10100.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 images were found in this plugin