83% xml-sitemap-generator-by-kaboom

Code Review | XML Sitemap Generator By Kaboom

WordPress plugin XML Sitemap Generator By Kaboom scored83%from 54 tests.

About plugin

  • Plugin page: xml-sitemap-gener...
  • Plugin version: 2.3.24
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.5.5
  • WordPress version: 6.3.1
  • First release: May 23, 2019
  • Latest release: Dec 27, 2020
  • Number of updates: 60
  • Update frequency: every 9.8 days
  • Top authors: kaboomwebsite (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /4,779 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by XML Sitemap Generator By Kaboom
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.70 ▼0.01
Dashboard /wp-admin3.36 ▲0.0150.06 ▼16.05
Posts /wp-admin/edit.php3.41 ▲0.0548.04 ▲0.54
Add New Post /wp-admin/post-new.php5.94 ▲0.0683.65 ▼14.90
Media Library /wp-admin/upload.php3.28 ▲0.0535.79 ▼0.23
Kaboom /wp-admin/admin.php?page=kaboom3.2632.15

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for XML Sitemap Generator By Kaboom
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,006 ▲26013.67 ▼0.911.79 ▼0.2843.77 ▼0.34
Dashboard /wp-admin2,415 ▲2304.94 ▼0.9699.96 ▼14.8779.43 ▲32.79
Posts /wp-admin/edit.php2,294 ▲2052.02 ▲0.0234.14 ▼2.3532.40 ▼1.82
Add New Post /wp-admin/post-new.php6,495 ▲4,97626.06 ▲2.98956.84 ▲298.7043.98 ▼13.23
Media Library /wp-admin/upload.php1,597 ▲2124.31 ▲0.1595.19 ▼4.1868.07 ▲22.83
Kaboom /wp-admin/admin.php?page=kaboom1,1892.2025.5958.44
Sitemap /wp-admin/admin.php?page=XML Sitemap Generator By Kaboom1,2912.0624.7279.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • sitemap_generator_exclude_post_types
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=XML Sitemap Generator By Kaboom
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=XML+Sitemap+Generator+By+Kaboom - Access to font at 'https://use.fontawesome.com/releases/v5.8.1/webfonts/fa-solid-900.woff2' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/admin.php?page=XML Sitemap Generator By Kaboom
    • > Network (severe)
    https://use.fontawesome.com/releases/v5.8.1/webfonts/fa-solid-900.woff2 - Failed to load resource: net::ERR_FAILED

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

xml-sitemap-generator-by-kaboom/xml-sitemap-generator-by-kaboom.php 92% from 13 tests

"XML Sitemap Generator By Kaboom" version 2.3.24'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:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,341 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP55824613
SVG222378
CSS1112222
JavaScript2130128

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.78MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/XMLSitemap.png85.29KB30.15KB▼ 64.65%
assets/XMLSitemapGeneratorAcive.png242.86KB67.43KB▼ 72.23%
images/Am-Multi.png31.87KB8.81KB▼ 72.36%
images/send-secrets.png16.43KB6.72KB▼ 59.11%
images/Not-mult.png5.91KB2.96KB▼ 49.89%