99% append-user-id

Code Review | Append User ID

WordPress plugin Append User ID scored 99% from 53 tests.

About plugin

  • Plugin page: append-user-id
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 5.8.1
  • First release: Jan 16, 2020
  • Latest release: Jan 16, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: mardellme (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 249 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼1,172.43ms] Passed 4 tests

This is a short check of server-side resources used by Append User ID
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1241.71 ▲21.13
Dashboard /wp-admin3.06 ▲0.0144.60 ▲5.00
Posts /wp-admin/edit.php3.11 ▲0.0142.08 ▼1.17
Add New Post /wp-admin/post-new.php5.42 ▼0.0098.56 ▼4,693.67
Media Library /wp-admin/upload.php3.00 ▲0.0031.80 ▲0.14

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Append User ID
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,661 ▲5516.00 ▲0.519.50 ▲1.1147.30 ▼2.06
Dashboard /wp-admin2,939 ▲896.15 ▲0.26143.26 ▲1.06102.80 ▼2.20
Posts /wp-admin/edit.php2,695 ▼112.60 ▼0.1066.90 ▲2.4591.65 ▲0.25
Add New Post /wp-admin/post-new.php1,657 ▼19618.72 ▼0.45358.12 ▼9.18103.91 ▼1.61
Media Library /wp-admin/upload.php1,779 ▲45.01 ▼0.02137.64 ▼4.14109.12 ▼0.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% 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 require attention:
  • Screenshots: Screenshot #2 (Backend view) image missing
You can look at the official readme.txt

append-user-id/append-user-id.php 85% from 13 tests

"Append User ID" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin457 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13137413435
JSON20015
JavaScript1104
CSS1003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods37
▷ Static methods410.81%
▷ Public methods3389.19%
▷ Protected methods00.00%
▷ Private methods410.81%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected