94% advanced-author-bio

Code Review | Advanced Author Bio

WordPress plugin Advanced Author Bio scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-author-bio
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 5.9.2
  • First release: Aug 24, 2011
  • Latest release: Oct 17, 2012
  • Number of updates: 12
  • Update frequency: every 35.0 days
  • Top authors: itsabhik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 11,896 total downloads


Plugin footprint Passed 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.00MB] [CPU: ▼301.51ms] Passed 4 tests

Analyzing server-side resources used by Advanced Author Bio
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0652.45 ▲1.48
Dashboard /wp-admin3.43 ▲0.0233.20 ▼4.38
Posts /wp-admin/edit.php3.66 ▲0.0237.67 ▼0.42
Add New Post /wp-admin/post-new.php6.90 ▼0.07100.18 ▼1,200.86
Media Library /wp-admin/upload.php3.31 ▲0.0223.49 ▼0.38

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Author Bio
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,797 ▲7515.80 ▲0.106.02 ▲0.312.78 ▲0.47
Dashboard /wp-admin2,892 ▲346.08 ▼0.10115.14 ▼22.53154.59 ▼6.98
Posts /wp-admin/edit.php2,657 ▼373.24 ▲0.0165.64 ▲2.52138.38 ▼4.58
Add New Post /wp-admin/post-new.php1,661 ▼016.52 ▼6.25457.00 ▲40.46153.65 ▲3.25
Media Library /wp-admin/upload.php1,698 ▼35.54 ▲0.09132.50 ▼2.85179.40 ▼3.22

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
The plugin uninstalled completely, with no zombie files or tables

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)
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/advanced-author-bio/advanced-author-bio.php:97

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Sample Author Bio Box), #2 (Added Contact Methods)
You can take inspiration from this readme.txt

advanced-author-bio/advanced-author-bio.php Passed 13 tests

Analyzing the main PHP file in "Advanced Author Bio" version 3.1
139 characters long description:
Adds a short author bio after every single post on your blog. Also, adds Facebook, Twitter, Google+ and LinkedIn field in author's profile.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin101 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/googleplus.png2.44KB1.42KB▼ 42.01%
images/twitter.png1.89KB1.28KB▼ 32.06%
images/facebook.png1.85KB1.26KB▼ 32.01%
images/youtube.png2.20KB1.39KB▼ 36.75%
images/linkedin.png2.06KB1.39KB▼ 32.37%