84% 404-notify

Code Review | 404 Notify

WordPress plugin 404 Notify scored84%from 54 tests.

About plugin

  • Plugin page: 404-notify
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5.1-6.0
  • WordPress version: 6.3.1
  • First release: Jul 22, 2019
  • Latest release: Aug 10, 2022
  • Number of updates: 18
  • Update frequency: every 61.9 days
  • Top authors: mikeyott (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,524 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by 404 Notify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.51 ▼0.52
Dashboard /wp-admin3.33 ▼0.0246.85 ▼16.78
Posts /wp-admin/edit.php3.38 ▲0.0244.73 ▼8.94
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.21 ▼15.30
Media Library /wp-admin/upload.php3.25 ▲0.0234.09 ▼0.84

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for 404 Notify
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.62 ▼0.661.90 ▲0.3444.40 ▲1.15
Dashboard /wp-admin2,209 ▲215.90 ▼0.00101.43 ▼0.7339.08 ▼2.81
Posts /wp-admin/edit.php2,049 ▼431.98 ▼0.0636.86 ▼4.6129.78 ▼5.07
Add New Post /wp-admin/post-new.php1,533 ▲523.48 ▲4.52687.07 ▲84.5258.65 ▲3.90
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.0292.86 ▼27.2140.26 ▼11.01

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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
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 take a closer look at the following
  • 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/404-notify/404-notify.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

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: link, notify, dead, links, 404...

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

"404 Notify" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected110 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File1141458
PHP1101652

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin