79% dashboard-notes

Code Review | Dashboard Notes

WordPress plugin Dashboard Notes scored79%from 54 tests.

About plugin

  • Plugin page: dashboard-notes
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 18, 2014
  • Latest release: Oct 9, 2023
  • Number of updates: 21
  • Update frequency: every 167.6 days
  • Top authors: McGuive7 (47.62%)aaronbmm (28.57%)aebs90 (23.81%)MIGHTYminnow (9.52%)jgonzo127 (9.52%)

Code review

54 tests

User reviews

18 reviews

Install metrics

800+ active /12,052 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Dashboard Notes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.38 ▼6.14
Dashboard /wp-admin3.33 ▲0.0345.01 ▼5.32
Posts /wp-admin/edit.php3.38 ▲0.0346.99 ▼0.82
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.49 ▲4.11
Media Library /wp-admin/upload.php3.25 ▲0.0335.36 ▲0.64
Dashboard Notes /wp-admin/options-general.php?page=dashboard-notes3.1930.03

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dashboard Notes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.19 ▼1.561.64 ▼0.1039.50 ▼6.13
Dashboard /wp-admin2,212 ▲245.85 ▲0.97112.46 ▼1.5842.17 ▼3.20
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0238.82 ▲0.5135.15 ▲1.50
Add New Post /wp-admin/post-new.php1,533 ▼023.17 ▼0.05613.49 ▼68.6356.52 ▼10.93
Media Library /wp-admin/upload.php1,391 ▼04.28 ▼0.0295.47 ▼3.4141.94 ▼0.89
Dashboard Notes /wp-admin/options-general.php?page=dashboard-notes8132.0624.7124.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=dashboard-notes
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=dashboard-notes
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dashboard-notes/dashboard-notes.php:41

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: notifications, backend, client, admin, instructions...

dashboard-notes/dashboard-notes.php Passed 13 tests

Analyzing the main PHP file in "Dashboard Notes" version 1.0.3
52 characters long description:
Create dashboard notes/instructions for your client.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin459 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1141162402
CSS114957

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity91.00
▷ Minimum class complexity91.00
▷ Maximum class complexity91.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods30100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.27MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
banner-1544x500.png77.32KB25.61KB▼ 66.88%
screenshot-2.png63.31KB22.36KB▼ 64.68%
screenshot-1.png24.55KB9.65KB▼ 60.71%
banner-772x250.png68.48KB19.26KB▼ 71.88%
screenshot-3.png40.66KB14.78KB▼ 63.65%