84% dashboard-sticky-notes

Code Review | Dashboard Sticky Notes

WordPress plugin Dashboard Sticky Notes scored84%from 54 tests.

About plugin

  • Plugin page: dashboard-sticky-...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 14, 2014
  • Latest release: Jul 11, 2020
  • Number of updates: 20
  • Update frequency: every 109.5 days
  • Top authors: Hiroaki Miyashita (90%)kevinashcroft (15%)

Code review

54 tests

User reviews

12 reviews

Install metrics

3,000+ active /24,658 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.28ms] Passed 4 tests

Analyzing server-side resources used by Dashboard Sticky Notes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.59 ▼0.39
Dashboard /wp-admin3.33 ▲0.0353.95 ▲9.81
Posts /wp-admin/edit.php3.38 ▲0.0245.97 ▼2.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.03 ▼9.26
Media Library /wp-admin/upload.php3.25 ▲0.0235.72 ▲2.88
All Sticky Notes /wp-admin/edit.php?post_type=dsn3.2935.05
Add New /wp-admin/post-new.php?post_type=dsn3.3659.28

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Dashboard Sticky Notes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.30 ▼1.081.80 ▲0.0843.42 ▼0.06
Dashboard /wp-admin2,237 ▲464.89 ▼0.95112.56 ▲8.7441.21 ▼0.26
Posts /wp-admin/edit.php2,117 ▲252.05 ▲0.0233.84 ▼6.2434.44 ▼2.55
Add New Post /wp-admin/post-new.php1,540 ▼217.43 ▼0.85663.04 ▲44.7054.32 ▼17.78
Media Library /wp-admin/upload.php1,422 ▲374.24 ▼0.0495.38 ▼9.3343.54 ▲0.70
All Sticky Notes /wp-admin/edit.php?post_type=dsn1,0921.9230.0929.08
Add New /wp-admin/post-new.php?post_type=dsn2,3597.60173.2365.28

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

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

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dashboard-sticky-notes/dashboard-sticky-notes.php:33

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 errors were detected

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
6 plugin tags: note, sticky, memo, sticky notes, notes...

dashboard-sticky-notes/dashboard-sticky-notes.php 85% from 13 tests

Analyzing the main PHP file in "Dashboard Sticky Notes" version 1.1.2
It is important to fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("/")
  • Domain Path: Prefix the domain path with a forward slash character ("//")

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
Success! There were no dangerous files found in this plugin327 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15125194
PO File21,4012,763133

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
2 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png80.40KB28.26KB▼ 64.85%
screenshot-2.png91.78KB32.49KB▼ 64.60%