94% a-sticky-note

Code Review | A Sticky Note

WordPress plugin A Sticky Note scored 94% from 54 tests.

About plugin

  • Plugin page: a-sticky-note
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5
  • WordPress version: 5.9.2
  • First release: Apr 21, 2020
  • Latest release: Oct 11, 2020
  • Number of updates: 12
  • Update frequency: every 14.5 days
  • Top authors: prtksxna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 897 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼294.79ms] Passed 4 tests

Server-side resources used by A Sticky Note
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0259.41 ▲10.30
Dashboard /wp-admin3.44 ▲0.0233.41 ▼0.65
Posts /wp-admin/edit.php3.66 ▲0.0236.44 ▼2.13
Add New Post /wp-admin/post-new.php6.91 ▼0.0796.15 ▼1,172.31
Media Library /wp-admin/upload.php3.31 ▲0.0124.26 ▼4.05

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for A Sticky Note
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,797 ▲4315.89 ▲0.216.95 ▲0.522.35 ▼0.10
Dashboard /wp-admin2,899 ▲416.12 ▼0.07118.85 ▼16.55156.28 ▼3.88
Posts /wp-admin/edit.php2,698 ▲43.24 ▲0.0164.12 ▼0.11143.30 ▲1.49
Add New Post /wp-admin/post-new.php1,669 ▲118.50 ▼0.27408.56 ▼10.11153.44 ▼17.56
Media Library /wp-admin/upload.php1,702 ▲45.50 ▼0.03143.25 ▲4.53184.82 ▼9.62

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 | This is a shallow check for server-side errors
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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a-sticky-note/sticky-note-plugin.php:50

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 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
4 plugin tags: post it, sticky note, gutenberg, block

a-sticky-note/sticky-note-plugin.php 85% from 13 tests

This is the main PHP file of "A Sticky Note" version 1.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("a-sticky-note.php" instead of "sticky-note-plugin.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("5.1" instead of "5.2")

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 detected716 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23865378
Markdown1460218
CSS18246
XML1134243
PHP262231

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin