Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.88ms] Passed 4 tests
Server-side resources used by Disable Sitemap (Deactivate Sitemap) WordPress Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 34.36 ▼0.83 |
Dashboard /wp-admin | 3.40 ▲0.10 | 43.62 ▼2.08 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 46.45 ▲1.40 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 88.92 ▼6.01 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.95 ▲2.13 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
bill_show_warnings |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Disable Sitemap (Deactivate Sitemap) WordPress Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲16 | 14.30 ▼0.05 | 1.71 ▼0.13 | 42.87 ▲5.80 |
Dashboard /wp-admin | 2,211 ▲34 | 5.65 ▲0.00 | 80.74 ▼7.58 | 39.43 ▼2.64 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.04 ▲0.07 | 39.54 ▲6.16 | 34.53 ▼2.86 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.11 ▼0.06 | 617.32 ▼39.01 | 61.20 ▼18.01 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.10 ▼0.08 | 94.90 ▼11.46 | 44.18 ▼3.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- bill_show_warnings
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/disable-wp-sitemap/includes/checkup/class_bill_catch_errors.php
- > /wp-content/plugins/disable-wp-sitemap/disable-sitemap.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/disable-wp-sitemap/includes/checkup/bill_class_diagnose.php on line 4
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/disable-wp-sitemap/includes/checkup/bill_class_diagnose.php on line 4
- > PHP Notice
Undefined variable: plugin_slug in wp-content/plugins/disable-wp-sitemap/includes/checkup/bill_class_diagnose.php on line 636
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_root() in wp-content/plugins/disable-wp-sitemap/includes/checkup/bill_class_diagnose.php:125
- > PHP Notice
Undefined variable: notification_url in wp-content/plugins/disable-wp-sitemap/includes/checkup/bill_class_diagnose.php on line 633
- > PHP Notice
Undefined variable: plugin_text_domain in wp-content/plugins/disable-wp-sitemap/includes/checkup/bill_class_diagnose.php on line 635
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/disable-wp-sitemap/includes/checkup/bill_class_diagnose.php on line 4
- > PHP Notice
Undefined variable: notification_url2 in wp-content/plugins/disable-wp-sitemap/includes/checkup/bill_class_diagnose.php on line 634
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: disable, disable wp sitemap, sitemaps, disable sitemap, deactivate sitemap
disable-wp-sitemap/disable-sitemap.php 92% from 13 tests
"Disable Sitemap (Deactivate Sitemap) WordPress Plugin" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("disable-wp-sitemap.php" instead of "disable-sitemap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin711 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 34 | 74 | 711 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 40.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 6.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 3 | 20.00% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/checkup/bell.png | 1.07KB | 0.27KB | ▼ 74.45% |