94% bns-bio

Code Review | BNS Bio

WordPress plugin BNS Bio scored 94% from 54 tests.

About plugin

  • Plugin page: bns-bio
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 5.8.1
  • First release: Nov 12, 2012
  • Latest release: Apr 10, 2016
  • Number of updates: 12
  • Update frequency: every 103.8 days
  • Top authors: cais (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,276 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼153.49ms] Passed 4 tests

This is a short check of server-side resources used by BNS Bio
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1534.32 ▲10.87
Dashboard /wp-admin3.09 ▲0.0349.81 ▼3.85
Posts /wp-admin/edit.php3.14 ▲0.0371.06 ▲16.39
Add New Post /wp-admin/post-new.php5.44 ▲0.0184.08 ▼612.07
Media Library /wp-admin/upload.php3.03 ▲0.0323.28 ▼8.90

Server storage [IO: ▲0.03MB] [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: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

BNS Bio: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲10915.90 ▲0.349.29 ▲1.1252.92 ▲3.83
Dashboard /wp-admin2,964 ▲335.93 ▲0.01206.04 ▲4.42154.02 ▲9.25
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0167.31 ▼22.60103.28 ▼4.96
Add New Post /wp-admin/post-new.php1,676 ▼718.86 ▲0.16367.14 ▼83.02116.29 ▼17.64
Media Library /wp-admin/upload.php1,807 ▼34.99 ▼0.01153.73 ▼1.14131.05 ▲10.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bns-bio/bns-bio.php:66
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bns-bio/bns-bio-list.php:84
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bns-bio/bns-bio-hide.php:86
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bns-bio/bns-bio-box.php:83

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, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt Passed 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
2 plugin tags: plugin-only, author

bns-bio/bns-bio-box.php 85% from 13 tests

The primary PHP file in "BNS Bio" version 0.3.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bns-bio.php" instead of "bns-bio-box.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin200 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
There are no PNG files in this plugin