10% wp-seo-html-sitemap

Code Review | WP SEO HTML Sitemap

WordPress plugin WP SEO HTML Sitemap scored10%from 54 tests.

About plugin

  • Plugin page: wp-seo-html-sitemap
  • Plugin version: 0.9.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Apr 20, 2015
  • Latest release: Dec 22, 2015
  • Number of updates: 22
  • Update frequency: every 11.1 days
  • Top authors: riseofweb (81.82%)magnatechnology (22.73%)

Code review

54 tests

User reviews

17 reviews

Install metrics

10,000+ active /75,150 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wp-seo-html-sitemap/sitemap.php+34
    Trying to access array offset on value of type bool

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

This is a short check of server-side resources used by WP SEO HTML Sitemap
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0228.58 ▼16.39
Dashboard /wp-admin3.36 ▲0.0252.82 ▼8.57
Posts /wp-admin/edit.php3.42 ▲0.0646.26 ▲2.18
Add New Post /wp-admin/post-new.php5.94 ▲0.0682.89 ▼8.78
Media Library /wp-admin/upload.php3.29 ▲0.0635.65 ▼1.54
SEO HTML Sitemap /wp-admin/options-general.php?page=wpseo-html-sitemap3.2532.09

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
wpseosms
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP SEO HTML Sitemap
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.17 ▼0.381.72 ▲0.2042.02 ▲1.86
Dashboard /wp-admin2,199 ▲255.56 ▲0.0387.95 ▼13.3041.25 ▼4.56
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0434.34 ▼0.6334.05 ▼4.76
Add New Post /wp-admin/post-new.php1,529 ▲323.56 ▲0.47631.88 ▼21.4759.95 ▲1.78
Media Library /wp-admin/upload.php1,404 ▲44.17 ▲0.0293.21 ▼16.7840.28 ▼6.76
SEO HTML Sitemap /wp-admin/options-general.php?page=wpseo-html-sitemap1,0412.0022.2944.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • wpseosms

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wpseo-html-sitemap
    • > Notice in wp-content/plugins/wp-seo-html-sitemap/sitemap.php+108
    Undefined index: wpseo-sitemap-pageID
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wpseo-html-sitemap
    • > Notice in wp-content/plugins/wp-seo-html-sitemap/sitemap.php+117
    Undefined index: pageID

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-seo-html-sitemap/sitemap.php:12

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-seo-html-sitemap/sitemap.php 92% from 13 tests

"WP SEO HTML Sitemap" version 0.9.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-seo-html-sitemap.php" instead of "sitemap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin338 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13545317
CSS14821

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.48
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin