10% advanced-author-box

Code Review | Advanced Author Box

WordPress plugin Advanced Author Box scored10%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: 6.3.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

100+ active /6,012 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > 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: ▼1.83MB] [CPU: ▼54.55ms] Passed 4 tests

Server-side resources used by Advanced Author Box
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.305.33 ▼34.17
Dashboard /wp-admin2.18 ▼1.136.25 ▼43.77
Posts /wp-admin/edit.php2.18 ▼1.186.82 ▼43.77
Add New Post /wp-admin/post-new.php2.18 ▼3.718.61 ▼96.48
Media Library /wp-admin/upload.php2.18 ▼1.056.74 ▼26.57
Advanced Author Box /wp-admin/options-general.php?page=advanced-author-box2.186.29

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
advanced_author_box
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Author Box
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.23 ▼1.121.76 ▼0.0846.97 ▲7.86
Dashboard /wp-admin2,213 ▲225.88 ▲0.9899.85 ▼11.0640.46 ▼1.89
Posts /wp-admin/edit.php2,093 ▲12.01 ▲0.0334.41 ▼6.5534.65 ▼0.43
Add New Post /wp-admin/post-new.php1,545 ▲3118.37 ▲0.74617.84 ▲14.8367.30 ▲22.87
Media Library /wp-admin/upload.php1,389 ▲14.23 ▲0.0495.03 ▼0.7940.81 ▼2.18
Advanced Author Box /wp-admin/options-general.php?page=advanced-author-box1,0714.9550.9464.80

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > 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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • advanced_author_box
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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 server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=advanced-author-box
    • > 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
  • 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+5453
    Function clean_url is deprecated since version 3.0.0! Use esc_url() instead.

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors 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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === advanced-author-box === )
You can look at the official readme.txt

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

The primary PHP file in "Advanced Author Box" version 1.5.9 is used by WordPress to initiate all plugin functionality
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 review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected8,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

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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
linkedin.png0.39KB0.38KB▼ 3.03%
facebook.png0.24KB0.21KB▼ 11.16%
twitter.png1.47KB0.46KB▼ 68.92%
google.png0.48KB0.38KB▼ 19.71%