83% book-author-bio

Code Review | Book Author Bio

WordPress plugin Book Author Bio scored83%from 54 tests.

About plugin

  • Plugin page: book-author-bio
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jul 26, 2022
  • Latest release: Aug 11, 2022
  • Number of updates: 23
  • Update frequency: every 0.7 days
  • Top authors: bestwpdeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /716 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.25ms] Passed 4 tests

Analyzing server-side resources used by Book Author Bio
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.06 ▼7.04
Dashboard /wp-admin3.42 ▲0.1150.11 ▼1.21
Posts /wp-admin/edit.php3.47 ▲0.1151.18 ▼3.50
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.84 ▼17.24
Media Library /wp-admin/upload.php3.28 ▲0.0536.69 ▼0.15
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.3536.87

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Book Author Bio
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.26 ▼0.121.73 ▼0.0637.85 ▼12.03
Dashboard /wp-admin2,225 ▲455.56 ▼0.0789.92 ▲5.6944.16 ▼0.73
Posts /wp-admin/edit.php2,142 ▲392.06 ▲0.0341.06 ▲0.3945.64 ▲8.20
Add New Post /wp-admin/post-new.php1,552 ▲2623.58 ▲0.33659.75 ▲36.4453.01 ▼2.71
Media Library /wp-admin/upload.php1,438 ▲354.24 ▲0.0496.00 ▼7.9544.78 ▼1.66
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins9742.0626.0429.31

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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 following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/book-author-bio/includes/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Creativeauthorbio\\plugin_dir_url() in wp-content/plugins/book-author-bio/bwdab-boots.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • License uri: Invalid URI ("www.gnu.org/licenses/gpl-3.0.html")
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

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

The main PHP script in "Book Author Bio" version 1.0 is automatically included on every request by WordPress
74 characters long description:
Book author bio Elementor plugin eye-cathing style with 15+ preset design.

Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected7,386 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP65861,6624,422
CSS4416222,853
JavaScript21520111

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 109)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity41.82
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.51
▷ Minimum method complexity1.00
▷ Maximum method complexity109.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods128
▷ Static methods64.69%
▷ Public methods10178.91%
▷ Protected methods2519.53%
▷ Private methods21.56%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants222.22%
▷ Class constants777.78%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/public/image/sign-white.png25.71KB8.56KB▼ 66.70%