84% 404-search-to-email

Code Review | 404 Search To Email

WordPress plugin 404 Search To Email scored 84% from 54 tests.

About plugin

  • Plugin page: 404-search-to-email
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.3
  • WordPress version: 5.8.1
  • First release: Oct 9, 2015
  • Latest release: Oct 9, 2015
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: mdmusa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 706 total downloads


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 gracefully, with no errors

Server metrics [RAM: ▼1.75MB] [CPU: ▼179.09ms] Passed 4 tests

A check of server-side resources used by 404 Search To Email
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.88 ▼0.954.74 ▼20.45
Dashboard /wp-admin1.90 ▼1.165.31 ▼31.39
Posts /wp-admin/edit.php1.90 ▼1.216.33 ▼24.93
Add New Post /wp-admin/post-new.php1.90 ▼3.545.20 ▼639.59
Media Library /wp-admin/upload.php1.90 ▼1.104.78 ▼17.78

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for 404 Search To Email
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6515.69 ▲0.024.99 ▼3.5174.97 ▼0.19
Dashboard /wp-admin2,930 ▲316.01 ▼0.14116.87 ▼18.52167.29 ▼4.98
Posts /wp-admin/edit.php2,737 ▼33.23 ▼0.0064.48 ▼0.61137.77 ▼0.95
Add New Post /wp-admin/post-new.php3,743 ▼7219.09 ▼0.34416.14 ▼38.34156.77 ▼5.56
Media Library /wp-admin/upload.php1,752 ▲35.48 ▼0.07138.91 ▼4.48174.37 ▼8.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/404-search-to-email/404-search-to-email.php+80
    Function get_magic_quotes_gpc() is deprecated

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 everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/404-search-to-email/404-search-to-email.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 96% from 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: 404 email, search, 404 search, email

404-search-to-email/404-search-to-email.php 92% from 13 tests

The principal PHP file in "404 Search To Email" v. 0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected128 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
There are no PNG files in this plugin