84% easy-html-sitemap

Code Review | Easy HTML Sitemap

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

About plugin

  • Plugin page: easy-html-sitemap
  • Plugin version: 1.4.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.2
  • WordPress version: 5.8.1
  • First release: Feb 4, 2019
  • Latest release: Feb 25, 2020
  • Number of updates: 38
  • Update frequency: every 10.2 days
  • Top authors: a.ankit (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active / 8,662 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼137.19ms] Passed 4 tests

An overview of server-side resources used by Easy HTML Sitemap
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1534.57 ▲7.96
Dashboard /wp-admin3.09 ▲0.0454.75 ▲17.88
Posts /wp-admin/edit.php3.18 ▲0.0745.86 ▼4.94
Add New Post /wp-admin/post-new.php5.46 ▲0.03112.42 ▼546.86
Media Library /wp-admin/upload.php3.04 ▲0.0336.38 ▼4.92
Easy HTML Sitemap /wp-admin/options-general.php?page=wbehs_settings3.0430.72

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Easy HTML Sitemap
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,741 ▲14516.25 ▲0.6210.11 ▼2.8752.31 ▲2.66
Dashboard /wp-admin3,008 ▲796.59 ▲0.60148.81 ▲6.64116.86 ▼15.22
Posts /wp-admin/edit.php2,780 ▲413.03 ▲0.3268.26 ▲0.88108.57 ▲17.29
Add New Post /wp-admin/post-new.php1,632 ▲13218.88 ▲0.32365.34 ▼16.05139.63 ▲24.21
Media Library /wp-admin/upload.php1,845 ▲385.47 ▲0.44133.06 ▼28.21122.75 ▼5.48
Easy HTML Sitemap /wp-admin/options-general.php?page=wbehs_settings1,6072.4175.07101.11

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • wbehs_installed_status

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/easy-html-sitemap/easy-html-sitemap.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-html-sitemap/easy-html-sitemap-settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: sitemap, display sitemap, list, html sitemap, page list

easy-html-sitemap/easy-html-sitemap.php 92% from 13 tests

This is the main PHP file of "Easy HTML Sitemap" version 1.4.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,852 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions11100.00%
▷ Anonymous functions00.00%
▷ 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