Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.50ms] 75% from 4 tests
An overview of server-side resources used by XML Sitemap Generator for Google
It is recommended to improve the following
- CPU: The total CPU usage must kept under 500.00ms (currently 517.80ms on /wp-admin/options-general.php?page=google-sitemap-generator/sitemap.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.93 ▼0.95 |
Dashboard /wp-admin | 3.43 ▲0.12 | 51.31 ▼2.70 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 54.06 ▲3.05 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 98.73 ▼9.81 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.41 ▼0.52 |
XML-Sitemap /wp-admin/options-general.php?page=google-sitemap-generator/sitemap.php | 4.46 | 517.80 |
Server storage [IO: ▲2.04MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 89 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
sm_rewrite_done |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
sm_options |
widget_recent-posts |
Browser metrics Passed 4 tests
XML Sitemap Generator for Google: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲57 | 13.62 ▼0.81 | 1.94 ▼0.26 | 34.57 ▼8.27 |
Dashboard /wp-admin | 2,249 ▲46 | 4.84 ▼0.05 | 106.06 ▼10.40 | 43.19 ▼4.76 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.02 ▲0.04 | 40.12 ▲3.87 | 35.43 ▼0.29 |
Add New Post /wp-admin/post-new.php | 1,556 ▲2 | 23.26 ▲5.15 | 658.69 ▲4.61 | 76.08 ▲24.66 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.23 ▼0.03 | 100.26 ▼1.70 | 45.58 ▼1.35 |
XML-Sitemap /wp-admin/options-general.php?page=google-sitemap-generator/sitemap.php | 2,524 | 2.22 | 28.21 | 41.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- sm_options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
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)
Good news, no errors were detected
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/google-sitemap-generator/sitemap.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/google-sitemap-generator/class-googlesitemapgeneratorloader.php:12
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 18 tag instead of maximum 10
google-sitemap-generator/sitemap.php 85% from 13 tests
The entry point to "XML Sitemap Generator for Google" version 4.1.13 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("google-sitemap-generator.php" instead of "sitemap.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected15,169 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 29 | 4,597 | 6,892 | 10,127 |
PHP | 9 | 797 | 1,833 | 4,797 |
XSLT | 1 | 13 | 0 | 153 |
JavaScript | 1 | 15 | 3 | 92 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 205)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 48.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 233.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 205.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 203 | |
▷ Static methods | 60 | 29.56% |
▷ Public methods | 188 | 92.61% |
▷ Protected methods | 3 | 1.48% |
▷ Private methods | 12 | 5.91% |
Functions | 11 | |
▷ Named functions | 7 | 63.64% |
▷ Anonymous functions | 4 | 36.36% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.18MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 15.03KB | 16.40KB | 0.00% |
img/close.png | 6.95KB | 7.33KB | 0.00% |
(invalid) img/help.png | 15.47KB | 0.00KB | ▼ 100.00% |
screenshot-2.png | 31.33KB | 34.42KB | 0.00% |
screenshot-1.png | 111.75KB | 34.24KB | ▼ 69.36% |