83% simple-xml-sitemap-generator

Code Review | Simple XML Sitemap Generator

WordPress plugin Simple XML Sitemap Generator scored83%from 54 tests.

About plugin

  • Plugin page: simple-xml-sitema...
  • Plugin version: 2.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 12, 2016
  • Latest release: Oct 10, 2023
  • Number of updates: 101
  • Update frequency: every 27.1 days
  • Top authors: Annubis (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

4,000+ active /65,170 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.29ms] Passed 4 tests

A check of server-side resources used by Simple XML Sitemap Generator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.03 ▲3.07
Dashboard /wp-admin3.37 ▲0.0750.54 ▼4.49
Posts /wp-admin/edit.php3.42 ▲0.0744.77 ▼2.20
Add New Post /wp-admin/post-new.php5.95 ▲0.0783.44 ▼17.54
Media Library /wp-admin/upload.php3.29 ▲0.0739.62 ▲3.64
Simple XML Sitemap Generator /wp-admin/options-general.php?page=QWA_sxmlsg3.2334.18

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Simple XML Sitemap Generator: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.23 ▼1.152.09 ▲0.1243.51 ▼2.18
Dashboard /wp-admin2,207 ▲165.84 ▲0.91103.45 ▼14.5341.15 ▼2.65
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0435.32 ▼2.4136.31 ▲2.99
Add New Post /wp-admin/post-new.php1,523 ▼1917.89 ▼6.55676.87 ▼12.0361.12 ▲11.35
Media Library /wp-admin/upload.php1,392 ▲104.14 ▼0.09105.28 ▲4.9448.91 ▲4.57
Simple XML Sitemap Generator /wp-admin/options-general.php?page=QWA_sxmlsg9442.0224.6430.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=QWA_sxmlsg
    • > Notice in wp-content/plugins/simple-xml-sitemap-generator/form.php+218
    Undefined variable: screenshot

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% 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
These attributes need your attention: You can take inspiration from this readme.txt

simple-xml-sitemap-generator/index.php 77% from 13 tests

The primary PHP file in "Simple XML Sitemap Generator" version 2.2.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 220 characters long)
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "3.5")
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-xml-sitemap-generator.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin739 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PO File4128153509
PHP415166230

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/screenshot-1.png38.68KB19.04KB▼ 50.77%
images/screenshot-2.png38.77KB18.93KB▼ 51.17%