78% notfoundorg-404-page

Code Review | NotFound.org 404 Page

WordPress plugin NotFound.org 404 Page scored78%from 54 tests.

About plugin

  • Plugin page: notfoundorg-404-page
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 6.3.1
  • First release: Sep 26, 2012
  • Latest release: Sep 13, 2021
  • Number of updates: 8
  • Update frequency: every 409.3 days
  • Top authors: katzgrau (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /4,771 total downloads

Benchmarks

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 successfully, without throwing any errors or notices

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

Server-side resources used by NotFound.org 404 Page
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.04 ▼4.95
Dashboard /wp-admin3.31 ▲0.0159.06 ▲7.54
Posts /wp-admin/edit.php3.36 ▲0.0055.11 ▲2.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.53 ▼10.45
Media Library /wp-admin/upload.php3.23 ▲0.0034.94 ▼7.21

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by NotFound.org 404 Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.48 ▲0.111.79 ▼0.1441.50 ▼0.13
Dashboard /wp-admin2,207 ▲195.83 ▼0.07101.08 ▼4.0042.54 ▲1.06
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0139.60 ▲0.5734.80 ▼1.40
Add New Post /wp-admin/post-new.php1,547 ▲1918.37 ▼4.54647.73 ▼1.5053.38 ▼1.73
Media Library /wp-admin/upload.php1,392 ▲104.22 ▼0.03101.74 ▼1.0344.37 ▼0.56
NotFound.org /wp-admin/notfound-org.php260.440.1213.08

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notfoundorg-404-page/notfound-org.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/notfoundorg-404-page/views/notfound.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/notfoundorg-404-page/views/admin.php:48

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/notfound-org.php
    • > Network (severe)
    wp-admin/notfound-org.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === notfoundorg-404-page === )
You can take inspiration from this readme.txt

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

The main PHP script in "NotFound.org 404 Page" version 1.2.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("notfoundorg-404-page.php" instead of "notfound-org.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin234 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP54076234

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity3.67
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods8
▷ Static methods8100.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG files were detected