90% author-bio-box

Code Review | Author Bio Box

WordPress plugin Author Bio Box scored90%from 54 tests.

About plugin

  • Plugin page: author-bio-box
  • Plugin version: 3.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Oct 5, 2011
  • Latest release: Nov 5, 2021
  • Number of updates: 47
  • Update frequency: every 78.4 days
  • Top authors: claudiosanches (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

3,000+ active /79,259 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼0.47ms] Passed 4 tests

Analyzing server-side resources used by Author Bio Box
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.53 ▲0.82
Dashboard /wp-admin3.41 ▲0.1050.11 ▲0.67
Posts /wp-admin/edit.php3.52 ▲0.1646.82 ▲2.42
Add New Post /wp-admin/post-new.php5.99 ▲0.1081.89 ▼1.12
Media Library /wp-admin/upload.php3.33 ▲0.1033.82 ▼2.26
Author Bio Box /wp-admin/options-general.php?page=author-bio-box3.3032.38

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Author Bio Box
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.48 ▲0.141.84 ▼0.1044.57 ▲1.22
Dashboard /wp-admin2,210 ▲254.86 ▼0.99110.73 ▲5.9842.46 ▲1.84
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0735.62 ▼0.1434.75 ▼1.70
Add New Post /wp-admin/post-new.php1,545 ▲318.10 ▼0.21603.62 ▼27.9755.34 ▲2.53
Media Library /wp-admin/upload.php1,395 ▲44.18 ▼0.03100.57 ▼3.4643.46 ▲1.32
Author Bio Box /wp-admin/options-general.php?page=author-bio-box1,3732.6359.0529.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: bio, author, social

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

"Author Bio Box" version 3.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
86 characters long description:
Display a box with the author's biography and also social icons in bottom of the post.

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
No dangerous file extensions were detected1,006 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11128286486
SVG111336
PO File13678100
Sass120079
JavaScript2014
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity16.67
▷ Minimum class complexity10.00
▷ Maximum class complexity24.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods828.57%
▷ Public methods2071.43%
▷ Protected methods27.14%
▷ Private methods621.43%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/sprite.png3.54KB1.99KB▼ 43.61%