94% plugin-notes-label

Code Review | Plugin Notes Label

WordPress plugin Plugin Notes Label scored 94% from 53 tests.

About plugin

  • Plugin page: plugin-notes-label
  • Plugin version: 4.14
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.8.1
  • WordPress version: 5.8.1
  • First release: Apr 15, 2021
  • Latest release: Oct 7, 2021
  • Number of updates: 15
  • Update frequency: every 11.7 days
  • Top authors: wpgear (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 296 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: ▼275.87ms] Passed 4 tests

Server-side resources used by Plugin Notes Label
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1241.28 ▲19.36
Dashboard /wp-admin3.06 ▲0.0135.57 ▼2.38
Posts /wp-admin/edit.php3.11 ▲0.0136.53 ▼14.83
Add New Post /wp-admin/post-new.php5.43 ▼0.0091.38 ▼1,080.48
Media Library /wp-admin/upload.php3.01 ▼0.0031.15 ▼5.79
Plugin Notes Label /wp-admin/options-general.php?page=plugin-notes-label/options.php3.0528.16

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Plugin Notes Label
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲7215.96 ▲0.448.17 ▲0.3642.82 ▼4.05
Dashboard /wp-admin2,929 ▲765.91 ▼0.03152.54 ▲20.48100.72 ▼2.88
Posts /wp-admin/edit.php2,708 ▲52.69 ▲0.0165.31 ▲0.5893.62 ▼1.02
Add New Post /wp-admin/post-new.php1,484 ▼17218.48 ▲0.04350.86 ▼7.72105.88 ▼0.15
Media Library /wp-admin/upload.php1,777 ▲55.01 ▲0.00142.51 ▼31.55111.94 ▼8.37
Plugin Notes Label /wp-admin/options-general.php?page=plugin-notes-label/options.php1,1692.0656.4367.70

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 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/plugin-notes-label/plugin-notes-label.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/plugin-notes-label/options.php:145
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/plugin-notes-label/includes/ajax_note.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

plugin-notes-label/plugin-notes-label.php Passed 13 tests

The entry point to "Plugin Notes Label" version 4.14 is a PHP file that has certain tags in its header comment area
30 characters long description:
Add your Notes to each plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected727 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP515269505
JavaScript24614124
CSS211098

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin