90% disable-wp-sitemaps

Code Review | Disable WP Sitemaps

WordPress plugin Disable WP Sitemaps scored90%from 54 tests.

About plugin

  • Plugin page: disable-wp-sitemaps
  • Plugin version: 1.8.1
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4
  • WordPress version: 6.3.1
  • First release: Jul 29, 2020
  • Latest release: Oct 25, 2023
  • Number of updates: 14
  • Update frequency: every 84.5 days
  • Top authors: specialk (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

9,000+ active /40,554 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Disable WP Sitemaps
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0037.55 ▲2.28
Dashboard /wp-admin3.30 ▼0.0442.40 ▼16.96
Posts /wp-admin/edit.php3.35 ▼0.0042.46 ▼6.24
Add New Post /wp-admin/post-new.php5.89 ▼0.0078.75 ▼21.35
Media Library /wp-admin/upload.php3.23 ▼0.0033.23 ▼2.69

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Disable WP Sitemaps
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.17 ▼0.471.71 ▲0.1345.37 ▲9.69
Dashboard /wp-admin2,195 ▲205.57 ▼0.0382.18 ▼18.2739.41 ▲0.10
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0836.31 ▲2.4131.91 ▼5.30
Add New Post /wp-admin/post-new.php1,526 ▼223.10 ▲0.21673.41 ▼2.7450.48 ▼11.85
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.03100.04 ▼21.8245.38 ▼1.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
No output text or server-side errors detected on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: sitemaps, sitemap, disable

disable-wp-sitemaps/disable-wp-sitemaps.php 92% from 13 tests

The main file in "Disable WP Sitemaps" v. 1.8.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

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
Good job! No executable or dangerous file extensions detected3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16313

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.50
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 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin