84% gr-dashboard-notes

Code Review | GR Dashboard Notes

WordPress plugin GR Dashboard Notes scored84%from 54 tests.

About plugin

  • Plugin page: gr-dashboard-notes
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Jan 27, 2018
  • Latest release: Sep 17, 2023
  • Number of updates: 28
  • Update frequency: every 73.6 days
  • Top authors: Felln (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,314 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.54ms] Passed 4 tests

An overview of server-side resources used by GR Dashboard Notes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.50 ▼6.79
Dashboard /wp-admin3.37 ▲0.0744.50 ▼4.44
Posts /wp-admin/edit.php3.43 ▲0.0649.63 ▲1.50
Add New Post /wp-admin/post-new.php5.96 ▲0.0682.79 ▼14.18
Media Library /wp-admin/upload.php3.30 ▲0.0637.66 ▼0.74

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 17 new options
New WordPress options
GR_Dashboard_Notes-1
GR_Dashboard_Notes-Roles-3
GR_Dashboard_Notes-Roles-4
GR_Dashboard_Notes-5
can_compress_scripts
widget_recent-comments
GR_Dashboard_Notes-Roles-5
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
...

Browser metrics Passed 4 tests

Checking browser requirements for GR Dashboard Notes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.18 ▼1.201.71 ▼0.0538.42 ▼4.56
Dashboard /wp-admin2,210 ▲225.83 ▲0.97109.03 ▲0.1142.37 ▲3.19
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0238.88 ▼1.0535.95 ▲1.08
Add New Post /wp-admin/post-new.php1,517 ▼1617.70 ▼5.38669.55 ▼10.3651.94 ▼5.92
Media Library /wp-admin/upload.php1,395 ▲104.24 ▲0.0293.18 ▼21.6541.78 ▼9.02
GR Dashboard Notes /wp-admin/options-general.php?page=GR Dashboard Notes8732.0524.6528.73

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
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gr-dashboard-notes/gr-dashboard-notes.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: usergroups, notices, notice, dashboard, note...

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

The primary PHP file in "GR Dashboard Notes" version 1.0.4 is used by WordPress to initiate all plugin functionality
85 characters long description:
This plugin let you create notes on the dashboard for different roles of your choice.

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
Good job! No executable or dangerous file extensions detected392 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2362392

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin