83% about-author

Code Review | About Author

WordPress plugin About Author scored 83% from 54 tests.

About plugin

  • Plugin page: about-author
  • Plugin version: 1.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.2
  • WordPress version: 5.9.2
  • First release: Feb 16, 2016
  • Latest release: Apr 4, 2022
  • Number of updates: 73
  • Update frequency: every 30.8 days
  • Top authors: weblizar (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

800+ active / 54,362 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by About Author
Please have a look at the following items
  • CPU: The total CPU usage must kept under 500.00ms (currently 520.07ms on /wp-admin/post-new.php?post_type=about_author)
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0552.48 ▼1.10
Dashboard /wp-admin3.46 ▲0.0633.28 ▲0.06
Posts /wp-admin/edit.php3.69 ▲0.0537.67 ▼1.70
Add New Post /wp-admin/post-new.php6.94 ▼0.0390.72 ▼1,169.24
Media Library /wp-admin/upload.php3.34 ▲0.0525.61 ▲2.09
All Shortcodes /wp-admin/edit.php?post_type=about_author3.3924.89
Author Settings /wp-admin/edit.php?post_type=about_author&page=author-settings8.14457.15
Help and Support /wp-admin/edit.php?post_type=about_author&page=help-and-support3.3624.94
Add New /wp-admin/post-new.php?post_type=about_author8.44520.07

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 1 new option
New WordPress options
widget_about_me

Browser metrics Passed 4 tests

A check of browser resources used by About Author
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,905 ▲15116.55 ▲0.616.23 ▲0.472.93 ▲0.14
Dashboard /wp-admin2,998 ▲1187.20 ▲0.57130.24 ▼9.81157.31 ▼2.50
Posts /wp-admin/edit.php2,774 ▲803.21 ▼0.2266.12 ▲4.89154.29 ▲10.07
Add New Post /wp-admin/post-new.php1,664 ▲318.78 ▲2.44404.74 ▼22.87176.24 ▲18.90
Media Library /wp-admin/upload.php1,784 ▲866.11 ▲0.37121.74 ▼20.57179.72 ▼7.55
All Shortcodes /wp-admin/edit.php?post_type=about_author1,4743.4362.66128.60
Author Settings /wp-admin/edit.php?post_type=about_author&page=author-settings7,5573.7776.49190.50
Help and Support /wp-admin/edit.php?post_type=about_author&page=help-and-support1,2533.0455.89182.40
Add New /wp-admin/post-new.php?post_type=about_author11,9145.33166.34346.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_about_me

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/about-author/about-author.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/about-author/author-setting/about-author-use-shortcode2.php:2
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/about-author/settings/template2.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/about-author/about-author-widget-code.php:5
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/about-author/settings/template1.php on line 2
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/about-author/settings/general-settings.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/about-author/author-setting/shortcode-files/template1-shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/about-author/settings/template1.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/about-author/about-author-use-shortcode.php:1
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/about-author/settings/general-settings.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in about-author/assets to your readme.txt
You can take inspiration from this readme.txt

about-author/about-author.php 85% from 13 tests

"About Author" version 1.5.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 352 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin40,110 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
CSS131,3216214,810
JavaScript82,0892,31812,454
SVG3009,546
PHP141591152,442
PO File2490736858

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity11.00
▷ Minimum class complexity9.00
▷ Maximum class complexity13.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) settings/images/hover.png0.81KB0.00KB▼ 100.00%
settings/images/temp22.png70.45KB28.28KB▼ 59.85%
settings/images/temp11.png33.48KB13.09KB▼ 60.91%
settings/images/up.png6.22KB1.05KB▼ 83.16%
settings/images/pic3.png23.44KB9.53KB▼ 59.35%