84% genesis-widgetized-footer

Code Review | Genesis Widgetized Footer

WordPress plugin Genesis Widgetized Footer scored84%from 54 tests.

About plugin

  • Plugin page: genesis-widgetize...
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.1
  • WordPress version: 6.3.1
  • First release: Apr 24, 2012
  • Latest release: Feb 21, 2019
  • Number of updates: 30
  • Update frequency: every 83.1 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /66,928 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.01MB] [CPU: ▼6.15ms] Passed 4 tests

Analyzing server-side resources used by Genesis Widgetized Footer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.11 ▼2.58
Dashboard /wp-admin3.31 ▼0.0449.79 ▼10.07
Posts /wp-admin/edit.php3.36 ▲0.0044.05 ▼4.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.19 ▼7.84
Media Library /wp-admin/upload.php3.23 ▲0.0036.73 ▲2.00

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Genesis Widgetized Footer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.35 ▼1.011.75 ▼0.7046.60 ▼4.54
Dashboard /wp-admin2,203 ▲155.79 ▲0.8699.77 ▼14.1038.54 ▼7.73
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0334.37 ▼3.1834.22 ▼2.30
Add New Post /wp-admin/post-new.php1,539 ▲623.45 ▲0.16676.11 ▲2.9566.70 ▲13.73
Media Library /wp-admin/upload.php1,382 ▼34.23 ▲0.04100.27 ▼3.3943.71 ▼0.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/genesis-widgetized-footer/includes/gwfoot-admin.php
    • > /wp-content/plugins/genesis-widgetized-footer/includes/gwfoot-shortcodes.php
    • > /wp-content/plugins/genesis-widgetized-footer/genesis-widgetized-footer.php
    • > /wp-content/plugins/genesis-widgetized-footer/includes/gwfoot-frontend.php
    • > /wp-content/plugins/genesis-widgetized-footer/includes/gwfoot-widget-areas.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: shortcodes, disclaimer, genesis, genesiswp, footer...

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

"Genesis Widgetized Footer" version 1.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
138 characters long description:
Finally, use widgets to customize your Footer area (a.k.a 'Return to Top' plus 'Copyright/Credits') 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 plugin762 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8257489485
PO File290163241
CSS2102136

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants20100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin