74% author-box-by-nocksoft

Code Review | Author Box by Nocksoft

WordPress plugin Author Box by Nocksoft scored74%from 54 tests.

About plugin

  • Plugin page: author-box-by-noc...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.0
  • WordPress version: 6.3.1
  • First release: Apr 28, 2018
  • Latest release: Sep 8, 2022
  • Number of updates: 23
  • Update frequency: every 69.3 days
  • Top authors: nocksoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,177 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.83ms] Passed 4 tests

This is a short check of server-side resources used by Author Box by Nocksoft
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.72 ▼1.71
Dashboard /wp-admin3.42 ▲0.1251.36 ▼0.54
Posts /wp-admin/edit.php3.47 ▲0.1157.87 ▲4.15
Add New Post /wp-admin/post-new.php6.02 ▲0.1389.06 ▼13.23
Media Library /wp-admin/upload.php3.35 ▲0.1142.74 ▲7.73
Author Box /wp-admin/options-general.php?page=nstab3.3135.84

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
These are issues you should consider
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/author-box-by-nocksoft/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 14 new files
Database: no new tables, 22 new options
New WordPress options
nstab_setting_fontsizeheadline
nstab_setting_circleavatar
nstab_setting_headline
widget_theysaidso_widget
nstab_setting_hidewordpressauthorbox
theysaidso_admin_options
nstab_setting_displayauthorboxonpages
widget_recent-comments
nstab_setting_fontsizeposition
nstab_setting_showshadow
...

Browser metrics Passed 4 tests

A check of browser resources used by Author Box by Nocksoft
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲10413.33 ▼0.981.73 ▼0.2041.83 ▼6.15
Dashboard /wp-admin2,241 ▲384.98 ▼0.91103.69 ▼12.8038.58 ▼8.33
Posts /wp-admin/edit.php2,125 ▲252.31 ▲0.2536.00 ▼2.0231.72 ▼3.26
Add New Post /wp-admin/post-new.php1,559 ▲3323.31 ▲5.71722.06 ▲29.5138.20 ▼16.33
Media Library /wp-admin/upload.php1,426 ▲294.48 ▲0.29109.41 ▲4.2750.02 ▲3.75
Author Box /wp-admin/options-general.php?page=nstab8841.9427.6725.67

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Incomplete uninstall procedure, leaving 14 files (0.06MB) in the plugin directory
    • (new file) languages/author-box-by-nocksoft-de_DE.po
    • (new file) css/hidewordpressauthorbox.css
    • (new file) LICENSE
    • (new file) php/settings-global.php
    • (new file) js/colorpicker.js
    • (new file) css/style.css
    • (new file) php/settings-defaults.php
    • (new file) languages/author-box-by-nocksoft-de_DE.mo
    • (new file) php/authorbox.php
    • (new file) author-box-by-nocksoft.php
    • ...
  • Zombie WordPress options detected upon uninstall: 22 options
    • nstab_setting_circleavatar
    • nstab_setting_displayauthorboxonposts
    • widget_recent-posts
    • nstab_setting_font
    • nstab_setting_showborder
    • nstab_setting_displayauthorsarchive
    • nstab_setting_fontsizebio
    • nstab_setting_displayauthorboxonpages
    • nstab_setting_hidewordpressauthorbox
    • nstab_setting_bordersize
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/author-box-by-nocksoft/php/settings-user.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/author-box-by-nocksoft/php/authorbox.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/author-box-by-nocksoft/php/settings-global.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/author-box-by-nocksoft/php/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/author-box-by-nocksoft/author-box-by-nocksoft.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/author-box-by-nocksoft/php/settings-defaults.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: author box, author bio, about me, author profile, author description...

author-box-by-nocksoft/author-box-by-nocksoft.php Passed 13 tests

The main file in "Author Box by Nocksoft" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
117 characters long description:
Adds a modern customizable author info box at the end of your posts and pages with some information about the author.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin563 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP77930420
PO File1474896
CSS210044
JavaScript1003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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