10% advanced-author-box

Code Review | Advanced Author Box

WordPress plugin Advanced Author Box scored 10% from 54 tests.

About plugin

  • Plugin page: advanced-author-box
  • Plugin version: 1.5.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.3
  • WordPress version: 5.8.1
  • First release: Apr 26, 2016
  • Latest release: Mar 31, 2021
  • Number of updates: 17
  • Update frequency: every 106.1 days
  • Top authors: deano1987 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 5,234 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/advanced-author-box/WDPanelAdmin.php+9
    Methods with the same name as their class will not be constructors in a future version of PHP; WDPanelAdmin has a deprecated constructor

Server metrics [RAM: ▲0.01MB] [CPU: ▼147.70ms] 75% from 4 tests

Server-side resources used by Advanced Author Box
The following require your attention
  • CPU: The total CPU usage must kept under 500.00ms (currently 2,107.09ms on /wp-admin/options-general.php?page=advanced-author-box)
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0225.35 ▲3.54
Dashboard /wp-admin3.08 ▲0.0230.52 ▼7.75
Posts /wp-admin/edit.php3.16 ▲0.0631.61 ▲0.89
Add New Post /wp-admin/post-new.php5.44 ▲0.0067.44 ▼583.24
Media Library /wp-admin/upload.php3.02 ▲0.0222.35 ▼0.69
Advanced Author Box /wp-admin/options-general.php?page=advanced-author-box5.442,107.09

Server storage [IO: ▲1.28MB] [DB: ▲0.35MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 1 new option
New WordPress options
advanced_author_box

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Author Box
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,671 ▲7015.51 ▲0.008.69 ▲3.3974.86 ▼5.15
Dashboard /wp-admin2,938 ▲426.11 ▼0.11116.37 ▼19.21168.19 ▼9.92
Posts /wp-admin/edit.php2,742 ▲23.24 ▲0.0162.71 ▼4.07139.69 ▲2.76
Add New Post /wp-admin/post-new.php3,810 ▲319.05 ▲0.22424.80 ▼23.61158.74 ▼1.35
Media Library /wp-admin/upload.php1,760 ▲85.53 ▼0.01146.23 ▼1.29185.58 ▼4.30
Advanced Author Box /wp-admin/options-general.php?page=advanced-author-box1,4514.4283.49143.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • advanced_author_box

Smoke tests 25% 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
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=advanced-author-box
    • > User deprecated in wp-includes/functions.php+5211
    clean_url is deprecated since version 3.0.0! Use esc_url() instead.

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-author-box/advanced-author-box.php:29

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=advanced-author-box
    • > Network (severe)
    https://yoast.com/theme/yoast-16x16.png - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === advanced-author-box === )
The official readme.txt might help

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

The entry point to "Advanced Author Box" version 1.5.9 is a PHP file that has certain tags in its header comment area
137 characters long description:
This is a plugin that adds an author box to the end of your WordPress posts - a fork of Guerrilla's autherbox plugin but with amp support

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
Everything looks great! No dangerous files found in this plugin8,958 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS35132,348
Sass1434341,768
LESS1434441,758
PHP27561413

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity13.00
▷ Minimum class complexity8.00
▷ Maximum class complexity18.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
facebook.png0.24KB0.21KB▼ 11.16%
google.png0.48KB0.38KB▼ 19.71%
twitter.png1.47KB0.46KB▼ 68.92%
linkedin.png0.39KB0.38KB▼ 3.03%