84% horizontal-footer-sitemap-widget

Code Review | Horizontal Footer Sitemap - Widget

WordPress plugin Horizontal Footer Sitemap - Widget scored84%from 54 tests.

About plugin

  • Plugin page: horizontal-footer...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Sep 18, 2014
  • Latest release: Jul 12, 2022
  • Number of updates: 3
  • Update frequency: every 951.3 days
  • Top authors: marioshtika (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /5,579 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.32ms] Passed 4 tests

An overview of server-side resources used by Horizontal Footer Sitemap - Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.96 ▼2.66
Dashboard /wp-admin3.32 ▲0.0143.85 ▼7.59
Posts /wp-admin/edit.php3.37 ▲0.0149.72 ▲3.43
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.34 ▼10.61
Media Library /wp-admin/upload.php3.24 ▲0.0136.15 ▼0.42

Server storage [IO: ▲0.00MB] [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: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_horizontal_footer_sitemap_widget
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Horizontal Footer Sitemap - Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.33 ▼0.701.75 ▼0.0939.16 ▼3.64
Dashboard /wp-admin2,203 ▲155.89 ▲0.03111.56 ▼5.3242.94 ▲1.00
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0139.25 ▲3.1934.88 ▲0.77
Add New Post /wp-admin/post-new.php1,542 ▲918.14 ▼4.91611.35 ▼54.3654.36 ▼0.73
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0196.49 ▼5.8041.79 ▼2.20

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_horizontal_footer_sitemap_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/horizontal-footer-sitemap-widget/horizontal-footer-sitemap-widget.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === horizontal-footer-sitemap-widget === )
The official readme.txt is a good inspiration

horizontal-footer-sitemap-widget/horizontal-footer-sitemap-widget.php Passed 13 tests

The principal PHP file in "Horizontal Footer Sitemap - Widget" v. 1.0.1 is loaded by WordPress automatically on each request
109 characters long description:
A simple widget which uses the menu of your selection to show them horizontaly as a Horizontal Footer Sitemap

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
Everything looks great! No dangerous files found in this plugin94 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1182468
CSS10026

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin