99% simple-admin-notes

Code Review | Simple Admin Notes

WordPress plugin Simple Admin Notes scored 99% from 54 tests.

About plugin

  • Plugin page: simple-admin-notes
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8
  • WordPress version: 5.8.1
  • First release: Sep 23, 2011
  • Latest release: Dec 30, 2013
  • Number of updates: 39
  • Update frequency: every 21.3 days
  • Top authors: wycks (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active / 10,024 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.07MB] [CPU: ▼153.75ms] Passed 4 tests

A check of server-side resources used by Simple Admin Notes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0733.92 ▼11.11
Dashboard /wp-admin3.13 ▲0.0849.07 ▼38.79
Posts /wp-admin/edit.php3.19 ▲0.0848.73 ▲12.53
Add New Post /wp-admin/post-new.php5.49 ▲0.0682.45 ▼563.47
Media Library /wp-admin/upload.php3.08 ▲0.0734.59 ▼1.64
Edit Notes /wp-admin/edit.php?post_type=note3.1233.50
New Note /wp-admin/post-new.php?post_type=note3.1949.73
My Notes /wp-admin/edit.php?post_type=note&page=my_notes3.0630.09

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Admin Notes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,754 ▲18215.99 ▲0.318.96 ▼1.4249.01 ▲0.65
Dashboard /wp-admin3,014 ▲806.04 ▼0.10140.19 ▼26.91108.58 ▼12.60
Posts /wp-admin/edit.php2,786 ▲472.88 ▲0.1666.84 ▼3.2387.41 ▼16.35
Add New Post /wp-admin/post-new.php1,532 ▼7218.42 ▼0.39377.12 ▼35.92111.89 ▲8.93
Media Library /wp-admin/upload.php1,780 ▼305.06 ▲0.03149.19 ▼12.57121.38 ▲4.39
Edit Notes /wp-admin/edit.php?post_type=note1,4592.6461.0570.00
New Note /wp-admin/post-new.php?post_type=note2,9879.14238.87141.91
My Notes /wp-admin/edit.php?post_type=note&page=my_notes1,1052.4058.3868.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, 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 | 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === simple-admin-notes === )
  • Screenshots: Please add images for these screenshots: #1 (A screenshot of Notes in the Admin and the Notes menu.), #2 (Choose to display notes on certain posts by id.)
The official readme.txt might help

simple-admin-notes/simple-notes.php 92% from 13 tests

The main PHP script in "Simple Admin Notes" version 1.4.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-admin-notes.php" instead of "simple-notes.php")

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
Everything looks great! No dangerous files found in this plugin341 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP19287261
CSS211080

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.28
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin