90% dash-notifier

Code Review | Dash Notifier

WordPress plugin Dash Notifier scored90%from 54 tests.

About plugin

  • Plugin page: dash-notifier
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Feb 28, 2019
  • Latest release: Mar 26, 2021
  • Number of updates: 10
  • Update frequency: every 76.6 days
  • Top authors: hailite (70%)LiteSpeedTech (40%)

Code review

54 tests

User reviews

1 review

Install metrics

20,000+ active /27,976 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.72ms] Passed 4 tests

This is a short check of server-side resources used by Dash Notifier
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.61 ▲4.82
Dashboard /wp-admin3.33 ▲0.0347.87 ▼1.60
Posts /wp-admin/edit.php3.38 ▲0.0345.84 ▼7.26
Add New Post /wp-admin/post-new.php5.91 ▲0.0380.82 ▼20.36
Media Library /wp-admin/upload.php3.26 ▲0.0332.26 ▼1.67

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Dash Notifier
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.63 ▼0.774.88 ▲3.2643.55 ▲4.46
Dashboard /wp-admin2,209 ▲185.90 ▲1.0294.18 ▼6.1436.55 ▼4.09
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0637.91 ▼2.2733.84 ▼1.82
Add New Post /wp-admin/post-new.php1,533 ▼922.94 ▲4.67661.37 ▲53.2562.38 ▼0.70
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0294.22 ▼5.4339.86 ▼4.97

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

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 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
2 plugin tags: plugin installer, dashboard notify

dash-notifier/dash-notifier.php Passed 13 tests

Analyzing the main PHP file in "Dash Notifier" version 1.2
28 characters long description:
WordPress dashboard notifier

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin238 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP163102238

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
5 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wp_assets/icon-256x256.png4.88KB3.35KB▼ 31.49%
wp_assets/banner-772x250.png51.75KB17.63KB▼ 65.93%
wp_assets/icon-128x128.png2.56KB1.82KB▼ 28.77%
wp_assets/banner-1544x500.png100.15KB34.00KB▼ 66.05%
wp_assets/screenshot-1.png78.73KB25.83KB▼ 67.19%