83% mb-sitemap-generator

Code Review | Sitemap Generator Professional

WordPress plugin Sitemap Generator Professional scored83%from 54 tests.

About plugin

  • Plugin page: mb-sitemap-generator
  • Plugin version: 1.7.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.0
  • WordPress version: 6.3.1
  • First release: May 11, 2015
  • Latest release: Jan 14, 2023
  • Number of updates: 84
  • Update frequency: every 33.4 days
  • Top authors: mbsec (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

7,000+ active /193,854 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.71ms] Passed 4 tests

A check of server-side resources used by Sitemap Generator Professional
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.89 ▼0.94
Dashboard /wp-admin3.36 ▲0.0652.61 ▼2.81
Posts /wp-admin/edit.php3.41 ▲0.0653.71 ▲2.40
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.07 ▼9.35
Media Library /wp-admin/upload.php3.28 ▲0.0539.00 ▲2.26
Settings /wp-admin/admin.php?page=sitemap-generator-settings3.2537.89
Sitemap Generator /wp-admin/admin.php?page=sitemap-generator3.2633.96

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Sitemap Generator Professional
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲3014.73 ▲0.311.83 ▼0.6043.67 ▲1.18
Dashboard /wp-admin2,219 ▲425.56 ▼0.0688.24 ▼4.6940.89 ▼2.38
Posts /wp-admin/edit.php2,130 ▲301.99 ▼0.0443.52 ▲5.8638.37 ▲3.15
Add New Post /wp-admin/post-new.php1,548 ▲2023.78 ▲0.59699.16 ▲68.6661.39 ▲2.49
Media Library /wp-admin/upload.php1,424 ▲214.21 ▲0.03104.50 ▼0.7145.52 ▼2.25
Settings /wp-admin/admin.php?page=sitemap-generator-settings1,5322.1324.0431.49
Sitemap Generator /wp-admin/admin.php?page=sitemap-generator8361.8926.5331.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mb-sitemap-generator/shared_functions.php
    • > /wp-content/plugins/mb-sitemap-generator/sitemapgenerator.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
The official readme.txt is a good inspiration

mb-sitemap-generator/sitemapgenerator.php 85% from 13 tests

The primary PHP file in "Sitemap Generator Professional" version 1.7.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mb-sitemap-generator.php" instead of "sitemapgenerator.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
Everything looks great! No dangerous files found in this plugin2,524 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript25657972,229
PHP26628277
CSS24018

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions11
▷ Named functions11100.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
No PNG files were detected