100% simple-author-bio

Code Review | Simple Author Bio

WordPress plugin Simple Author Bio scored 100% from 54 tests.

About plugin

  • Plugin page: simple-author-bio
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 5.8.1
  • First release: Dec 20, 2016
  • Latest release: Sep 27, 2020
  • Number of updates: 14
  • Update frequency: every 98.1 days
  • Top authors: jmarreros (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 5,695 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.34MB] [CPU: ▼134.59ms] Passed 4 tests

A check of server-side resources used by Simple Author Bio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.14 ▲0.4235.17 ▲12.72
Dashboard /wp-admin3.43 ▲0.3858.70 ▲12.91
Posts /wp-admin/edit.php3.48 ▲0.3743.99 ▲2.42
Add New Post /wp-admin/post-new.php5.73 ▲0.2995.34 ▼555.27
Media Library /wp-admin/upload.php3.31 ▲0.3133.11 ▲1.76
Author Bio /wp-admin/options-general.php?page=dcms_sab_options3.2830.21

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

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

Browser metrics Passed 4 tests

Simple Author Bio: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,714 ▲11815.93 ▲0.4312.93 ▲4.0047.06 ▲0.44
Dashboard /wp-admin2,978 ▲445.91 ▼0.06145.30 ▼19.49103.17 ▼14.28
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0067.11 ▲0.0893.29 ▲2.29
Add New Post /wp-admin/post-new.php1,618 ▼6520.95 ▲4.68320.12 ▼192.50107.23 ▼1.24
Media Library /wp-admin/upload.php1,812 ▲55.05 ▲0.02154.22 ▼3.95121.26 ▲6.27
Author Bio /wp-admin/options-general.php?page=dcms_sab_options1,1112.0961.2383.81

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: bio, social author, author bio, author, biography...

simple-author-bio/dcms-simple-author-bio.php 92% from 13 tests

The principal PHP file in "Simple Author Bio" v. 1.0.7 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-author-bio.php" instead of "dcms-simple-author-bio.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,943 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP64959201,792
CSS122093
PO File1222658

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity74.40
▷ Minimum class complexity2.00
▷ Maximum class complexity223.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods100
▷ Static methods11.00%
▷ Public methods8484.00%
▷ Protected methods1515.00%
▷ Private methods11.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants26
▷ Global constants26100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin