84% wpsso-wp-sitemaps

Code Review | WPSSO WP Sitemaps XML with News, Image, and Video Sitemaps

WordPress plugin WPSSO WP Sitemaps XML with News, Image, and Video Sitemaps scored84%from 54 tests.

About plugin

  • Plugin page: wpsso-wp-sitemaps
  • Plugin version: 8.0.0
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 16, 2021
  • Latest release: Nov 9, 2023
  • Number of updates: 740
  • Update frequency: every 1.0 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /10,957 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.12MB] [CPU: ▼8.11ms] Passed 4 tests

An overview of server-side resources used by WPSSO WP Sitemaps XML with News, Image, and Video Sitemaps
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1242.29 ▼0.61
Dashboard /wp-admin3.43 ▲0.1250.31 ▼12.75
Posts /wp-admin/edit.php3.54 ▲0.1850.72 ▲2.15
Add New Post /wp-admin/post-new.php6.01 ▲0.1290.01 ▼18.75
Media Library /wp-admin/upload.php3.35 ▲0.1138.12 ▼0.34

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WPSSO WP Sitemaps XML with News, Image, and Video Sitemaps
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.27 ▼0.071.82 ▲0.0543.11 ▼0.43
Dashboard /wp-admin2,201 ▲275.51 ▼0.02109.83 ▼7.1451.60 ▼1.94
Posts /wp-admin/edit.php2,109 ▲91.95 ▲0.0240.55 ▼2.8335.82 ▼2.19
Add New Post /wp-admin/post-new.php1,534 ▼1022.83 ▼2.36628.79 ▼20.4847.94 ▼12.08
Media Library /wp-admin/upload.php1,409 ▲64.20 ▼0.01104.49 ▼7.0745.54 ▼6.67

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 17× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wpsso-wp-sitemaps/lib/sitemaps/filters.php
    • > /wp-content/plugins/wpsso-wp-sitemaps/gettext/gettext-lib-config.php
    • > /wp-content/plugins/wpsso-wp-sitemaps/lib/sitemaps/renderer.php
    • > /wp-content/plugins/wpsso-wp-sitemaps/lib/sitemaps.php
    • > /wp-content/plugins/wpsso-wp-sitemaps/lib/submenu/wp-sitemaps.php
    • > /wp-content/plugins/wpsso-wp-sitemaps/lib/filters-messages.php
    • > /wp-content/plugins/wpsso-wp-sitemaps/lib/abstract/com/add-on.php
    • > /wp-content/plugins/wpsso-wp-sitemaps/lib/conflict-seo.php
    • > /wp-content/plugins/wpsso-wp-sitemaps/lib/filters-options.php
    • > /wp-content/plugins/wpsso-wp-sitemaps/lib/filters.php

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 issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce, google news, news sitemap, video sitemap, image sitemap

wpsso-wp-sitemaps/wpsso-wp-sitemaps.php Passed 13 tests

"WPSSO WP Sitemaps XML with News, Image, and Video Sitemaps" version 8.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
134 characters long description:
Improves the WordPress sitemaps XML with article modification times, alternate language URLs, images sitemaps, news sitemaps and more.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,772 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP187934561,544
PO File16571162
Markdown122036
HTML232030

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.00
▷ Minimum class complexity3.00
▷ Maximum class complexity95.00
Average method complexity3.97
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes214.29%
▷ Concrete classes1285.71%
▷ Final classes00.00%
Methods70
▷ Static methods1217.14%
▷ Public methods5680.00%
▷ Protected methods710.00%
▷ Private methods710.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-128x128.png13.24KB5.60KB▼ 57.68%
images/icon-256x256.png33.12KB12.64KB▼ 61.84%