83% about-author

Code Review | About Author

WordPress plugin About Author scored83%from 54 tests.

About plugin

  • Plugin page: about-author
  • Plugin version: 1.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 16, 2016
  • Latest release: Nov 3, 2023
  • Number of updates: 80
  • Update frequency: every 35.3 days
  • Top authors: weblizar (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active /60,226 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼8.13ms] 50% from 4 tests

An overview of server-side resources used by About Author
Please have a look at the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 667.50ms on /wp-admin/post-new.php?post_type=about_author)
  • RAM: Total memory usage should be kept under 10MB (currently 10.07MB on /wp-admin/post-new.php?post_type=about_author)
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1735.54 ▼8.26
Dashboard /wp-admin3.49 ▲0.1547.22 ▼14.04
Posts /wp-admin/edit.php3.61 ▲0.2547.69 ▲4.30
Add New Post /wp-admin/post-new.php6.10 ▲0.2184.70 ▼14.53
Media Library /wp-admin/upload.php3.41 ▲0.1937.61 ▲5.91
All Shortcodes /wp-admin/edit.php?post_type=about_author3.4637.04
Author Settings /wp-admin/edit.php?post_type=about_author&page=author-settings9.98632.43
Add New /wp-admin/post-new.php?post_type=about_author10.07667.50
Help and Support /wp-admin/edit.php?post_type=about_author&page=help-and-support3.3934.10

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 65 new files
Database: no new tables, 7 new options
New WordPress options
widget_about_me
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for About Author
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲10414.69 ▲0.461.67 ▲0.0338.10 ▼8.05
Dashboard /wp-admin2,256 ▲855.78 ▲0.1794.25 ▼7.9438.96 ▼3.95
Posts /wp-admin/edit.php2,166 ▲632.26 ▲0.3141.24 ▲1.3235.66 ▼3.68
Add New Post /wp-admin/post-new.php1,760 ▲22623.46 ▲5.14731.99 ▲110.7547.41 ▼17.89
Media Library /wp-admin/upload.php1,461 ▲584.42 ▲0.2797.85 ▼2.7940.14 ▼3.64
All Shortcodes /wp-admin/edit.php?post_type=about_author1,1402.2335.6328.51
Author Settings /wp-admin/edit.php?post_type=about_author&page=author-settings7,8352.6450.9156.45
Add New /wp-admin/post-new.php?post_type=about_author11,4324.81143.94150.31
Help and Support /wp-admin/edit.php?post_type=about_author&page=help-and-support9181.9527.4841.39

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_about_me
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 22× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/about-author/author-setting/shortcode-files/template2-shortcode.php:2
    • > 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 Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/about-author/shortcode-files/template2-shortcode.php:2
    • > 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
      Undefined variable: post in wp-content/plugins/about-author/settings/template-settings.php on line 2
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/about-author/settings/general-settings.php on line 2
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/about-author/settings/template2.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 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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% 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:
  • Screenshots: Please add descriptions for these screenshots #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in about-author/assets to your readme.txt
The official readme.txt is a good inspiration

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

"About Author" version 1.6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 352 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin40,110 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
CSS131,3266414,839
JavaScript82,0932,23112,463
SVG3009,546
PHP141531152,404
PO File2490736858

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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
settings/images/up.png6.22KB1.05KB▼ 83.16%
(invalid) settings/images/hover.png0.81KB0.00KB▼ 100.00%
settings/images/pic2.png22.37KB9.14KB▼ 59.15%
settings/images/pic3.png23.44KB9.53KB▼ 59.35%
settings/images/temp22.png70.45KB28.28KB▼ 59.85%