78% 404gottenorg-404-page

Code Review | 404gotten.org 404 Page

WordPress plugin 404gotten.org 404 Page scored78%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: 6.3.1
  • 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 /2,263 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.52ms] Passed 4 tests

Server-side resources used by 404gotten.org 404 Page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.35 ▲3.35
Dashboard /wp-admin3.33 ▲0.0249.34 ▼6.26
Posts /wp-admin/edit.php3.38 ▲0.0253.63 ▲4.06
Add New Post /wp-admin/post-new.php5.91 ▲0.0299.85 ▲2.63
Media Library /wp-admin/upload.php3.25 ▲0.0240.79 ▲2.34

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by 404gotten.org 404 Page
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.59 ▼0.442.17 ▲0.3642.08 ▼1.46
Dashboard /wp-admin2,225 ▲215.87 ▲0.77110.68 ▼11.5939.83 ▼0.70
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0141.47 ▼0.2036.42 ▲5.52
Add New Post /wp-admin/post-new.php1,548 ▲323.15 ▼0.25646.75 ▼7.7959.10 ▼7.63
Media Library /wp-admin/upload.php1,407 ▲44.14 ▼0.00100.77 ▼18.9542.35 ▼6.19
404gotten.org /wp-admin/compassion-com.php260.440.1315.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/404gottenorg-404-page/views/admin.php:46
    • > 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 add_action() in wp-content/plugins/404gottenorg-404-page/notfound-org.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser 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)

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 ( === 404gottenorg-404-page === )
You can look at the official readme.txt

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

The main PHP file in "404gotten.org 404 Page" ver. 1.8 adds more information about the plugin and also serves as the entry point for this plugin
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected190 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP53270190

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods7100.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected