84% hierarchical-html-sitemap

Code Review | Hierarchical HTML Sitemap

WordPress plugin Hierarchical HTML Sitemap scored 84% from 54 tests.

About plugin

  • Plugin page: hierarchical-html...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Dec 28, 2014
  • Latest release: Jun 16, 2018
  • Number of updates: 14
  • Update frequency: every 90.4 days
  • Top authors: egolacrima (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

7,000+ active / 38,578 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.21ms] Passed 4 tests

This is a short check of server-side resources used by Hierarchical HTML Sitemap
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.96 ▼1.19
Dashboard /wp-admin3.33 ▲0.0348.14 ▼2.36
Posts /wp-admin/edit.php3.38 ▲0.0344.18 ▼5.92
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.91 ▼14.62
Media Library /wp-admin/upload.php3.25 ▲0.0332.48 ▼1.93

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Hierarchical HTML Sitemap
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.48 ▲0.071.89 ▲0.2441.45 ▲2.57
Dashboard /wp-admin2,206 ▲175.84 ▲0.9499.68 ▼14.0137.99 ▼2.42
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0234.59 ▼9.6734.87 ▲0.25
Add New Post /wp-admin/post-new.php1,542 ▲2218.20 ▼4.91621.80 ▼25.7155.25 ▼3.25
Media Library /wp-admin/upload.php1,388 ▲34.31 ▲0.1198.90 ▼4.9841.59 ▼3.31

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
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/hierarchical-html-sitemap/hierarchical-sitemap.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: pages, hierarchical sitemap, posts, seo, pages list...

hierarchical-html-sitemap/hierarchical-sitemap.php 85% from 13 tests

The principal PHP file in "Hierarchical HTML Sitemap" v. 1.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 246 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hierarchical-html-sitemap.php" instead of "hierarchical-sitemap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin186 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14583121
PO File26665

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin