90% wp-best-sitemap-generator

Code Review | WP Best Sitemap Generator

WordPress plugin WP Best Sitemap Generator scored90%from 54 tests.

About plugin

  • Plugin page: wp-best-sitemap-g...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 1, 2019
  • Latest release: Feb 1, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: eastsidecode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /484 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by WP Best Sitemap Generator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.67 ▼5.96
Dashboard /wp-admin3.32 ▼0.0248.48 ▼19.87
Posts /wp-admin/edit.php3.38 ▲0.0254.41 ▲2.60
Add New Post /wp-admin/post-new.php5.91 ▲0.03101.44 ▼1.46
Media Library /wp-admin/upload.php3.27 ▲0.0443.56 ▲5.06
Sitemap Settings /wp-admin/options-general.php?page=wp_best_sitemap_settings3.2439.24

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
These are issues you should consider
  • Illegal file modification detected: 1 file (0.22KB) outside of "wp-content/plugins/wp-best-sitemap-generator/" and "wp-content/uploads/"
    • (new file) sitemap.xml
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Best Sitemap Generator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▲0.081.73 ▲0.2044.59 ▲1.68
Dashboard /wp-admin2,196 ▲165.63 ▼0.0382.51 ▼6.4540.08 ▼1.65
Posts /wp-admin/edit.php2,086 ▼142.04 ▲0.0634.56 ▼1.7436.11 ▼1.00
Add New Post /wp-admin/post-new.php1,531 ▲323.10 ▲0.04609.84 ▼72.0759.56 ▲0.82
Media Library /wp-admin/upload.php1,404 ▲74.07 ▼0.17106.60 ▲8.9046.14 ▲2.76
Sitemap Settings /wp-admin/options-general.php?page=wp_best_sitemap_settings8972.0323.2233.53

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: sitemap, generator, xml

wp-best-sitemap-generator/wp-best-sitemap-generator.php Passed 13 tests

The main PHP file in "WP Best Sitemap Generator" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
88 characters long description:
Best WordPress Sitemap Generator. Geneates a single sitemap.xml file with priority value

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
No dangerous file extensions were detected215 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16329215

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected