84% xml-sitemap-for-stella

Code Review | XML Sitemap for Stella

WordPress plugin XML Sitemap for Stella scored84%from 54 tests.

About plugin

  • Plugin page: xml-sitemap-for-s...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: Feb 13, 2013
  • Latest release: Oct 3, 2014
  • Number of updates: 24
  • Update frequency: every 24.9 days
  • Top authors: luistinygod (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /9,109 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
Install script ran successfully

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

Analyzing server-side resources used by XML Sitemap for Stella
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.70 ▼2.03
Dashboard /wp-admin3.31 ▼0.0444.86 ▼17.36
Posts /wp-admin/edit.php3.36 ▲0.0042.89 ▲4.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.17 ▼22.76
Media Library /wp-admin/upload.php3.23 ▲0.0031.74 ▼0.18

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for XML Sitemap for Stella
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.45 ▲0.092.20 ▲0.5845.10 ▲1.04
Dashboard /wp-admin2,195 ▲215.49 ▼0.1999.20 ▲0.8838.40 ▼4.55
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0633.36 ▼7.9034.96 ▲0.31
Add New Post /wp-admin/post-new.php1,526 ▼922.63 ▲4.64653.08 ▲43.8154.49 ▼14.96
Media Library /wp-admin/upload.php1,397 ▼64.23 ▲0.06103.70 ▲4.8744.64 ▲1.96

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/xml-sitemap-for-stella/css/xml-sitemap-xsl.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 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
You can look at the official readme.txt

xml-sitemap-for-stella/xml-sitemap-for-stella.php Passed 13 tests

The primary PHP file in "XML Sitemap for Stella" version 1.1.0 is used by WordPress to initiate all plugin functionality
110 characters long description:
Generates a XML Sitemap on your WordPress multi-language website when powered by Stella multi-language plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected732 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4180198732

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.38
Average class complexity51.50
▷ Minimum class complexity30.00
▷ Maximum class complexity73.00
Average method complexity4.37
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo_gomo.png3.73KB2.01KB▼ 46.14%