90% simple-note

Code Review | Simple Note

WordPress plugin Simple Note scored 90% from 54 tests.

About plugin

  • Plugin page: simple-note
  • Plugin version: 1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.0
  • WordPress version: 6.3.1
  • First release: Dec 13, 2018
  • Latest release: Aug 4, 2022
  • Number of updates: 20
  • Update frequency: every 66.5 days
  • Top authors: webliberty (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active / 3,464 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.70ms] Passed 4 tests

A check of server-side resources used by Simple Note
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.65 ▼5.58
Dashboard /wp-admin3.31 ▲0.0148.79 ▼0.60
Posts /wp-admin/edit.php3.36 ▲0.0045.08 ▼7.65
Add New Post /wp-admin/post-new.php5.93 ▲0.04119.32 ▲23.11
Media Library /wp-admin/upload.php3.23 ▲0.0039.82 ▲7.05

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Note
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.65 ▼0.731.78 ▼0.0151.37 ▲3.64
Dashboard /wp-admin2,206 ▲325.84 ▲0.94104.95 ▼2.2445.16 ▲6.69
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0154.91 ▲17.5348.61 ▲15.92
Add New Post /wp-admin/post-new.php6,585 ▲5,05129.41 ▲6.44969.28 ▲357.4762.14 ▲6.72
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.10103.77 ▲5.9147.77 ▲3.21

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
6 plugin tags: note, text, gutenberg, blocks, quote...

simple-note/simple-note.php Passed 13 tests

"Simple Note" version 1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
45 characters long description:
The plugin allows to create simple text note.

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
Good job! No executable or dangerous file extensions detected321 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2350211
CSS410057
PHP1111148
SVG5005

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin