72% 404-page

Code Review | 404 Page by SeedProd

WordPress plugin 404 Page by SeedProd scored 72% from 54 tests.

About plugin

  • Plugin page: 404-page
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: May 19, 2015
  • Latest release: Jul 16, 2018
  • Number of updates: 15
  • Update frequency: every 76.9 days
  • Top authors: seedprod (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 13,316 total downloads

Benchmarks

Plugin footprint 83% from 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.18MB] [CPU: ▼294.34ms] Passed 4 tests

Analyzing server-side resources used by 404 Page by SeedProd
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1554.92 ▲5.27
Dashboard /wp-admin3.64 ▲0.2333.83 ▲0.15
Posts /wp-admin/edit.php3.86 ▲0.2237.90 ▲0.80
Add New Post /wp-admin/post-new.php7.10 ▲0.1394.95 ▼1,179.27
Media Library /wp-admin/upload.php3.51 ▲0.2225.17 ▲0.95
404 Page by SeedProd /wp-admin/options-general.php?page=seed_s404f3.4725.24

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 290 new files
Database: no new tables, 3 new options
New WordPress options
seed_s404f_settings_design
seed_s404f_settings_advanced
seed_s404f_settings_content

Browser metrics Passed 4 tests

A check of browser resources used by 404 Page by SeedProd
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1415.77 ▼0.205.83 ▼0.092.13 ▼0.86
Dashboard /wp-admin2,897 ▲366.11 ▼0.10125.33 ▼9.59157.29 ▼5.94
Posts /wp-admin/edit.php2,662 ▼323.23 ▲0.0163.83 ▼3.11127.64 ▼16.91
Add New Post /wp-admin/post-new.php1,663 ▼5615.99 ▼6.55391.43 ▼19.25152.73 ▼4.03
Media Library /wp-admin/upload.php1,706 ▲85.49 ▼0.01146.71 ▲4.83177.35 ▼8.73
404 Page by SeedProd /wp-admin/options-general.php?page=seed_s404f2,1218.84150.52225.99

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 3 options in the database
    • seed_s404f_settings_advanced
    • seed_s404f_settings_design
    • seed_s404f_settings_content

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=seed_s404f
    • > User deprecated in wp-includes/functions.php+5326
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=seed_s404f
    • > User deprecated in wp-includes/functions.php+5326
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 6× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/404-page/framework/field-types/textarea.php
    • > /wp-content/plugins/404-page/framework/field-types/multiselect.php
    • > /wp-content/plugins/404-page/framework/field-types/select.php
    • > /wp-content/plugins/404-page/trunk/framework/field-types/textarea.php
    • > /wp-content/plugins/404-page/trunk/framework/field-types/multiselect.php
    • > /wp-content/plugins/404-page/trunk/framework/field-types/select.php
  • 158× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/404-page/framework/field-types/select.php on line 7
    • > PHP Notice
      Undefined variable: setting_id in wp-content/plugins/404-page/trunk/framework/field-types/select.php on line 7
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/404-page/trunk/framework/field-types/password.php on line 6
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/404-page/framework/field-types/multiselect.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/404-page/trunk/framework/field-types/wpeditor.php:15
    • > PHP Notice
      Undefined variable: setting_id in wp-content/plugins/404-page/trunk/framework/field-types/multiselect.php on line 11
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/404-page/trunk/framework/field-types/select.php on line 8
    • > PHP Notice
      Undefined variable: option_values in wp-content/plugins/404-page/framework/field-types/checkbox.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/404-page/trunk/framework/validations/escurlraw.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/404-page/framework/validations/email.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Requires at least: Version format is invalid
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === 404-page === )
Please take inspiration from this readme.txt

404-page/404-page.php Passed 13 tests

The main file in "404 Page by SeedProd" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
28 characters long description:
The Ultimate 404 Page Plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected14,255 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
CSS61522087,075
PHP401,2561,1985,017
JavaScript156445042,163

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity82.33
▷ Minimum class complexity1.00
▷ Maximum class complexity316.00
Average method complexity5.04
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods362
▷ Static methods164.42%
▷ Public methods10027.62%
▷ Protected methods26272.38%
▷ Private methods00.00%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.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
168 compressed PNG files occupy 0.26MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
trunk/themes/default/images/icons/forrst.png1.22KB1.30KB0.00%
trunk/themes/default/images/icons/mixx.png1.11KB1.20KB0.00%
trunk/themes/default/images/icons/foursquare.png2.26KB1.74KB▼ 23.12%
themes/default/images/icons/xing.png1.60KB1.71KB0.00%
trunk/themes/default/images/icons/wpcandy.png2.00KB1.56KB▼ 21.66%