10% nice-author-box

Code Review | Nice Author Box

WordPress plugin Nice Author Box scored 10% from 54 tests.

About plugin

  • Plugin page: nice-author-box
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 31, 2021
  • Latest release: Aug 31, 2021
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: crawlcenter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 277 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/nice-author-box/ABXMN.php+31
    Undefined index: abx_usd

Server metrics [RAM: ▼1.96MB] [CPU: ▼49.08ms] Passed 4 tests

Server-side resources used by Nice Author Box
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.43 ▼38.27
Dashboard /wp-admin2.05 ▼1.267.70 ▼36.59
Posts /wp-admin/edit.php2.05 ▼1.315.43 ▼41.38
Add New Post /wp-admin/post-new.php2.05 ▼3.845.24 ▼80.06
Media Library /wp-admin/upload.php2.05 ▼1.185.68 ▼30.87

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Nice Author Box: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲8513.26 ▼1.124.36 ▲2.4746.94 ▲0.50
Dashboard /wp-admin2,224 ▲364.85 ▼1.0599.18 ▼16.3937.13 ▼5.96
Posts /wp-admin/edit.php2,104 ▲152.06 ▲0.0034.41 ▼10.2731.80 ▼5.47
Add New Post /wp-admin/post-new.php1,529 ▼417.38 ▼5.90670.85 ▲1.2249.89 ▼2.33
Media Library /wp-admin/upload.php1,403 ▲124.19 ▼0.0597.63 ▼2.9843.23 ▲0.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/nice-author-box/ABXMN.php+31
    Undefined index: abx_usd
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/nice-author-box/ABXMN.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === nice-author-box === )
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in nice-author-box/assets to your readme.txt
Please take inspiration from this readme.txt

nice-author-box/index.php 92% from 13 tests

This is the main PHP file of "Nice Author Box" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("nice-author-box.php" instead of "index.php")

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 plugin504 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25112440
CSS21864

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity4.55
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected