84% dashboard-system-alert-notification

Code Review | Dashboard System Alert Notification

WordPress plugin Dashboard System Alert Notification scored 84% from 54 tests.

About plugin

  • Plugin page: dashboard-system-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Sep 5, 2017
  • Latest release: Sep 5, 2017
  • Number of updates: 21
  • Update frequency: every 0.1 days
  • Top authors: vps chauhan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 616 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Dashboard System Alert Notification
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.69 ▼8.81
Dashboard /wp-admin3.32 ▲0.0146.84 ▼6.67
Posts /wp-admin/edit.php3.37 ▲0.0149.32 ▲4.69
Add New Post /wp-admin/post-new.php5.90 ▲0.01100.09 ▲4.07
Media Library /wp-admin/upload.php3.24 ▲0.0135.21 ▲2.30

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Dashboard System Alert Notification
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.55 ▼0.681.69 ▼0.2043.78 ▼0.91
Dashboard /wp-admin2,215 ▲274.83 ▼0.23107.86 ▼10.4442.43 ▼1.81
Posts /wp-admin/edit.php2,098 ▲92.01 ▼0.0340.42 ▲4.3134.16 ▲0.63
Add New Post /wp-admin/post-new.php1,588 ▲6022.21 ▲4.11678.95 ▲5.2758.09 ▲3.88
Media Library /wp-admin/upload.php1,394 ▲34.27 ▼0.02114.25 ▲16.5447.53 ▲3.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • 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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
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 add_action() in wp-content/plugins/dashboard-system-alert-notification/dashboard-system-alert-notification.php:58

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)
There were no browser issues found

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:
  • Screenshots: Add an image for screenshot #1 (Sample Screen)
The official readme.txt is a good inspiration

dashboard-system-alert-notification/dashboard-system-alert-notification.php 92% from 13 tests

This is the main PHP file of "Dashboard System Alert Notification" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 177 characters long)

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 plugin65 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP191735
PO File1101230

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png53.15KB23.30KB▼ 56.16%
sample-screen.png53.15KB23.30KB▼ 56.16%