84% site-sticky-notes

Code Review | Site Sticky Notes

WordPress plugin Site Sticky Notes scored84%from 54 tests.

About plugin

  • Plugin page: site-sticky-notes
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8.2
  • WordPress version: 6.3.1
  • First release: Sep 20, 2018
  • Latest release: Nov 13, 2021
  • Number of updates: 15
  • Update frequency: every 76.7 days
  • Top authors: adaptsites (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,254 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.14MB] [CPU: ▲3.34ms] Passed 4 tests

This is a short check of server-side resources used by Site Sticky Notes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1149.33 ▲5.91
Dashboard /wp-admin3.49 ▲0.1455.54 ▼7.01
Posts /wp-admin/edit.php3.59 ▲0.1962.49 ▲10.72
Add New Post /wp-admin/post-new.php6.09 ▲0.16103.05 ▲7.82
Media Library /wp-admin/upload.php3.41 ▲0.1443.68 ▲6.62
All Notes /wp-admin/edit.php?post_type=site_notes3.4441.72
Settings /wp-admin/edit.php?post_type=site_notes&page=site_notes-options3.3840.50

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
site_notes_show_public
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Site Sticky Notes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲17113.57 ▼0.679.30 ▲7.1338.41 ▼16.50
Dashboard /wp-admin2,230 ▲535.54 ▼0.1495.80 ▼0.8642.59 ▲2.08
Posts /wp-admin/edit.php2,135 ▲382.01 ▲0.0238.75 ▲0.7137.36 ▲1.98
Add New Post /wp-admin/post-new.php1,557 ▲2923.22 ▲0.04668.32 ▼27.3751.50 ▼7.97
Media Library /wp-admin/upload.php1,438 ▲384.13 ▼0.11106.08 ▼4.8042.10 ▼5.67
All Notes /wp-admin/edit.php?post_type=site_notes1,1151.9336.3534.10
Settings /wp-admin/edit.php?post_type=site_notes&page=site_notes-options8321.6926.3926.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • site_notes_show_public
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
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 add_action() in wp-content/plugins/site-sticky-notes/includes/admin.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site-sticky-notes/includes/core.php:32

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

site-sticky-notes/site-notes.php 92% from 13 tests

The primary PHP file in "Site Sticky Notes" version 1.2.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("site-sticky-notes.php" instead of "site-notes.php")

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
No dangerous file extensions were detected599 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP410653350
CSS2200148
JavaScript22317101

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/resize.png0.50KB0.52KB0.00%