90% stylish-author-bio

Code Review | Stylish Author Bio

WordPress plugin Stylish Author Bio scored90%from 54 tests.

About plugin

  • Plugin page: stylish-author-bio
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7
  • WordPress version: 6.3.1
  • First release: Dec 1, 2016
  • Latest release: Dec 9, 2016
  • Number of updates: 17
  • Update frequency: every 0.1 days
  • Top authors: bdstar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,603 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼7.22ms] Passed 4 tests

This is a short check of server-side resources used by Stylish Author Bio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.73 ▼0.34
Dashboard /wp-admin3.45 ▲0.1551.07 ▼2.23
Posts /wp-admin/edit.php3.56 ▲0.2148.64 ▼5.13
Add New Post /wp-admin/post-new.php6.03 ▲0.1487.49 ▼21.18
Media Library /wp-admin/upload.php3.37 ▲0.1438.30 ▲2.61
Stylish Author Bio /wp-admin/options-general.php?page=stylish-author-bio3.3434.33

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

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

Browser metrics Passed 4 tests

Stylish Author Bio: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.63 ▼0.984.73 ▲2.8142.77 ▼2.43
Dashboard /wp-admin2,210 ▲225.85 ▼0.05100.16 ▼7.5940.74 ▼2.67
Posts /wp-admin/edit.php2,093 ▲12.04 ▲0.0136.33 ▼7.0935.58 ▼0.99
Add New Post /wp-admin/post-new.php1,536 ▲1723.14 ▼0.21609.67 ▼5.0658.43 ▲4.90
Media Library /wp-admin/upload.php1,392 ▲44.24 ▼0.0296.43 ▼4.7842.44 ▼4.71
Stylish Author Bio /wp-admin/options-general.php?page=stylish-author-bio1,6973.0464.9136.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

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)
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
Looking good! No server-side errors or output 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
There were no browser issues found

Optimizations

Plugin configuration 97% 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
Attributes that require attention:
  • Tags: There are too many tags (28 tag instead of maximum 10)
You can look at the official readme.txt

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

The principal PHP file in "Stylish Author Bio" v. 1.0 is loaded by WordPress automatically on each request
74 characters long description:
Display author's biography with social icons in bottom of the posts/pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,094 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
SVG1001,013
PHP8212266763
CSS1193168
PO File16471146
JavaScript2014

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity17.67
▷ Minimum class complexity13.00
▷ Maximum class complexity26.00
Average method complexity2.79
▷ 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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin