94% cache-xml-sitemap

Code Review | Cache XML Sitemap Generated By SEO Plugins

WordPress plugin Cache XML Sitemap Generated By SEO Plugins scored 94% from 53 tests.

About plugin

  • Plugin page: cache-xml-sitemap
  • Plugin version: 1.0.1.1
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jan 20, 2021
  • Latest release: Jan 21, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: 0322lf (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 119 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼260.99ms] Passed 4 tests

Analyzing server-side resources used by Cache XML Sitemap Generated By SEO Plugins
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.37 ▲12.87
Dashboard /wp-admin3.06 ▲0.0144.53 ▲4.95
Posts /wp-admin/edit.php3.11 ▲0.0142.74 ▼6.41
Add New Post /wp-admin/post-new.php5.42 ▼0.0184.13 ▼1,033.12
Media Library /wp-admin/upload.php3.00 ▼0.0033.77 ▼9.37

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Cache XML Sitemap Generated By SEO Plugins
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,673 ▲6715.85 ▲0.289.61 ▲1.3748.44 ▼2.05
Dashboard /wp-admin2,930 ▲785.97 ▲0.14133.41 ▼5.62107.74 ▼2.30
Posts /wp-admin/edit.php2,706 ▼02.70 ▲0.0167.66 ▲3.1994.66 ▲5.72
Add New Post /wp-admin/post-new.php2,042 ▼019.44 ▲0.06363.98 ▼1.42104.09 ▼10.55
Media Library /wp-admin/upload.php1,775 ▲34.99 ▼0.02150.19 ▼13.07111.80 ▼4.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cache-xml-sitemap/cache-xml-sitemap.php:10

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: seo, yoast, cache, sitemap, xml

cache-xml-sitemap/cache-xml-sitemap.php Passed 13 tests

The primary PHP file in "Cache XML Sitemap Generated By SEO Plugins" version 1.0.1.1 is used by WordPress to initiate all plugin functionality
40 characters long description:
Cache XML Sitemap Generated By Yoast Seo

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
There were no executable files found in this plugin2 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1172

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin