10% author-box-2

Code Review | Author Box Reloaded

WordPress plugin Author Box Reloaded scored10%from 54 tests.

About plugin

  • Plugin page: author-box-2
  • Plugin version: 2.0.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Apr 12, 2010
  • Latest release: May 28, 2014
  • Number of updates: 112
  • Update frequency: every 13.5 days
  • Top authors: ipublicis (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /28,410 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/author-box-2/authorbox.php+41
    Function create_function() is deprecated

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.78ms] Passed 4 tests

This is a short check of server-side resources used by Author Box Reloaded
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.50 ▼8.33
Dashboard /wp-admin3.31 ▲0.0046.08 ▼5.05
Posts /wp-admin/edit.php3.36 ▲0.0046.32 ▼1.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.91 ▼0.44
Media Library /wp-admin/upload.php3.23 ▲0.0040.22 ▼0.68

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Author Box Reloaded
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.33 ▼0.311.80 ▲0.0942.29 ▼2.74
Dashboard /wp-admin2,195 ▲155.61 ▼0.0091.61 ▼0.5340.05 ▲1.26
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0340.55 ▲3.6234.48 ▼1.72
Add New Post /wp-admin/post-new.php1,526 ▼023.25 ▲0.25696.71 ▲17.8764.73 ▲4.77
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.04110.22 ▲3.1047.77 ▲0.78

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/author-box-2/authorbox.php:32
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/author-box-2/authorbox-init.php:10

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 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
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (The Author Box Reloaded in a blog using LTR language.), #2 (The Author Box Reloaded in a blog using RTL language (Persian).), #3 (The modified User Profile page with some social networks available.), #4 (Now Author Box Reloaded is at the user's panel and not on Settings panel. Makes much more sense to end user.), #5 (More options, more versatile.), #6 (Using Wordpress Plugin Framework Reloaded turns access to help and other stuff much easier and makes admin interface more usable.), #7 (Global view of the new admin interface.), #8 (`External Contacts`. Now moved to [Author Box Reloaded Pack](http://wordpress.org/extend/plugins/author-box-reloaded-pack/).)
The official readme.txt might help

author-box-2/authorbox.php 85% from 13 tests

Analyzing the main PHP file in "Author Box Reloaded" version 2.0.4.2
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("author-box-2.php" instead of "authorbox.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin625 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP35475291
PO File480104225
CSS33566109

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1487.50%
▷ Protected methods212.50%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.62MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png56.87KB25.97KB▼ 54.33%
images/globe.png0.90KB1.01KB0.00%
images/ipublicis-logo-32.png1.98KB1.56KB▼ 20.81%
screenshot-1.png117.74KB39.18KB▼ 66.72%
screenshot-7.png100.86KB32.76KB▼ 67.52%