84% fatal-error-notify

Code Review | Fatal Error Notify

WordPress plugin Fatal Error Notify scored 84% from 54 tests.

About plugin

  • Plugin page: fatal-error-notify
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.0
  • WordPress version: 6.3.1
  • First release: Oct 24, 2017
  • Latest release: Aug 11, 2023
  • Number of updates: 23
  • Update frequency: every 92.1 days
  • Top authors: verygoodplugins (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

7,000+ active / 60,045 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Fatal Error Notify
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.84 ▼6.05
Dashboard /wp-admin3.31 ▲0.0155.87 ▲8.44
Posts /wp-admin/edit.php3.36 ▲0.0145.17 ▼1.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0198.82 ▲9.22
Media Library /wp-admin/upload.php3.24 ▲0.0132.08 ▲1.33
Fatal Error Notify /wp-admin/options-general.php?page=fatal-error-notify3.2030.08

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Fatal Error Notify: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.33 ▼1.261.84 ▼0.0243.10 ▼1.09
Dashboard /wp-admin2,213 ▲255.85 ▼0.0496.88 ▼16.1837.98 ▼3.57
Posts /wp-admin/edit.php2,090 ▲12.02 ▲0.0534.83 ▼3.1135.34 ▲3.96
Add New Post /wp-admin/post-new.php1,547 ▲2818.32 ▼4.76633.09 ▼19.7458.43 ▼7.27
Media Library /wp-admin/upload.php1,392 ▲44.13 ▼0.0598.63 ▲0.4145.06 ▼0.64
Fatal Error Notify /wp-admin/options-general.php?page=fatal-error-notify9792.0722.5625.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fatal-error-notify/includes/class-public.php:14

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
4 plugin tags: reporting, fatal, error, debugging

fatal-error-notify/fatal-error-notify.php Passed 13 tests

"Fatal Error Notify" version 1.5.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
68 characters long description:
Receive email notifications when errors occur on your WordPress site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin396 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4165169337
CSS18745
JavaScript18014

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity16.00
▷ Minimum class complexity9.00
▷ Maximum class complexity23.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods16
▷ Static methods16.25%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/pro-promo.png25.22KB11.23KB▼ 55.46%