Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼4.81ms] Passed 4 tests
A check of server-side resources used by WP Sitemaps Config
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 39.17 ▲0.70 |
Dashboard /wp-admin | 3.50 ▲0.20 | 46.03 ▼1.42 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 48.52 ▲3.37 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 85.74 ▼17.16 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.66 ▼1.35 |
XML Sitemap /wp-admin/options-general.php?page=wp-sitemaps-config | 3.40 | 30.45 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Sitemaps Config
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▼0.12 | 1.79 ▲0.23 | 45.51 ▲3.56 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▼0.01 | 91.32 ▲4.13 | 46.08 ▲2.05 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.02 | 35.27 ▼1.76 | 40.71 ▲7.79 |
Add New Post /wp-admin/post-new.php | 6,349 ▲4,821 | 25.89 ▲2.89 | 885.22 ▲202.64 | 58.85 ▲6.29 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.18 ▼0.02 | 93.20 ▼0.77 | 42.63 ▼1.32 |
XML Sitemap /wp-admin/options-general.php?page=wp-sitemaps-config | 951 | 2.00 | 22.54 | 28.24 |
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_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-sitemaps-config/public/partials/wp-sitemaps-config-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-sitemaps-config/admin/partials/wp-sitemaps-config-admin-display.php:23
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: sitemap, configuration, wordpress sitemap, sitemaps, xml sitemap
wp-sitemaps-config/wp-sitemaps-config.php Passed 13 tests
The main PHP file in "WP Sitemaps Config" ver. 2.2.1 adds more information about the plugin and also serves as the entry point for this plugin
77 characters long description:
Provides options to control all XML sitemaps generated by the WordPress core.
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 plugin960 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 266 | 982 | 855 |
CSS | 2 | 4 | 11 | 81 |
Markdown | 1 | 9 | 0 | 18 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 16.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 2 | 4.35% |
▷ Public methods | 39 | 84.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 15.22% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 3 | 37.50% |
▷ Class constants | 5 | 62.50% |
▷ Public constants | 5 | 100.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icon-128x128.png | 9.25KB | 3.70KB | ▼ 60.04% |