10% 404s

Code Review | 404s

WordPress plugin 404s scored 10% from 54 tests.

About plugin

  • Plugin page: 404s
  • Plugin version: 3.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.5
  • WordPress version: 5.9.2
  • First release: Dec 21, 2016
  • Latest release: Oct 30, 2020
  • Number of updates: 21
  • Update frequency: every 67.0 days
  • Top authors: zhuyi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,452 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5506
    upgrade-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/upgrade.php instead.

Server metrics [RAM: ▲0.14MB] [CPU: ▼289.52ms] Passed 4 tests

This is a short check of server-side resources used by 404s
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.34 ▲0.1470.09 ▲13.98
Dashboard /wp-admin4.19 ▲0.1649.31 ▲4.44
Posts /wp-admin/edit.php4.47 ▲0.1462.96 ▼11.94
Add New Post /wp-admin/post-new.php7.72 ▲0.13101.63 ▼1,155.87
Media Library /wp-admin/upload.php4.13 ▲0.1538.76 ▲5.30
404s /wp-admin/edit.php?post_type=404s&page=404s4.0833.42
Settings /wp-admin/edit.php?post_type=404s&page=404settings4.1036.04
Add New /wp-admin/post-new.php?post_type=404s4.4757.23
Export 404s /wp-admin/edit.php?post_type=404s&page=panel404sExport4.1043.67
All 404s /wp-admin/edit.php?post_type=404s4.1742.04

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: 1 new table, 1 new option
New tables
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for 404s
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,825 ▲7116.25 ▲0.616.91 ▲1.232.56 ▲0.03
Dashboard /wp-admin2,946 ▲866.19 ▲0.03122.34 ▼3.01173.80 ▲9.42
Posts /wp-admin/edit.php2,750 ▲563.26 ▲0.0165.85 ▼3.97146.96 ▼7.33
Add New Post /wp-admin/post-new.php1,676 ▼2021.10 ▲0.04453.20 ▼3.34146.14 ▼21.02
Media Library /wp-admin/upload.php1,760 ▲685.62 ▲0.09156.53 ▲10.57237.95 ▲46.43
404s /wp-admin/edit.php?post_type=404s&page=404s1,1212.4454.71120.42
Settings /wp-admin/edit.php?post_type=404s&page=404settings1,5292.5156.94153.80
Add New /wp-admin/post-new.php?post_type=404s3,17110.01192.13245.16
Export 404s /wp-admin/edit.php?post_type=404s&page=panel404sExport1,0932.4058.04120.49
All 404s /wp-admin/edit.php?post_type=404s1,4283.1861.86117.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_404s
  • Zombie WordPress options were found after uninstall: 1 option
    • tomas_404sinstalled

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=404s&page=404s
    • > Notice in wp-content/plugins/404s/404s.php+320
    Undefined variable: results_page_pagination
    • > GET request to /wp-admin/edit.php?post_type=404s&page=404s
    • > Warning in wp-content/plugins/404s/404paginate.php+27
    count(): Parameter must be an array or an object that implements Countable

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


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
10 plugin tags: 404 redirect, export 404s, custom 404 page, redirect, webmaster tools...

404s/404s.php 92% from 13 tests

The entry point to "404s" version 3.3.5 is a PHP file that has certain tags in its header comment area
Please take the time to 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 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,014 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions23100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin