89% simple-sticky-note

Code Review | Simple Sticky Note

WordPress plugin Simple Sticky Note scored89%from 54 tests.

About plugin

  • Plugin page: simple-sticky-note
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 30, 2020
  • Latest release: Aug 12, 2023
  • Number of updates: 15
  • Update frequency: every 86.1 days
  • Top authors: sharkthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /4,148 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 gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼10.28ms] Passed 4 tests

Analyzing server-side resources used by Simple Sticky Note
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1137.98 ▼3.05
Dashboard /wp-admin3.41 ▲0.1049.01 ▼3.68
Posts /wp-admin/edit.php3.52 ▲0.1647.00 ▼5.78
Add New Post /wp-admin/post-new.php5.99 ▲0.1085.75 ▼28.10
Media Library /wp-admin/upload.php3.33 ▲0.1034.86 ▼3.54

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Simple Sticky Note
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲9513.94 ▼0.3111.88 ▲9.8545.56 ▲1.79
Dashboard /wp-admin2,192 ▲155.60 ▼0.0186.14 ▼5.6741.86 ▼4.24
Posts /wp-admin/edit.php2,100 ▼32.06 ▲0.0538.22 ▼10.2035.47 ▼6.23
Add New Post /wp-admin/post-new.php1,545 ▲823.20 ▲0.09649.37 ▲49.7053.82 ▼1.47
Media Library /wp-admin/upload.php1,403 ▲64.22 ▼0.0497.31 ▼5.8043.39 ▼0.94

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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 shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: sticky note, frontend sticky note

simple-sticky-note/st-sticky-note.php 85% from 13 tests

The main file in "Simple Sticky Note" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-sticky-note.php" instead of "st-sticky-note.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,999 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript65447922,422
PHP411078347
CSS148230

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.25
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods20
▷ Static methods210.00%
▷ Public methods1890.00%
▷ Protected methods00.00%
▷ Private methods210.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 are no PNG files in this plugin