84% multisite-author-bio

Code Review | Multisite Author Bio

WordPress plugin Multisite Author Bio scored84%from 54 tests.

About plugin

  • Plugin page: multisite-author-bio
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 5, 2022
  • Latest release: Nov 24, 2022
  • Number of updates: 9
  • Update frequency: every 5.8 days
  • Top authors: codeadapted (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /488 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.94ms] Passed 4 tests

Server-side resources used by Multisite Author Bio
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.89 ▼7.83
Dashboard /wp-admin3.38 ▲0.0345.31 ▼21.54
Posts /wp-admin/edit.php3.49 ▲0.1351.60 ▲5.54
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.58 ▼15.65
Media Library /wp-admin/upload.php3.30 ▲0.0738.99 ▲5.27
Multisite Author Bio /wp-admin/options-general.php?page=multisite-author-bio3.2732.92

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
mab_activated
widget_recent-comments

Browser metrics Passed 4 tests

Multisite Author Bio: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.43 ▼0.241.60 ▼0.6342.80 ▼2.33
Dashboard /wp-admin2,213 ▲254.83 ▼1.19108.42 ▼5.9542.83 ▼1.89
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0439.21 ▲2.7935.91 ▲2.93
Add New Post /wp-admin/post-new.php1,536 ▲2223.35 ▲5.75656.55 ▼46.1156.04 ▲2.17
Media Library /wp-admin/upload.php1,389 ▲44.19 ▼0.0399.11 ▼3.4746.76 ▲5.78
Multisite Author Bio /wp-admin/options-general.php?page=multisite-author-bio7911.6724.7428.93

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

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
Everything seems fine, however this is by no means 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/multisite-author-bio/admin/view.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Requires at least: Invalid version format
Please take inspiration from this readme.txt

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

The main file in "Multisite Author Bio" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
83 characters long description:
Allows you to add unique user biographical information for each Multisite instance.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin640 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP596232297
CSS2281169
PO File22428112
JavaScript213062

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.25
▷ Minimum class complexity3.00
▷ Maximum class complexity16.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods25
▷ Static methods312.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
PNG images were not found in this plugin