94% genesis-widgetized-notfound

Code Review | Genesis Widgetized Not Found & 404 - Easy Setup for 404 Page and Search Not Found

WordPress plugin Genesis Widgetized Not Found & 404 - Easy Setup for 404 Page and Search Not Found scored 94% from 54 tests.

About plugin

  • Plugin page: genesis-widgetize...
  • Plugin version: 1.6.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.3
  • WordPress version: 5.9.2
  • First release: Apr 20, 2012
  • Latest release: Nov 13, 2019
  • Number of updates: 51
  • Update frequency: every 54.2 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

900+ active / 28,540 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼283.32ms] Passed 4 tests

Server-side resources used by Genesis Widgetized Not Found & 404 - Easy Setup for 404 Page and Search Not Found
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.4057.38 ▲38.45
Dashboard /wp-admin3.41 ▲0.0033.85 ▼6.60
Posts /wp-admin/edit.php3.64 ▲0.0039.99 ▲3.77
Add New Post /wp-admin/post-new.php6.88 ▼0.09115.86 ▼1,116.46
Media Library /wp-admin/upload.php3.29 ▲0.0026.14 ▼13.97

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Genesis Widgetized Not Found & 404 - Easy Setup for 404 Page and Search Not Found
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,749 ▲515.94 ▼0.136.08 ▼0.752.25 ▲0.05
Dashboard /wp-admin2,881 ▲236.15 ▲0.06130.04 ▼10.30155.00 ▼14.81
Posts /wp-admin/edit.php2,691 ▼03.23 ▼0.0064.11 ▼8.75143.38 ▼39.67
Add New Post /wp-admin/post-new.php1,752 ▲9121.72 ▲5.53445.49 ▲9.14200.29 ▲26.49
Media Library /wp-admin/upload.php1,698 ▼05.54 ▲0.04151.97 ▲7.06246.57 ▲52.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 fix the following items
  • 10× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/genesis-widgetized-notfound/genesis-widgetized-notfound.php
    • > /wp-content/plugins/genesis-widgetized-notfound/includes/gwnf-admin-extras.php
    • > /wp-content/plugins/genesis-widgetized-notfound/includes/gwnf-admin.php
    • > /wp-content/plugins/genesis-widgetized-notfound/includes/gwnf-functions-global.php
    • > /wp-content/plugins/genesis-widgetized-notfound/includes/gwnf-widget-search.php
    • > /wp-content/plugins/genesis-widgetized-notfound/includes/gwnf-widget-areas.php
    • > /wp-content/plugins/genesis-widgetized-notfound/includes/gwnf-frontend.php
    • > /wp-content/plugins/genesis-widgetized-notfound/includes/gwnf-bbpress-widgetized-noresults.php
    • > /wp-content/plugins/genesis-widgetized-notfound/includes/gwnf-shortcodes.php
    • > /wp-content/plugins/genesis-widgetized-notfound/includes/ddwlib-plir/ddwlib-plugin-installer-recommendations.php

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

genesis-widgetized-notfound/genesis-widgetized-notfound.php Passed 13 tests

The principal PHP file in "Genesis Widgetized Not Found & 404 - Easy Setup for 404 Page and Search Not Found" v. 1.6.4 is loaded by WordPress automatically on each request
127 characters long description:
Finally, use widgets to maintain and customize your 404 Error and Search Not Found pages in Genesis Framework and Child Themes.

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
Success! There were no dangerous files found in this plugin3,047 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP136191,0061,541
PO File3294522820
Markdown32320508
CSS54434156
JSON10022

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity30.50
▷ Minimum class complexity26.00
▷ Maximum class complexity35.00
Average method complexity3.81
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods1676.19%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/ddwlib-plir/deckerweb-plugins-logo.png15.80KB6.20KB▼ 60.78%