88% 404gottenorg-404-page

Code Review | 404gotten.org 404 Page

WordPress plugin 404gotten.org 404 Page scored 88% from 54 tests.

About plugin

  • Plugin page: 404gottenorg-404-...
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.9
  • WordPress version: 5.9.2
  • First release: Nov 4, 2013
  • Latest release: Feb 19, 2019
  • Number of updates: 32
  • Update frequency: every 60.5 days
  • Top authors: philbirnie (65.63%)jennahines (25%)gatsby360 (9.38%)iamjustinhines (9.38%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,904 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼298.94ms] Passed 4 tests

This is a short check of server-side resources used by 404gotten.org 404 Page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0553.99 ▲3.71
Dashboard /wp-admin3.43 ▲0.0234.58 ▲1.70
Posts /wp-admin/edit.php3.66 ▲0.0237.59 ▲0.62
Add New Post /wp-admin/post-new.php6.90 ▼0.0792.45 ▼1,200.20
Media Library /wp-admin/upload.php3.31 ▲0.0225.15 ▲2.14

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for 404gotten.org 404 Page
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,754 ▲1015.53 ▼0.466.11 ▼0.282.31 ▲0.23
Dashboard /wp-admin2,883 ▲226.11 ▼0.08119.97 ▼13.56155.20 ▼5.79
Posts /wp-admin/edit.php2,696 ▲53.24 ▲0.0068.09 ▼5.65140.40 ▲0.27
Add New Post /wp-admin/post-new.php1,664 ▲316.09 ▼0.78411.17 ▼18.01155.33 ▼5.03
Media Library /wp-admin/upload.php1,700 ▼15.51 ▲0.05159.20 ▲14.42203.00 ▲16.13
404gotten.org /wp-admin/compassion-com.php260.940.0320.46

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
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 3× 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/404gottenorg-404-page/notfound-org.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/404gottenorg-404-page/views/notfound.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/404gottenorg-404-page/views/admin.php:46

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/compassion-com.php
    • > Network (severe)
    wp-admin/compassion-com.php - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === 404gottenorg-404-page === )
You can look at the official readme.txt

404gottenorg-404-page/notfound-org.php 92% from 13 tests

The primary PHP file in "404gotten.org 404 Page" version 1.8 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("404gottenorg-404-page.php" instead of "notfound-org.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected190 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

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.33
Average class complexity4.67
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods7100.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin