89% polylang-dynamic-sitemap-generator

Code Review | Polylang Dynamic Sitemap Generator

WordPress plugin Polylang Dynamic Sitemap Generator scored89%from 54 tests.

About plugin

  • Plugin page: polylang-dynamic-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 21, 2023
  • Latest release: Aug 16, 2023
  • Number of updates: 8
  • Update frequency: every 7.8 days
  • Top authors: zaferator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /729 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.68MB] [CPU: ▼16.68ms] Passed 4 tests

A check of server-side resources used by Polylang Dynamic Sitemap Generator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.20 ▼0.41
Dashboard /wp-admin3.33 ▲0.0252.15 ▼1.09
Posts /wp-admin/edit.php3.38 ▲0.0248.60 ▼0.41
Add New Post /wp-admin/post-new.php3.11 ▼2.7736.91 ▼64.79
Media Library /wp-admin/upload.php3.25 ▲0.0240.27 ▲2.42

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

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

Browser metrics Passed 4 tests

Polylang Dynamic Sitemap Generator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.33 ▼0.321.86 ▲0.1144.05 ▲0.25
Dashboard /wp-admin2,211 ▲345.61 ▼0.0589.43 ▼11.5145.21 ▲3.18
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0039.31 ▲2.7034.79 ▼3.10
Add New Post /wp-admin/post-new.php45 ▼1,4830.42 ▼22.720.07 ▼688.249.49 ▼44.56
Media Library /wp-admin/upload.php1,416 ▲224.20 ▼0.04103.59 ▲0.0264.06 ▲18.04

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
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • recovery_mode_email_last_sent
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Requires at least: The plugin version is formatted incorrectly
  • Tested up to: The plugin version is formatted incorrectly
You can look at the official readme.txt

polylang-dynamic-sitemap-generator/polylang-dynamic-sitemap-generator.php Passed 13 tests

Analyzing the main PHP file in "Polylang Dynamic Sitemap Generator" version 1.0.1
67 characters long description:
Generates dynamic sitemaps for all active languages and post types.

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
Everything looks great! No dangerous files found in this plugin109 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13626109

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin