78% master-mind-author-box

Code Review | Author Box

WordPress plugin Author Box scored78%from 54 tests.

About plugin

  • Plugin page: master-mind-autho...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Apr 14, 2014
  • Latest release: May 20, 2015
  • Number of updates: 8
  • Update frequency: every 50.3 days
  • Top authors: viky081 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,317 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.26MB] [CPU: ▼13.21ms] Passed 4 tests

This is a short check of server-side resources used by Author Box
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0834.75 ▼4.82
Dashboard /wp-admin3.38 ▲0.0357.98 ▼0.29
Posts /wp-admin/edit.php3.43 ▲0.0746.61 ▼2.36
Add New Post /wp-admin/post-new.php4.67 ▼1.2244.38 ▼45.35
Media Library /wp-admin/upload.php3.31 ▲0.0734.92 ▲1.82
Author Box /wp-admin/options-general.php?page=author_box3.2732.81

Server storage [IO: ▲0.08MB] [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, 25 new options
New WordPress options
display_options
font_default
enable_avatar
author_box_bg
widget_recent-comments
link_color
font_weight
author_box_width
font_color
display_contact_info
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Author Box
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4514.35 ▲0.101.76 ▼0.1353.05 ▲13.61
Dashboard /wp-admin2,199 ▲225.64 ▲0.0394.76 ▲9.7242.32 ▲0.70
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0433.34 ▼7.2534.58 ▼3.76
Add New Post /wp-admin/post-new.php1,529 ▲123.43 ▲0.17681.99 ▲54.3753.44 ▼9.43
Media Library /wp-admin/upload.php1,404 ▲14.20 ▲0.0897.04 ▼4.7945.61 ▲2.52
Author Box /wp-admin/options-general.php?page=author_box1,5971.6826.2526.30

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 25 options
    • can_compress_scripts
    • font_family
    • font_weight
    • font_default
    • contact_info_caption
    • avatar_image_height
    • enable_avatar
    • author_box_position
    • widget_recent-posts
    • author_box_height
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
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 add_action() in wp-content/plugins/master-mind-author-box/authorboxplugin.php:141
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/master-mind-author-box/inc/authorbox-include.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=author_box
    • > Network (severe)
    wp-content/plugins/authorboxplugin/css/adminstyle.css - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=author_box
    • > Network (severe)
    wp-content/plugins/authorboxplugin/jscolor/jscolor.js - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === master-mind-author-box === )
You can look at the official readme.txt

master-mind-author-box/authorboxplugin.php 92% from 13 tests

The principal PHP file in "Author Box" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("master-mind-author-box.php" instead of "authorboxplugin.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
Everything looks great! No dangerous files found in this plugin1,474 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript113837820
PHP34021447
CSS1320207

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods685.71%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
jscolor/hv.png2.80KB7.32KB0.00%
jscolor/hs.png2.62KB7.54KB0.00%