90% wp-sitemap-page

Code Review | WP Sitemap Page

WordPress plugin WP Sitemap Page scored90%from 54 tests.

About plugin

  • Plugin page: wp-sitemap-page
  • Plugin version: 1.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 12, 2012
  • Latest release: Nov 25, 2023
  • Number of updates: 61
  • Update frequency: every 66.1 days
  • Top authors: funnycat (100%)

Code review

54 tests

User reviews

194 reviews

Install metrics

300,000+ active /2,601,772 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.18ms] Passed 4 tests

Analyzing server-side resources used by WP Sitemap Page
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1134.97 ▼7.05
Dashboard /wp-admin3.44 ▲0.0945.31 ▼15.55
Posts /wp-admin/edit.php3.55 ▲0.1946.17 ▲0.51
Add New Post /wp-admin/post-new.php6.02 ▲0.13101.08 ▲11.09
Media Library /wp-admin/upload.php3.36 ▲0.1333.14 ▲1.38
WP Sitemap Page /wp-admin/options-general.php?page=wp_sitemap_page3.4433.27

Server storage [IO: ▲0.70MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-posts
db_upgraded
wsp_exclude_cpt_author
widget_theysaidso_widget
wsp_posts_by_category
widget_recent-comments
wsp_exclude_cpt_archive
wsp_version_key
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Sitemap Page
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7214.37 ▲0.191.75 ▲0.0942.07 ▼1.35
Dashboard /wp-admin2,199 ▲245.63 ▼0.0493.23 ▼19.1542.41 ▼1.06
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0140.21 ▲1.9236.01 ▲1.65
Add New Post /wp-admin/post-new.php1,529 ▲323.30 ▼0.18613.50 ▼74.5047.03 ▼6.75
Media Library /wp-admin/upload.php1,404 ▲44.27 ▲0.0596.62 ▲3.1545.60 ▲4.29
WP Sitemap Page /wp-admin/options-general.php?page=wp_sitemap_page1,1832.0024.9631.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • wsp_version_key
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Example of a sitemap on a French blog), #2 (Settings page)
Please take inspiration from this readme.txt

wp-sitemap-page/wp-sitemap-page.php Passed 13 tests

The principal PHP file in "WP Sitemap Page" v. 1.9.3 is loaded by WordPress automatically on each request
75 characters long description:
Add a sitemap on any page/post using the simple shortcode [wp_sitemap_page]

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin4,441 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PO File161,1301,4293,431
PHP33174571,010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
6 PNG files occupy 0.19MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-html-code-24.png0.44KB0.52KB0.00%
images/icon-language-24.png0.69KB0.87KB0.00%
screenshot-2.png68.11KB22.54KB▼ 66.91%
screenshot-1.png123.01KB40.44KB▼ 67.12%
images/icon-coin-24.png0.77KB1.08KB0.00%