84% 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 scored84%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: 6.3.1
  • 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

700+ active /29,368 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by Genesis Widgetized Not Found & 404 - Easy Setup for 404 Page and Search Not Found
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.96 ▼0.87
Dashboard /wp-admin3.31 ▲0.0048.94 ▲0.65
Posts /wp-admin/edit.php3.36 ▲0.0051.35 ▼1.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.09 ▼10.13
Media Library /wp-admin/upload.php3.23 ▲0.0037.19 ▼1.11

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Genesis Widgetized Not Found & 404 - Easy Setup for 404 Page and Search Not Found
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.38 ▼0.101.90 ▲0.1242.54 ▲0.04
Dashboard /wp-admin2,198 ▲215.61 ▲0.0093.85 ▲5.7543.79 ▲3.41
Posts /wp-admin/edit.php2,103 ▲31.95 ▼0.0540.54 ▲5.2637.34 ▲2.30
Add New Post /wp-admin/post-new.php1,535 ▲918.43 ▼4.73603.62 ▼91.8165.87 ▲10.99
Media Library /wp-admin/upload.php1,397 ▼34.15 ▼0.01119.50 ▲21.5652.99 ▲9.17

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 10× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/genesis-widgetized-notfound/genesis-widgetized-notfound.php
    • > /wp-content/plugins/genesis-widgetized-notfound/includes/gwnf-admin.php
    • > /wp-content/plugins/genesis-widgetized-notfound/includes/gwnf-admin-extras.php
    • > /wp-content/plugins/genesis-widgetized-notfound/includes/gwnf-widget-search.php
    • > /wp-content/plugins/genesis-widgetized-notfound/includes/gwnf-functions-global.php
    • > /wp-content/plugins/genesis-widgetized-notfound/includes/ddwlib-plir/ddwlib-plugin-installer-recommendations.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-shortcodes.php
    • > /wp-content/plugins/genesis-widgetized-notfound/includes/gwnf-bbpress-widgetized-noresults.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

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

Analyzing the main PHP file in "Genesis Widgetized Not Found & 404 - Easy Setup for 404 Page and Search Not Found" version 1.6.4
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 | An overview of files in this plugin; executable files are not 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
Everything seems fine, there were no complexity issues found
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%