84% about-author-box

Code Review | About Author Box

WordPress plugin About Author Box scored84%from 54 tests.

About plugin

  • Plugin page: about-author-box
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.9
  • WordPress version: 6.3.1
  • First release: Sep 17, 2019
  • Latest release: Apr 11, 2022
  • Number of updates: 19
  • Update frequency: every 54.4 days
  • Top authors: wpkube (78.95%)wpkubehelp (26.32%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,144 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.24MB] [CPU: ▼3.07ms] Passed 4 tests

A check of server-side resources used by About Author Box
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1936.56 ▼3.05
Dashboard /wp-admin3.56 ▲0.2646.23 ▼4.94
Posts /wp-admin/edit.php3.67 ▲0.3250.34 ▲5.57
Add New Post /wp-admin/post-new.php6.14 ▲0.2580.59 ▼9.85
Media Library /wp-admin/upload.php3.48 ▲0.2540.15 ▲6.10
Author Box /wp-admin/options-general.php?page=about_author_box3.4533.72

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for About Author Box
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.34 ▼1.051.70 ▼0.1740.16 ▼4.02
Dashboard /wp-admin2,213 ▲314.87 ▼0.07100.85 ▼1.1437.15 ▼1.05
Posts /wp-admin/edit.php2,093 ▲12.04 ▲0.0638.51 ▲4.4334.35 ▲3.62
Add New Post /wp-admin/post-new.php1,517 ▼1917.50 ▼5.82673.62 ▲57.6657.35 ▲10.46
Media Library /wp-admin/upload.php1,392 ▲44.26 ▼0.0394.48 ▼1.1141.86 ▼2.26
Author Box /wp-admin/options-general.php?page=about_author_box9322.0123.4925.83

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/about-author-box/includes/class.display.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-author-box/includes/class.user-options.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-author-box/includes/class.general.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'About_Author_Box_Settings_API' not found in wp-content/plugins/about-author-box/includes/class.settings.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: after content, author box, about author, author, authors...

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

This is the main PHP file of "About Author Box" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Display information about the post author

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,065 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP72382701,003
CSS118062

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity12.40
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/author-logo.png1.94KB1.96KB0.00%