72% 404-page

Code Review | 404 Page by SeedProd

WordPress plugin 404 Page by SeedProd scored72%from 54 tests.

About plugin

  • Plugin page: 404-page
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • 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

700+ active /14,684 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼9.73ms] 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.55 ▲0.0937.92 ▼2.69
Dashboard /wp-admin3.53 ▲0.1847.65 ▼17.30
Posts /wp-admin/edit.php3.64 ▲0.2848.29 ▼1.11
Add New Post /wp-admin/post-new.php6.11 ▲0.2283.89 ▼17.81
Media Library /wp-admin/upload.php3.45 ▲0.2235.58 ▲1.16
404 Page by SeedProd /wp-admin/options-general.php?page=seed_s404f3.4032.51

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 290 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
seed_s404f_settings_advanced
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
seed_s404f_settings_design
seed_s404f_settings_content

Browser metrics Passed 4 tests

This is an overview of browser requirements for 404 Page by SeedProd
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.011.62 ▼0.3438.73 ▲0.55
Dashboard /wp-admin2,202 ▲315.65 ▲0.0881.15 ▼4.0539.34 ▼1.05
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0332.46 ▼2.9834.12 ▼0.46
Add New Post /wp-admin/post-new.php1,530 ▲223.26 ▲0.33663.35 ▲69.4754.34 ▲2.11
Media Library /wp-admin/upload.php1,404 ▲44.18 ▼0.1894.20 ▼0.0942.71 ▲0.71
404 Page by SeedProd /wp-admin/options-general.php?page=seed_s404f1,6776.61141.7073.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-posts
    • widget_recent-comments
    • seed_s404f_settings_content
    • db_upgraded
    • widget_theysaidso_widget
    • seed_s404f_settings_advanced
    • theysaidso_admin_options
    • can_compress_scripts
    • seed_s404f_settings_design

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=seed_s404f
    • > User deprecated in wp-includes/functions.php+5463
    Function 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+5463
    Function 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/404-page/trunk/framework/field-types/multiselect.php
    • > /wp-content/plugins/404-page/framework/field-types/textarea.php
    • > /wp-content/plugins/404-page/trunk/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/select.php
  • 158× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > 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
      Undefined variable: id in wp-content/plugins/404-page/framework/field-types/customsocialfollow.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/404-page/trunk/framework/field-types/textbox.php:9
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/404-page/trunk/framework/field-types/wpeditor.php on line 12
    • > PHP Notice
      Undefined variable: setting_id in wp-content/plugins/404-page/framework/field-types/multiselect.php on line 11
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/404-page/framework/field-types/textarea.php on line 6
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/404-page/framework/field-types/wpeditor.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/404-page/trunk/framework/validations/required.php on line 10
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/404-page/framework/field-types/checkbox.php on line 11
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/404-page/trunk/framework/field-types/select.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === 404-page === )
  • Requires at least: Invalid version format
You can look at the official readme.txt

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

Analyzing the main PHP file in "404 Page by SeedProd" version 1.0.0
28 characters long description:
The Ultimate 404 Page Plugin

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 plugin14,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

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
168 compressed PNG files occupy 0.26MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
themes/default/images/icons/instagram.png2.33KB1.70KB▼ 26.90%
themes/default/images/icons/youtube.png1.57KB1.50KB▼ 4.49%
themes/default/images/icons/mixx.png1.11KB1.20KB0.00%
themes/default/images/icons/tumblr.png1.23KB1.34KB0.00%
trunk/themes/default/images/icons/foursquare.png2.26KB1.74KB▼ 23.12%