67% iksweb-sitemap

Code Review | XML Sitemap генератор

WordPress plugin XML Sitemap генератор scored67%from 54 tests.

About plugin

  • Plugin page: iksweb-sitemap
  • Plugin version: 2.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Sep 22, 2020
  • Latest release: Jul 27, 2023
  • Number of updates: 33
  • Update frequency: every 31.5 days
  • Top authors: centerwd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /4,232 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼9.94ms] Passed 4 tests

Analyzing server-side resources used by XML Sitemap генератор
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1439.66 ▼6.47
Dashboard /wp-admin3.45 ▲0.1147.71 ▼15.44
Posts /wp-admin/edit.php3.57 ▲0.2153.36 ▲7.82
Add New Post /wp-admin/post-new.php6.05 ▲0.1784.64 ▼18.03
Media Library /wp-admin/upload.php3.37 ▲0.1537.61 ▲0.18
Sitemap.xml /wp-admin/admin.php?page=iks-sitemap3.3231.43
PRO версия /wp-admin/admin.php?page=iks-pro-sitemap3.3435.70

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

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

Browser metrics Passed 4 tests

Checking browser requirements for XML Sitemap генератор
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7414.44 ▼0.281.72 ▼0.0532.89 ▼11.21
Dashboard /wp-admin2,229 ▲495.67 ▲0.0793.29 ▲5.8339.20 ▼2.13
Posts /wp-admin/edit.php2,131 ▲282.06 ▲0.0940.34 ▲3.6234.65 ▼1.27
Add New Post /wp-admin/post-new.php1,553 ▲2523.65 ▲0.59692.03 ▼41.4254.57 ▼17.09
Media Library /wp-admin/upload.php1,431 ▲314.26 ▲0.03100.82 ▼0.8940.31 ▼6.59
Sitemap.xml /wp-admin/admin.php?page=iks-sitemap2,2451.8535.5252.50
PRO версия /wp-admin/admin.php?page=iks-pro-sitemap1,0292.4828.0238.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • SITEMAP_SETTINGS
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=iks-sitemap
    • > Notice in wp-content/plugins/iksweb-sitemap/iksweb-sitemap.php+947
    Undefined index: priority
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=iks-sitemap
    • > Notice in wp-content/plugins/iksweb-sitemap/iksweb-sitemap.php+948
    Undefined index: frequency

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/iksweb-sitemap/iksweb-sitemap.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Sitemaps_Provider' not found in wp-content/plugins/iksweb-sitemap/include/class-iksweb_sitemaps_provider.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=iks-sitemap
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:11743 Uncaught Error: Syntax error, unrecognized expression: #home_pages_Priority option[value=]
    • > GET request to /wp-admin/admin.php?page=iks-sitemap
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:11743 Uncaught Error: Syntax error, unrecognized expression: #page_Priority option[value=]
    • > GET request to /wp-admin/admin.php?page=iks-sitemap
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:11743 Uncaught Error: Syntax error, unrecognized expression: #post_Priority option[value=]
    • > GET request to /wp-admin/admin.php?page=iks-sitemap
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:11743 Uncaught Error: Syntax error, unrecognized expression: #category_Priority option[value=]
    • > GET request to /wp-admin/admin.php?page=iks-sitemap
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:11743 Uncaught Error: Syntax error, unrecognized expression: #post_tag_Priority option[value=]
    • > GET request to /wp-admin/admin.php?page=iks-sitemap
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:11743 Uncaught Error: Syntax error, unrecognized expression: #users_Priority option[value=]
    • > GET request to /wp-admin/admin.php?page=iks-pro-sitemap
    • > Network (severe)
    https://yoomoney.ru/quickpay/shop-widget?writer=seller&targets=%D0%A1%D0%B1%D0%BE%D1%80%20%D1%81%D1%80%D0%B5%D0%B4%D1%81%D1%82%D0%B2%20%D0%BD%D0%B0%20%D0%BE%D0%B1%D0%BD%D0%BE%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5%20%D0%BF%D0%BB%D0%B0%D0%B3%D0%B8%D0%BD%D0%BE%D0%B2&targets-hint=&default-sum=100&button-text=14&payment-type-choice=on&mobile-payment-type-choice=on&comment=on&hint=&successURL=https%3A%2F%2Fplugin.iksweb.ru%2Fwordpress%2F&quickpay=shop&account=4100116825216739 - Failed to load resource: the server responded with a status of 403 ()

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: iksweb, xmsitemap, seo, sitemaps, sitemap...

iksweb-sitemap/iksweb-sitemap.php 92% from 13 tests

The principal PHP file in "XML Sitemap генератор" v. 2.7 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 375 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,003 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2180164783
CSS2514148
JavaScript2121172

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity60.50
▷ Minimum class complexity5.00
▷ Maximum class complexity116.00
Average method complexity4.72
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
4 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/status_icons.png3.25KB2.13KB▼ 34.59%
assets/img/bx-admin-sprite-big1.png56.82KB19.23KB▼ 66.16%
assets/img/small-2.png57.00KB16.69KB▼ 70.71%
assets/img/i-info.png0.13KB0.23KB0.00%