94% 404page

Code Review | 404page - your smart custom 404 error page

WordPress plugin 404page - your smart custom 404 error page scored 94% from 54 tests.

About plugin

  • Plugin page: 404page
  • Plugin version: 11.3.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.9.2
  • First release: Sep 30, 2013
  • Latest release: Jan 23, 2022
  • Number of updates: 116
  • Update frequency: every 26.2 days
  • Top authors: petersplugins (75%)smartware.cc (25.86%)

Code review

54 tests

User reviews

1051 reviews

Install metrics

100,000+ active / 1,668,832 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.35MB] [CPU: ▼289.90ms] Passed 4 tests

Analyzing server-side resources used by 404page - your smart custom 404 error page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3059.65 ▲9.19
Dashboard /wp-admin3.76 ▲0.3635.89 ▲2.82
Posts /wp-admin/edit.php4.05 ▲0.4139.39 ▲4.99
Add New Post /wp-admin/post-new.php7.29 ▲0.33100.12 ▼1,166.51
Media Library /wp-admin/upload.php3.70 ▲0.4027.62 ▼0.90
404 Error Page /wp-admin/themes.php?page=404pagesettings3.8325.19

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 1 new option
New WordPress options
404page_data

Browser metrics Passed 4 tests

An overview of browser requirements for 404page - your smart custom 404 error page
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲3616.26 ▲0.696.99 ▲0.782.43 ▼0.05
Dashboard /wp-admin2,893 ▲356.13 ▼0.05115.73 ▼16.51150.42 ▼11.99
Posts /wp-admin/edit.php2,690 ▼03.23 ▲0.0063.81 ▲1.56138.41 ▲1.24
Add New Post /wp-admin/post-new.php1,776 ▲11621.02 ▲4.71450.04 ▲42.59160.44 ▲2.42
Media Library /wp-admin/upload.php1,706 ▲85.51 ▲0.03136.39 ▼6.61187.85 ▲2.05
404 Error Page /wp-admin/themes.php?page=404pagesettings1,2942.9259.27339.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'PPF07_Plugin' not found in wp-content/plugins/404page/inc/ppf/ppf-plugin-addon.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PPF07_SubClass' not found in wp-content/plugins/404page/inc/ppf/ppf-admin.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PPF07_Class' not found in wp-content/plugins/404page/inc/ppf/ppf-plugin.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PPF07_SubClass' not found in wp-content/plugins/404page/inc/ppf/ppf-settings.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PPF07_Class' not found in wp-content/plugins/404page/inc/ppf/ppf-subclass.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
You can look at the official readme.txt

404page/404page.php Passed 13 tests

The main PHP file in "404page - your smart custom 404 error page" ver. 11.3.0 adds more information about the plugin and also serves as the entry point for this plugin
114 characters long description:
Custom 404 the easy way! Set any page as custom 404 error page. No coding needed. Works with (almost) every Theme.

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 detected1,998 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP191,2941,4781,557
CSS3633330
JavaScript54230106
SVG5005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity19.92
▷ Minimum class complexity1.00
▷ Maximum class complexity131.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes650.00%
▷ Concrete classes650.00%
▷ Final classes00.00%
Methods139
▷ Static methods10.72%
▷ Public methods12388.49%
▷ Protected methods53.60%
▷ Private methods117.91%
Functions16
▷ Named functions956.25%
▷ Anonymous functions743.75%
Constants3
▷ Global constants3100.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
7 PNG files occupy 0.27MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/pluginicon.png1.15KB0.59KB▼ 48.76%
assets/img/videos/404page_advanced_compatibility_mode.png32.29KB13.39KB▼ 58.54%
assets/img/videos/404page_advanced_410_trashed_objects.png30.50KB12.48KB▼ 59.08%
assets/img/videos/404page-advanced-settings-quick-overview.png91.10KB42.95KB▼ 52.85%
assets/img/videos/404page-brief-intro.png40.19KB16.32KB▼ 59.39%