94% 404-notify

Code Review | 404 Notify

WordPress plugin 404 Notify scored 94% from 54 tests.

About plugin

  • Plugin page: 404-notify
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5.1-5.8
  • WordPress version: 5.9.2
  • First release: Jul 22, 2019
  • Latest release: Jul 10, 2021
  • Number of updates: 17
  • Update frequency: every 42.2 days
  • Top authors: mikeyott (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 765 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼313.85ms] Passed 4 tests

Analyzing server-side resources used by 404 Notify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0555.13 ▲6.31
Dashboard /wp-admin3.43 ▲0.0233.01 ▼65.74
Posts /wp-admin/edit.php3.66 ▲0.0235.51 ▼6.37
Add New Post /wp-admin/post-new.php6.92 ▼0.0793.09 ▼1,183.79
Media Library /wp-admin/upload.php3.31 ▲0.0222.79 ▲0.49

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

404 Notify: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲1315.98 ▼0.205.83 ▼1.912.32 ▼0.26
Dashboard /wp-admin2,888 ▲316.16 ▲0.04121.04 ▼19.75156.03 ▼22.56
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0063.95 ▼3.90138.77 ▼52.86
Add New Post /wp-admin/post-new.php1,668 ▼018.32 ▼1.59411.04 ▼2.33161.55 ▲3.64
Media Library /wp-admin/upload.php1,698 ▲35.51 ▲0.00144.73 ▲2.45192.47 ▲2.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/404-notify/404-notify.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: checker, notification, email, notify, link...

404-notify/404-notify.php 92% from 13 tests

Analyzing the main PHP file in "404 Notify" version 1.1.0
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected111 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File1141458

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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