68% wb-sticky-notes

Code Review | Wb Sticky Notes

WordPress plugin Wb Sticky Notes scored68%from 54 tests.

About plugin

  • Plugin page: wb-sticky-notes
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Aug 28, 2019
  • Latest release: Sep 16, 2023
  • Number of updates: 18
  • Update frequency: every 82.3 days
  • Top authors: webbuilder143 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active /5,777 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼8.59ms] Passed 4 tests

A check of server-side resources used by Wb Sticky Notes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1638.52 ▼0.02
Dashboard /wp-admin3.47 ▲0.1245.45 ▼15.50
Posts /wp-admin/edit.php3.58 ▲0.2347.74 ▲6.03
Add New Post /wp-admin/post-new.php6.07 ▲0.1879.92 ▼22.74
Media Library /wp-admin/upload.php3.39 ▲0.1637.43 ▲3.90
Sticky Notes /wp-admin/tools.php?page=wb-sticky-notes3.3730.28

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wb Sticky Notes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,071 ▲32514.72 ▲0.345.00 ▲3.2237.62 ▼6.89
Dashboard /wp-admin2,369 ▲1845.91 ▲0.07114.27 ▲12.4043.26 ▲7.24
Posts /wp-admin/edit.php2,239 ▲1502.68 ▲0.5147.94 ▲8.2135.51 ▼0.71
Add New Post /wp-admin/post-new.php6,440 ▲4,89324.03 ▲5.63940.85 ▲327.0442.67 ▼17.54
Media Library /wp-admin/upload.php1,551 ▲1664.77 ▲0.55109.81 ▲15.6843.70 ▲2.06
Sticky Notes /wp-admin/tools.php?page=wb-sticky-notes1,3112.1455.4549.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_wb_stn_notes
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wb-sticky-notes/public/partials/wb-sticky-notes-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wb-sticky-notes/admin/classes/class-wb-sticky-notes-feedback.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed: You can take inspiration from this readme.txt

wb-sticky-notes/wb-sticky-notes.php Passed 13 tests

Analyzing the main PHP file in "Wb Sticky Notes" version 1.1.4
29 characters long description:
Create wonderful sticky notes

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
Success! There were no dangerous files found in this plugin1,863 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP191946971,280
JavaScript22135442
CSS22721141

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.56
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods53
▷ Static methods611.32%
▷ Public methods3362.26%
▷ Protected methods00.00%
▷ Private methods2037.74%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/ui-icons_444444_256x240.png6.84KB4.18KB▼ 38.90%