90% disable-sitemap

Code Review | Disable Sitemap

WordPress plugin Disable Sitemap scored 90% from 54 tests.

About plugin

  • Plugin page: disable-sitemap
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.5
  • WordPress version: 6.3.1
  • First release: Aug 14, 2020
  • Latest release: Aug 14, 2020
  • Number of updates: 14
  • Update frequency: N/A
  • Top authors: saeedshabani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 440 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 successfully, without throwing any errors or notices

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

Server-side resources used by Disable Sitemap
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0040.51 ▼5.17
Dashboard /wp-admin3.30 ▼0.0045.66 ▼4.59
Posts /wp-admin/edit.php3.33 ▼0.0349.79 ▲3.14
Add New Post /wp-admin/post-new.php5.88 ▼0.0183.90 ▼14.75
Media Library /wp-admin/upload.php3.22 ▼0.0133.98 ▼1.14

Server storage [IO: ▲0.01MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Disable Sitemap
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.57 ▼0.831.77 ▼0.1444.73 ▲0.83
Dashboard /wp-admin2,203 ▲125.86 ▼0.02102.23 ▼4.6440.69 ▼6.90
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0433.74 ▼3.3635.17 ▲1.57
Add New Post /wp-admin/post-new.php1,538 ▲2423.18 ▲5.46672.29 ▲77.7052.68 ▲4.58
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0397.03 ▼2.3141.99 ▼2.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

disable-sitemap/disable-sitemap.php Passed 13 tests

The primary PHP file in "Disable Sitemap" version 1.0.2 is used by WordPress to initiate all plugin functionality
26 characters long description:
Disables Wordpress Sitemap

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin35 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2333135

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin