84% alerts-dlx

Code Review | AlertsDLX - Alerts, Callouts, and Notifications

WordPress plugin AlertsDLX - Alerts, Callouts, and Notifications scored84%from 54 tests.

About plugin

  • Plugin page: alerts-dlx
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: Sep 10, 2022
  • Latest release: Oct 22, 2023
  • Number of updates: 37
  • Update frequency: every 11.0 days
  • Top authors: ronalfy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /901 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.29MB] [CPU: ▲0.60ms] Passed 4 tests

An overview of server-side resources used by AlertsDLX - Alerts, Callouts, and Notifications
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3042.53 ▲4.05
Dashboard /wp-admin3.58 ▲0.2749.29 ▲1.83
Posts /wp-admin/edit.php3.70 ▲0.3346.71 ▼1.18
Add New Post /wp-admin/post-new.php6.30 ▲0.4183.41 ▲2.35
Media Library /wp-admin/upload.php3.50 ▲0.2735.43 ▼0.59

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 84 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

AlertsDLX - Alerts, Callouts, and Notifications: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.041.63 ▲0.1143.12 ▲1.27
Dashboard /wp-admin2,195 ▲185.61 ▼0.01100.06 ▲13.7342.13 ▲2.31
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0035.16 ▼1.7333.06 ▼7.04
Add New Post /wp-admin/post-new.php6,217 ▲4,69119.53 ▼3.55929.39 ▲256.6540.21 ▼18.75
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0193.87 ▼19.5244.57 ▼3.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function DLXPlugins\\AlertsDLX\\add_action() in wp-content/plugins/alerts-dlx/alerts-dlx.php:88

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: shortcode, blocks, notifications, notice, alerts

alerts-dlx/alerts-dlx.php 92% from 13 tests

The main file in "AlertsDLX - Alerts, Callouts, and Notifications" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected4,605 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity23.71
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods3857.58%
▷ Public methods6496.97%
▷ Protected methods00.00%
▷ Private methods23.03%
▷ Named functions125.00%
▷ Anonymous functions375.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin