74% site-notes

Code Review | Site Notes

WordPress plugin Site Notes scored74%from 54 tests.

About plugin

  • Plugin page: site-notes
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4
  • WordPress version: 6.3.1
  • First release: Aug 27, 2015
  • Latest release: Sep 27, 2023
  • Number of updates: 28
  • Update frequency: every 105.5 days
  • Top authors: KTC_88 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

80+ active /3,578 total downloads

Benchmarks

Plugin footprint 65% 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.07MB] [CPU: ▼10.39ms] 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 /3.51 ▲0.0434.40 ▼3.49
Dashboard /wp-admin3.36 ▲0.0548.48 ▲2.21
Posts /wp-admin/edit.php3.41 ▲0.0549.62 ▲0.37
Add New Post /wp-admin/post-new.php5.49 ▼0.4068.77 ▼37.13
Media Library /wp-admin/upload.php3.28 ▲0.0533.65 ▼1.32

Server storage [IO: ▲0.02MB] [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, 6 new options
New tables
wp_notes
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

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 /2,909 ▲14814.28 ▼0.091.74 ▲0.1540.04 ▲0.65
Dashboard /wp-admin2,312 ▲1355.67 ▲0.0090.66 ▲0.4742.48 ▲1.68
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0439.26 ▼2.2737.23 ▲0.93
Add New Post /wp-admin/post-new.php6,220 ▲4,69425.94 ▲2.55895.44 ▲172.3754.11 ▼9.25
Media Library /wp-admin/upload.php1,394 ▼64.23 ▲0.0394.98 ▼1.8041.20 ▼2.95

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • admin_bar_notes
    • can_compress_scripts

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

Optimizations

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. 2.0.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 plugin417 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24243257
CSS13187
JavaScript117673

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.27
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%
Functions12
▷ Named functions12100.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
There are no PNG files in this plugin