10% wp-sticker-notes

Code Review | Wordpress Sticky Notes

WordPress plugin Wordpress Sticky Notes scored10%from 54 tests.

About plugin

  • Plugin page: wp-sticker-notes
  • Plugin version: 2.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2014
  • Latest release: Mar 30, 2014
  • Number of updates: 88
  • Update frequency: every 0.4 days
  • Top authors: sosokruashvili (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

30+ active /6,007 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/wp-sticker-notes/plugin.php+43
    Undefined index: wpst_id

Server metrics [RAM: ▼1.87MB] [CPU: ▼58.72ms] Passed 4 tests

Server-side resources used by Wordpress Sticky Notes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.355.05 ▼41.01
Dashboard /wp-admin2.17 ▼1.175.98 ▼45.37
Posts /wp-admin/edit.php2.17 ▼1.227.67 ▼45.49
Add New Post /wp-admin/post-new.php2.17 ▼3.755.86 ▼102.99
Media Library /wp-admin/upload.php2.17 ▼1.106.07 ▼30.87

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: 1 new table, 7 new options
New tables
wp_sticker_notes
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
wpst_db_version
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Wordpress Sticky Notes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,994 ▲23313.55 ▼1.0114.70 ▲12.7750.43 ▲5.48
Dashboard /wp-admin2,198 ▲185.56 ▼0.1483.72 ▼2.4679.49 ▲34.94
Posts /wp-admin/edit.php2,112 ▲121.97 ▼0.0633.63 ▼7.3034.82 ▼5.38
Add New Post /wp-admin/post-new.php1,553 ▲2723.03 ▼0.63761.07 ▲86.3151.92 ▲3.10
Media Library /wp-admin/upload.php1,418 ▲184.08 ▼0.1495.75 ▼13.4673.58 ▲24.18

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/wp-sticker-notes/plugin.php+43
    Undefined index: wpst_id
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • wpst_db_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 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 no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-sticker-notes/pages/admin_main.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-sticker-notes/plugin.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: wordpress, plugin, sticky, sticker, notes

wp-sticker-notes/plugin.php 92% from 13 tests

The principal PHP file in "Wordpress Sticky Notes" v. 2.1.5 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-sticker-notes.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,029 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24525361
PHP34139358
CSS21320289
SVG10021

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions17
▷ Named functions17100.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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
scripts/images/Notes-icon.png14.75KB0.86KB▼ 94.19%
scripts/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
scripts/images/pushed-pin-hi_35.png16.35KB1.72KB▼ 89.50%