74% 404-search-to-email

Code Review | 404 Search To Email

WordPress plugin 404 Search To Email scored74%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: 6.3.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 /883 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.86MB] [CPU: ▼48.15ms] Passed 4 tests

This is a short check of server-side resources used by 404 Search To Email
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.365.13 ▼32.91
Dashboard /wp-admin2.15 ▼1.157.46 ▼41.78
Posts /wp-admin/edit.php2.15 ▼1.207.00 ▼38.04
Add New Post /wp-admin/post-new.php2.15 ▼3.749.06 ▼79.86
Media Library /wp-admin/upload.php2.15 ▼1.077.53 ▼26.91

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for 404 Search To Email
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.36 ▼1.021.82 ▲0.1639.24 ▼2.89
Dashboard /wp-admin2,209 ▲214.88 ▼1.15101.70 ▼2.1764.34 ▲18.03
Posts /wp-admin/edit.php2,086 ▼01.96 ▼0.0236.46 ▼0.3532.75 ▼2.59
Add New Post /wp-admin/post-new.php1,533 ▲1223.15 ▲0.19661.08 ▼3.9963.10 ▲12.62
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0295.62 ▼9.0042.71 ▼2.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/404-search-to-email/404-search-to-email.php+80
    Function get_magic_quotes_gpc() is deprecated
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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 no errors were found, this is by no means 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/404-search-to-email/404-search-to-email.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: 404 email, search, email, 404 search

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

The main PHP file in "404 Search To Email" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin128 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21734128

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in 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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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 files were detected