99% addauthor

Code Review | addauthor

WordPress plugin addauthor scored 99% from 54 tests.

About plugin

  • Plugin page: addauthor
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.8
  • WordPress version: 5.9.2
  • First release: Feb 5, 2009
  • Latest release: Jul 10, 2021
  • Number of updates: 32
  • Update frequency: every 141.8 days
  • Top authors: wolly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,964 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼291.25ms] Passed 4 tests

An overview of server-side resources used by addauthor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0155.42 ▲6.37
Dashboard /wp-admin3.42 ▲0.0133.27 ▼0.64
Posts /wp-admin/edit.php3.65 ▲0.0136.67 ▼3.29
Add New Post /wp-admin/post-new.php6.89 ▼0.0991.75 ▼1,159.62
Media Library /wp-admin/upload.php3.30 ▲0.0023.55 ▼1.44

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for addauthor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7315.91 ▼0.066.33 ▼0.242.79 ▲0.57
Dashboard /wp-admin2,895 ▲406.15 ▼0.01126.58 ▼9.15166.44 ▲5.28
Posts /wp-admin/edit.php2,694 ▲33.23 ▼0.0061.39 ▼7.89139.30 ▼2.89
Add New Post /wp-admin/post-new.php1,661 ▲116.58 ▼0.42410.06 ▼35.88153.32 ▲12.03
Media Library /wp-admin/upload.php1,698 ▼05.48 ▼0.04135.26 ▼10.17182.67 ▼3.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (This is how addauthor appear on mine blog.)
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

addauthor/addauthor.php Passed 13 tests

The principal PHP file in "addauthor" v. 1.3 is loaded by WordPress automatically on each request
103 characters long description:
This plugin allow you to show the description of the author of the post. Useful for multi authors blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin38 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS10022
PHP142716

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png49.06KB17.12KB▼ 65.11%