84% wp-html-page-sitemap

Code Review | WP Html Page Sitemap

WordPress plugin WP Html Page Sitemap scored 84% from 54 tests.

About plugin

  • Plugin page: wp-html-page-sitemap
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 15, 2016
  • Latest release: Jul 16, 2017
  • Number of updates: 42
  • Update frequency: every 10.6 days
  • Top authors: pa1 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 5,895 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by WP Html Page Sitemap
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.26 ▲2.48
Dashboard /wp-admin3.31 ▲0.0147.98 ▲1.42
Posts /wp-admin/edit.php3.37 ▲0.0144.41 ▼0.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.36 ▼1.21
Media Library /wp-admin/upload.php3.24 ▲0.0135.56 ▲0.20
HTML Site Map /wp-admin/options-general.php?page=wp-html-page-site-map3.2031.37

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Html Page Sitemap
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲1914.74 ▼0.011.66 ▲0.0143.03 ▲1.02
Dashboard /wp-admin2,215 ▲95.00 ▲0.1698.10 ▲0.2239.22 ▼1.63
Posts /wp-admin/edit.php2,095 ▲62.06 ▲0.0135.29 ▲0.7731.47 ▼0.51
Add New Post /wp-admin/post-new.php1,519 ▼1517.89 ▼5.41640.26 ▼63.5549.50 ▼2.34
Media Library /wp-admin/upload.php1,394 ▲64.21 ▼0.0396.47 ▼14.8747.27 ▼3.26
HTML Site Map /wp-admin/options-general.php?page=wp-html-page-site-map8062.0225.5531.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-html-page-sitemap/wp-html-page-sitemap.php:26

User-side errors Passed 1 test

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

Optimizations

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
There were no plugin tags found

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

"WP Html Page Sitemap" version 2.2'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:
  • Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)

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 detected16 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS11015
PHP1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity7.20
▷ Minimum method complexity1.00
▷ Maximum method complexity27.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png27.33KB13.98KB▼ 48.86%
screenshot-2.png67.36KB30.29KB▼ 55.04%