89% addauthor

Code Review | addauthor

WordPress plugin addauthor scored89%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: 6.3.1
  • 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 /2,157 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by addauthor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0043.31 ▲0.71
Dashboard /wp-admin3.35 ▲0.0050.64 ▼7.71
Posts /wp-admin/edit.php3.40 ▲0.0049.08 ▼7.45
Add New Post /wp-admin/post-new.php5.94 ▲0.0092.52 ▼13.15
Media Library /wp-admin/upload.php3.28 ▲0.0037.19 ▼2.95

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for addauthor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.19 ▼0.151.67 ▼0.0644.17 ▼1.23
Dashboard /wp-admin2,192 ▲125.54 ▼0.1187.04 ▼12.4739.44 ▼6.12
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.0335.09 ▼0.9538.45 ▲4.98
Add New Post /wp-admin/post-new.php1,526 ▼223.20 ▲0.18654.96 ▲11.1750.71 ▼8.90
Media Library /wp-admin/upload.php1,403 ▲94.30 ▲0.02102.99 ▼0.6441.24 ▼6.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (This is how addauthor appear on mine blog.) image missing
  • Donate link: Invalid url: "no link"
You can take inspiration from this readme.txt

addauthor/addauthor.php Passed 13 tests

The main PHP file in "addauthor" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
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 a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin38 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS10022
PHP142716

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! 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%