84% a-sticky-note

Code Review | A Sticky Note

WordPress plugin A Sticky Note scored84%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: 6.3.1
  • 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

100+ active /1,860 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.18ms] Passed 4 tests

Analyzing server-side resources used by A Sticky Note
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.29 ▲2.97
Dashboard /wp-admin3.32 ▲0.0147.13 ▼1.27
Posts /wp-admin/edit.php3.37 ▲0.0146.02 ▼1.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.78 ▲0.84
Media Library /wp-admin/upload.php3.24 ▲0.0134.64 ▲2.90

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for A Sticky Note
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲3214.40 ▼0.191.86 ▲0.1643.98 ▲2.14
Dashboard /wp-admin2,199 ▲185.64 ▼0.0286.87 ▼12.9638.36 ▼7.81
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0233.95 ▼10.6035.33 ▼1.11
Add New Post /wp-admin/post-new.php6,196 ▲4,66819.10 ▼3.86838.01 ▲189.5355.07 ▼1.25
Media Library /wp-admin/upload.php1,395 ▼54.17 ▼0.0697.08 ▼0.6140.73 ▼1.67

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: post it, sticky note, block, gutenberg

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

"A Sticky Note" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("a-sticky-note.php" instead of "sticky-note-plugin.php")
  • Requires at least: Required version does not 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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin716 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23865378
Markdown1460218
CSS18246
XML1134243
PHP262231

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin