72% author-box-with-different-description

Code Review | Author Box Plugin With Different Description

WordPress plugin Author Box Plugin With Different Description scored72%from 54 tests.

About plugin

  • Plugin page: author-box-with-d...
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.1
  • WordPress version: 6.3.1
  • First release: Jul 25, 2012
  • Latest release: Feb 7, 2016
  • Number of updates: 27
  • Update frequency: every 47.9 days
  • Top authors: sanjeevmohindra (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /11,409 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

This is a short check of server-side resources used by Author Box Plugin With Different Description
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.96 ▲4.42
Dashboard /wp-admin3.37 ▲0.0750.93 ▼3.33
Posts /wp-admin/edit.php3.42 ▲0.0750.37 ▼3.14
Add New Post /wp-admin/post-new.php5.95 ▲0.0792.22 ▼6.35
Media Library /wp-admin/upload.php3.30 ▲0.0737.57 ▼0.90
Author Box /wp-admin/options-general.php?page=author-box-dds-plugin3.2435.12

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Author Box Plugin With Different Description
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.44 ▼0.231.75 ▼0.5041.39 ▼1.95
Dashboard /wp-admin2,216 ▲95.84 ▲0.89100.85 ▼19.5141.52 ▲1.66
Posts /wp-admin/edit.php2,101 ▼22.00 ▼0.0534.54 ▼5.1237.50 ▲6.23
Add New Post /wp-admin/post-new.php1,543 ▼223.32 ▲0.42642.09 ▲14.9669.99 ▲9.70
Media Library /wp-admin/upload.php1,404 ▲74.14 ▼0.06109.33 ▼10.6749.16 ▼0.76
Author Box /wp-admin/options-general.php?page=author-box-dds-plugin1,4109.05326.1969.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=author-box-dds-plugin
    • > Notice in wp-content/plugins/author-box-with-different-description/option_dds.php+11
    Undefined index: action
    • > GET request to /wp-admin/options-general.php?page=author-box-dds-plugin
    • > Notice in wp-content/plugins/author-box-with-different-description/option_dds.php+45
    Undefined variable: message

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
Please fix the following
  • 1× 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/author-box-with-different-description/author_box_dds.php:32

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=author-box-dds-plugin
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Author Box Layout)
The official readme.txt is a good inspiration

author-box-with-different-description/author_box_dds.php 92% from 13 tests

Analyzing the main PHP file in "Author Box Plugin With Different Description" version 1.3.5
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("author-box-with-different-description.php" instead of "author_box_dds.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected341 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32127315
CSS10026

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions8
▷ Named functions8100.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
8 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
image/linkedin.png2.71KB1.45KB▼ 46.37%
image/email.png2.92KB1.49KB▼ 48.86%
image/facebook.png2.00KB0.88KB▼ 56.08%
image/pinterest.png4.39KB2.32KB▼ 47.12%
screenshot-1.png71.52KB19.61KB▼ 72.58%