84% error-notification

Code Review | Error Notification

WordPress plugin Error Notification scored84%from 54 tests.

About plugin

  • Plugin page: error-notification
  • Plugin version: 0.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 6.3.1
  • First release: Nov 24, 2012
  • Latest release: Jul 30, 2013
  • Number of updates: 36
  • Update frequency: every 7.0 days
  • Top authors: taskotr (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

80+ active /5,034 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Error Notification
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.33 ▼8.02
Dashboard /wp-admin3.32 ▲0.0246.62 ▼0.74
Posts /wp-admin/edit.php3.37 ▲0.0148.17 ▲4.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.11 ▲2.78
Media Library /wp-admin/upload.php3.24 ▲0.0134.39 ▼1.20
Error Notification /wp-admin/options-general.php?page=error_notification_page3.2231.71

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
error_notification_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Error Notification
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲17814.16 ▼0.645.08 ▲2.9541.55 ▼8.13
Dashboard /wp-admin2,220 ▲315.11 ▲0.13112.52 ▼1.6942.44 ▲0.13
Posts /wp-admin/edit.php2,111 ▲252.32 ▲0.3440.95 ▲5.8934.37 ▲2.67
Add New Post /wp-admin/post-new.php1,542 ▲2823.44 ▲5.72597.37 ▼111.0550.83 ▼1.10
Media Library /wp-admin/upload.php1,405 ▲144.47 ▲0.3196.18 ▼19.9444.25 ▼6.88
Error Notification /wp-admin/options-general.php?page=error_notification_page1,3162.3540.3961.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/error-notification/main.php:12

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 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: These screenshots do not have images: #1 (Screenshot #1), #2 (Screenshot #2), #3 (Screenshot #3)
Please take inspiration from this readme.txt

error-notification/main.php 92% from 13 tests

The main PHP file in "Error Notification" ver. 0.2.7 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("error-notification.php" instead of "main.php")

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
No dangerous file extensions were detected739 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP115196626
JavaScript1231790
PO File14423

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.27MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/settings.png4.12KB1.45KB▼ 64.76%
img/red.png0.17KB0.25KB0.00%
img/blue.png0.17KB0.25KB0.00%
screenshot-1.png102.41KB25.49KB▼ 75.11%
img/dark.png0.16KB0.25KB0.00%