88% author-box-after-posts

Code Review | Author Box After Posts

WordPress plugin Author Box After Posts scored 88% from 54 tests.

About plugin

  • Plugin page: author-box-after-...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jul 19, 2011
  • Latest release: May 25, 2014
  • Number of updates: 40
  • Update frequency: every 55.6 days
  • Top authors: Jeriff Cheng (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 18,589 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.17MB] [CPU: ▼154.19ms] Passed 4 tests

Analyzing server-side resources used by Author Box After Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0031.30 ▼3.94
Dashboard /wp-admin3.10 ▲0.0445.01 ▼3.51
Posts /wp-admin/edit.php3.15 ▲0.0446.83 ▼0.75
Add New Post /wp-admin/post-new.php4.69 ▼0.7559.92 ▼608.55
Media Library /wp-admin/upload.php3.04 ▲0.0334.58 ▲2.58
Author Box After Posts /wp-admin/options-general.php?page=abap-plugin_options3.0127.55

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Author Box After Posts: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲11416.32 ▲0.4711.47 ▲1.0252.70 ▼2.03
Dashboard /wp-admin2,978 ▲485.88 ▼0.07144.52 ▼24.03107.93 ▼12.81
Posts /wp-admin/edit.php2,741 ▲22.70 ▲0.0067.84 ▼4.2899.97 ▲0.57
Add New Post /wp-admin/post-new.php1,686 ▲8218.78 ▼0.08397.43 ▲1.93114.06 ▼4.35
Media Library /wp-admin/upload.php1,812 ▲55.04 ▲0.02159.51 ▼0.54121.51 ▼6.88
Author Box After Posts /wp-admin/options-general.php?page=abap-plugin_options1,0862.0859.4378.25

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=abap-plugin_options
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=abap-plugin_options
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/author-box-after-posts/index.php:70
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/author-box-after-posts/options.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: Please take inspiration from this readme.txt

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

The main PHP script in "Author Box After Posts" version 1.6 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("author-box-after-posts.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin197 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25943196
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin