94% user-notes

Code Review | User Notes

WordPress plugin User Notes scored 94% from 54 tests.

About plugin

  • Plugin page: user-notes
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.7
  • WordPress version: 5.8.1
  • First release: May 21, 2014
  • Latest release: Apr 13, 2021
  • Number of updates: 22
  • Update frequency: every 114.5 days
  • Top authors: cartpauj (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active / 7,397 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by User Notes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1435.16 ▲12.54
Dashboard /wp-admin3.08 ▲0.0350.25 ▲1.64
Posts /wp-admin/edit.php3.13 ▲0.0343.68 ▲8.63
Add New Post /wp-admin/post-new.php5.44 ▲0.0179.10 ▼579.29
Media Library /wp-admin/upload.php3.03 ▲0.0233.92 ▲3.46

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

User Notes: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.02 ▲0.459.87 ▲0.5745.04 ▲0.89
Dashboard /wp-admin2,967 ▲395.90 ▼0.26140.07 ▼15.58116.22 ▲3.22
Posts /wp-admin/edit.php2,736 ▼32.85 ▼0.0065.26 ▲0.2890.93 ▲8.31
Add New Post /wp-admin/post-new.php1,682 ▲1018.98 ▼0.10379.86 ▼1.26109.90 ▲1.75
Media Library /wp-admin/upload.php1,807 ▼35.07 ▲0.04138.08 ▼3.90123.13 ▲4.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× 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/user-notes/user-notes.php:51

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: user, private, notes, users, private user notes...

user-notes/user-notes.php Passed 13 tests

The principal PHP file in "User Notes" v. 1.0.2 is loaded by WordPress automatically on each request
77 characters long description:
Keep private notes about each of your users that only Administrators can see.

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 plugin67 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin