83% custom-dashboard-notifications

Code Review | Custom Dashboard Notifications

WordPress plugin Custom Dashboard Notifications scored83%from 54 tests.

About plugin

  • Plugin page: custom-dashboard-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.5-4.8.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2017
  • Latest release: Sep 12, 2017
  • Number of updates: 11
  • Update frequency: every 4.4 days
  • Top authors: Rams07 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /839 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.10ms] Passed 4 tests

Server-side resources used by Custom Dashboard Notifications
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.32 ▼5.80
Dashboard /wp-admin3.31 ▲0.0146.38 ▼4.45
Posts /wp-admin/edit.php3.36 ▲0.0146.35 ▼0.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.16 ▼5.43
Media Library /wp-admin/upload.php3.23 ▲0.0134.29 ▲1.18

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Custom Dashboard Notifications: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲14113.21 ▼1.144.62 ▲2.9941.74 ▲0.40
Dashboard /wp-admin2,257 ▲654.86 ▼0.07108.79 ▼1.4740.53 ▼2.26
Posts /wp-admin/edit.php2,107 ▲182.04 ▲0.0739.04 ▲1.1035.43 ▲1.67
Add New Post /wp-admin/post-new.php1,529 ▲1017.71 ▼5.54689.97 ▲45.1463.01 ▲14.04
Media Library /wp-admin/upload.php1,406 ▲184.22 ▼0.0294.21 ▲1.5740.67 ▲1.37

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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)
Even though no errors were found, 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-dashboard-notifications/custom-dashboard-notifications.php:69

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots require images: #1 (screenshot-1.png.), #2 (screenshot-1.png.)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === custom-dashboard-notifications === )
You can take inspiration from this readme.txt

custom-dashboard-notifications/custom-dashboard-notifications.php Passed 13 tests

The principal PHP file in "Custom Dashboard Notifications" v. 1.0 is loaded by WordPress automatically on each request
78 characters long description:
You can use this plugin to show notifications on the WordPress Dashboard page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected67 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1222144
CSS14023

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions6
▷ Named functions6100.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
There are no PNG files in this plugin