78% error-notify-slack

Code Review | Error Notify Slack

WordPress plugin Error Notify Slack scored78%from 54 tests.

About plugin

  • Plugin page: error-notify-slack
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9.3
  • WordPress version: 6.3.1
  • First release: Dec 11, 2019
  • Latest release: Apr 9, 2022
  • Number of updates: 6
  • Update frequency: every 142.0 days
  • Top authors: zenithtech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /588 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Error Notify Slack
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.77 ▼1.53
Dashboard /wp-admin3.31 ▲0.0148.06 ▼3.76
Posts /wp-admin/edit.php3.37 ▲0.0147.29 ▼1.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.18 ▼15.84
Media Library /wp-admin/upload.php3.24 ▲0.0137.79 ▼1.98
Error Notify Slack /wp-admin/options-general.php?page=error_notify_slack3.0522.08

Server storage [IO: ▲0.01MB] [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
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Error Notify Slack: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.16 ▼0.231.76 ▼0.1239.95 ▼2.65
Dashboard /wp-admin2,199 ▲195.56 ▼0.1394.33 ▼1.0242.40 ▲3.05
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0338.53 ▲2.1031.90 ▼7.27
Add New Post /wp-admin/post-new.php1,529 ▲323.49 ▲0.10686.69 ▲11.5460.35 ▲4.49
Media Library /wp-admin/upload.php1,401 ▲44.21 ▲0.03100.44 ▲1.1042.74 ▼0.95
Error Notify Slack /wp-admin/options-general.php?page=error_notify_slack9812.1724.9428.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=error_notify_slack
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/error-notify-slack/includes/admin/class-admin.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: reporting, debugging, error, fatal

error-notify-slack/error-notify-slack.php 92% from 13 tests

The main PHP script in "Error Notify Slack" version 1... is automatically included on every request by WordPress
Please take the time to fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "1...")

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 detected299 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3128125285
JavaScript14014

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity14.33
▷ Minimum class complexity8.00
▷ Maximum class complexity21.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods16
▷ Static methods16.25%
▷ Public methods1275.00%
▷ Protected methods00.00%
▷ Private methods425.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin