10% about-the-author-advanced

Code Review | About the Author Advanced

WordPress plugin About the Author Advanced scored10%from 54 tests.

About plugin

  • Plugin page: about-the-author-...
  • Plugin version: 0.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.1
  • WordPress version: 6.3.1
  • First release: Jul 24, 2012
  • Latest release: Sep 14, 2012
  • Number of updates: 22
  • Update frequency: every 2.4 days
  • Top authors: dz@203com.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /13,156 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/about-the-author-advanced/about-the-author-advanced.php+54
    Use of undefined constant ataa_version_key - assumed 'ataa_version_key' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.91MB] [CPU: ▼57.99ms] Passed 4 tests

This is a short check of server-side resources used by About the Author Advanced
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.394.27 ▼45.29
Dashboard /wp-admin2.10 ▼1.216.82 ▼44.22
Posts /wp-admin/edit.php2.10 ▼1.266.66 ▼47.39
Add New Post /wp-admin/post-new.php2.10 ▼3.797.52 ▼95.05
Media Library /wp-admin/upload.php2.10 ▼1.135.15 ▼32.59
About the Author Advanced /wp-admin/options-general.php?page=ataa-settings2.106.24

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
ataa_version_key
ataa_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_author_contact_info

Browser metrics Passed 4 tests

Checking browser requirements for About the Author Advanced
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲3913.66 ▼0.644.87 ▲2.6340.40 ▼8.87
Dashboard /wp-admin2,212 ▲245.91 ▲0.05104.57 ▼14.0439.67 ▼2.44
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0339.41 ▲4.9734.93 ▼0.20
Add New Post /wp-admin/post-new.php1,533 ▲1923.09 ▲5.59661.84 ▼13.6858.84 ▲9.50
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0599.68 ▼30.9845.73 ▼12.77
About the Author Advanced /wp-admin/options-general.php?page=ataa-settings1,2612.0324.1329.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/about-the-author-advanced/about-the-author-advanced.php+54
    Use of undefined constant ataa_version_key - assumed 'ataa_version_key' (this will throw an Error in a future version of PHP)
  • The uninstall procedure has failed, leaving 8 options in the database
    • ataa_version_key
    • widget_recent-posts
    • widget_author_contact_info
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Warning in wp-content/plugins/about-the-author-advanced/about-the-author-advanced.php+54
    Use of undefined constant ataa_version_key - assumed 'ataa_version_key' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Deprecated in wp-content/plugins/about-the-author-advanced/classes/edit-options.php+234
    Function create_function() is deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in Ataa_Widget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Notice in wp-content/plugins/about-the-author-advanced/classes/edit-options.php+70
    Undefined index: show_phone
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Notice in wp-content/plugins/about-the-author-advanced/classes/edit-options.php+72
    Undefined index: show_web
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Notice in wp-content/plugins/about-the-author-advanced/classes/edit-options.php+75
    Undefined index: show_bio
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Notice in wp-content/plugins/about-the-author-advanced/classes/edit-options.php+76
    Undefined index: show_company
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Notice in wp-content/plugins/about-the-author-advanced/classes/edit-options.php+77
    Undefined index: show_title
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Notice in wp-content/plugins/about-the-author-advanced/classes/edit-options.php+82
    Undefined index: show_linkedin
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Notice in wp-content/plugins/about-the-author-advanced/classes/edit-options.php+126
    Undefined index: social_link
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Notice in wp-content/plugins/about-the-author-advanced/classes/edit-options.php+186
    Undefined index: phone
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Notice in wp-content/plugins/about-the-author-advanced/classes/edit-options.php+187
    Undefined index: company
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Notice in wp-content/plugins/about-the-author-advanced/classes/edit-options.php+188
    Undefined index: title
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Notice in wp-content/plugins/about-the-author-advanced/classes/edit-options.php+191
    Undefined index: aim
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Notice in wp-content/plugins/about-the-author-advanced/classes/edit-options.php+192
    Undefined index: gchat
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Notice in wp-content/plugins/about-the-author-advanced/classes/edit-options.php+193
    Undefined index: yim
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Notice in wp-content/plugins/about-the-author-advanced/classes/edit-options.php+198
    Undefined index: linkedin
    • > GET request to /wp-admin/options-general.php?page=ataa-settings
    • > Notice in wp-content/plugins/about-the-author-advanced/classes/edit-options.php+199
    Undefined index: gplus

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
Please fix the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template() in wp-content/plugins/about-the-author-advanced/about-the-author-advanced.php:38
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/about-the-author-advanced/about-the-author-advanced.php on line 38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-the-author-advanced/classes/edit-options.php:234
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/about-the-author-advanced/classes/ataa-widget.php:3

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 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Contributors: The plugin contributors field is not present
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Widget with all fields displayed), #2 (Widget with gravatar, bio and email displayed), #3 (Widget with only contact information displayed), #4 (Sidebar widget settings), #5 (Complete plugin settings)
The official readme.txt is a good inspiration

about-the-author-advanced/about-the-author-advanced.php Passed 13 tests

Analyzing the main PHP file in "About the Author Advanced" version 0.2.3
116 characters long description:
This plugin creates a sidebar widget which displays the post/page author's information in a highly configurable way.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin427 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP311938412
CSS17015

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity38.50
▷ Minimum class complexity11.00
▷ Maximum class complexity66.00
Average method complexity10.38
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
20 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icons/32/tumblr.png3.75KB1.27KB▼ 66.07%
images/icons/48/linkedin.png4.24KB1.68KB▼ 60.42%
images/icons/48/gplus.png4.04KB2.14KB▼ 47.13%
images/icons/64/gplus.png3.14KB2.25KB▼ 28.32%
images/icons/16/linkedin.png3.24KB0.72KB▼ 77.78%