89% sewn-in-xml-sitemap

Code Review | Sewn In XML Sitemap

WordPress plugin Sewn In XML Sitemap scored89%from 54 tests.

About plugin

  • Plugin page: sewn-in-xml-sitemap
  • Plugin version: 2.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 13, 2014
  • Latest release: Sep 2, 2017
  • Number of updates: 27
  • Update frequency: every 41.6 days
  • Top authors: jcow (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active /3,312 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.17MB] [CPU: ▼3.85ms] Passed 4 tests

This is a short check of server-side resources used by Sewn In XML Sitemap
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1743.96 ▼0.21
Dashboard /wp-admin3.46 ▲0.1651.95 ▼4.28
Posts /wp-admin/edit.php3.58 ▲0.2252.37 ▼0.14
Add New Post /wp-admin/post-new.php6.08 ▲0.2096.03 ▼7.88
Media Library /wp-admin/upload.php3.39 ▲0.1636.13 ▼3.04

Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please try to fix the following items
  • You have illegally modified 1 file (0.38KB) outside of "wp-content/plugins/sewn-in-xml-sitemap/" and "wp-content/uploads/"
    • (new file) sitemap.xml
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Sewn In XML Sitemap
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼1.061.72 ▼0.3642.72 ▼1.01
Dashboard /wp-admin2,209 ▲215.88 ▲1.0597.49 ▼20.4439.93 ▼1.96
Posts /wp-admin/edit.php2,086 ▼62.00 ▼0.0237.62 ▼3.7534.93 ▼4.80
Add New Post /wp-admin/post-new.php6,244 ▲4,71626.08 ▲2.73907.91 ▲233.4063.72 ▲10.75
Media Library /wp-admin/upload.php1,382 ▼94.18 ▼0.0398.15 ▼7.3041.53 ▼2.95

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
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: You can take inspiration from this readme.txt

sewn-in-xml-sitemap/sewn-xml-sitemap.php 77% from 13 tests

Analyzing the main PHP file in "Sewn In XML Sitemap" version 2.0.6
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sewn-in-xml-sitemap.php" instead of "sewn-xml-sitemap.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,164 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5204508823
CSS2276235
JavaScript22030106

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity28.50
▷ Minimum class complexity3.00
▷ Maximum class complexity78.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods42100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin