84% site-notes

Code Review | Site Notes

WordPress plugin Site Notes scored 84% from 54 tests.

About plugin

  • Plugin page: site-notes
  • Plugin version: 1.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.5
  • WordPress version: 5.8.1
  • First release: Aug 27, 2015
  • Latest release: Jun 6, 2017
  • Number of updates: 25
  • Update frequency: every 26.0 days
  • Top authors: KTC_88 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

100+ active / 3,222 total downloads


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.32MB] [CPU: ▼149.78ms] Passed 4 tests

This is a short check of server-side resources used by Site Notes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0432.72 ▲3.83
Dashboard /wp-admin3.07 ▲0.0138.26 ▼8.04
Posts /wp-admin/edit.php3.15 ▲0.0445.20 ▼3.19
Add New Post /wp-admin/post-new.php4.08 ▼1.3544.12 ▼586.40
Media Library /wp-admin/upload.php3.04 ▲0.0334.63 ▼1.50

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: 5 new files
Database: 1 new table, no new options
New tables

Browser metrics Passed 4 tests

Checking browser requirements for Site Notes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,009 ▲41317.20 ▲1.7019.94 ▲11.1345.80 ▼3.37
Dashboard /wp-admin3,145 ▲2115.98 ▲0.02134.75 ▼17.39115.14 ▲2.89
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0062.93 ▲1.1794.26 ▲1.69
Add New Post /wp-admin/post-new.php1,718 ▲4618.18 ▼0.69378.79 ▲8.43113.32 ▲7.81
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.03170.60 ▲8.27124.14 ▲2.67

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_notes

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/site-notes/site-notes.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: notes, pages, posts

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

The main PHP file in "Site Notes" ver. 1.6.0 adds more information about the plugin and also serves as the entry point for this plugin
91 characters long description:
A plugin that adds a note box to your posts and pages which can be viewed in the admin bar

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin473 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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 functions13100.00%
▷ Anonymous functions00.00%
▷ 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
There are no PNG files in this plugin