100% plugin-notes

Code Review | Plugin Notes

WordPress plugin Plugin Notes scored 100% from 53 tests.

About plugin

  • Plugin page: plugin-notes
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2
  • WordPress version: 5.8.1
  • First release: Oct 25, 2009
  • Latest release: Jul 17, 2015
  • Number of updates: 21
  • Update frequency: every 112.5 days
  • Top authors: batmoo (61.9%)jrf (23.81%)cdillon27 (23.81%)

Code review

53 tests

User reviews

26 reviews

Install metrics

1,000+ active / 12,032 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼337.94ms] Passed 4 tests

A check of server-side resources used by Plugin Notes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0734.56 ▼0.50
Dashboard /wp-admin3.13 ▲0.0842.43 ▼2.33
Posts /wp-admin/edit.php3.19 ▲0.0841.92 ▼2.29
Add New Post /wp-admin/post-new.php5.50 ▲0.0782.12 ▼1,335.98
Media Library /wp-admin/upload.php3.08 ▲0.0735.97 ▼11.17

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Plugin Notes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲6816.15 ▲0.648.35 ▲0.1548.51 ▼2.96
Dashboard /wp-admin2,934 ▲786.13 ▲0.26137.95 ▲2.19101.18 ▼12.80
Posts /wp-admin/edit.php2,706 ▼02.69 ▼0.0163.58 ▼6.6494.60 ▲2.21
Add New Post /wp-admin/post-new.php1,489 ▼16717.13 ▼1.35351.16 ▼56.51104.59 ▼6.07
Media Library /wp-admin/upload.php1,775 ▲35.01 ▲0.00154.09 ▼11.41114.97 ▼8.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: meta, memo, plugin, plugins, plugin notes

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

This is the main PHP file of "Plugin Notes" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
53 characters long description:
Allows you to add notes to plugins. Simple and sweet.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,588 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP43645871,313
JavaScript22620109
PO File1181890
CSS21076

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity34.33
▷ Minimum class complexity4.00
▷ Maximum class complexity62.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods72
▷ Static methods00.00%
▷ Public methods72100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/external.png48.32KB0.31KB▼ 99.37%