84% sitemap-ui

Code Review | Sitemap UI

WordPress plugin Sitemap UI scored84%from 54 tests.

About plugin

  • Plugin page: sitemap-ui
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.9
  • WordPress version: 6.3.1
  • First release: Aug 29, 2020
  • Latest release: Feb 12, 2022
  • Number of updates: 5
  • Update frequency: every 106.6 days
  • Top authors: mgibbs189 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /496 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

This is a short check of server-side resources used by Sitemap UI
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.02 ▼0.73
Dashboard /wp-admin3.34 ▲0.0445.84 ▼3.87
Posts /wp-admin/edit.php3.45 ▲0.1049.36 ▼0.24
Add New Post /wp-admin/post-new.php5.92 ▲0.0480.81 ▼22.50
Media Library /wp-admin/upload.php3.26 ▲0.0332.35 ▲0.90
Sitemap UI /wp-admin/options-general.php?page=smui3.2431.81

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

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

Browser metrics Passed 4 tests

Sitemap UI: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.33 ▲0.071.64 ▼0.0444.41 ▼2.31
Dashboard /wp-admin2,196 ▲195.56 ▼0.1281.49 ▼21.0238.62 ▼6.28
Posts /wp-admin/edit.php2,107 ▲72.03 ▲0.0939.59 ▲2.5336.34 ▲7.81
Add New Post /wp-admin/post-new.php1,540 ▲1418.21 ▼4.78618.60 ▲7.4463.59 ▲5.87
Media Library /wp-admin/upload.php1,407 ▲134.17 ▼0.07125.45 ▲28.3646.47 ▲4.90
Sitemap UI /wp-admin/options-general.php?page=smui9722.3932.0528.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SMUI() in wp-content/plugins/sitemap-ui/templates/page-settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: ui, configuration, sitemap, sitemaps, settings

sitemap-ui/sitemap-ui.php Passed 13 tests

This is the main PHP file of "Sitemap UI" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
46 characters long description:
Configure WP core sitemaps within the admin UI

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected796 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript28026380
PHP26527198
CSS2230136
Markdown320050
HTML10032

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions116.67%
▷ Anonymous functions583.33%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin