Benchmarks
Plugin footprint 65% 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.91MB] [CPU: ▼33.97ms] Passed 4 tests
An overview of server-side resources used by Xml Sitemap Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 34.60 ▼3.84 |
Dashboard /wp-admin | 3.04 ▼0.27 | 22.01 ▼29.53 |
Posts /wp-admin/edit.php | 3.04 ▼0.32 | 23.23 ▼26.22 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.85 | 22.98 ▼66.12 |
Media Library /wp-admin/upload.php | 3.04 ▼0.19 | 19.80 ▼14.00 |
Xml Sitemap Generator /wp-admin/plugins.php?page=xml-sitemap-generator/wp-xml-sitemap-generator.php | 3.04 | 22.56 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Xml Sitemap Generator: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.29 ▼1.00 | 4.63 ▲2.82 | 38.88 ▼5.20 |
Dashboard /wp-admin | 2,213 ▲25 | 4.83 ▼0.05 | 109.72 ▼2.85 | 42.61 ▼3.23 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▲0.01 | 36.45 ▼3.95 | 34.44 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.25 ▼0.04 | 682.47 ▲86.59 | 68.13 ▲15.94 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.23 ▼0.01 | 101.99 ▼1.99 | 43.29 ▼1.41 |
Xml Sitemap Generator /wp-admin/plugins.php?page=xml-sitemap-generator/wp-xml-sitemap-generator.php | 678 | 1.53 | 7.17 | 22.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- recovery_mode_email_last_sent
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=xml-sitemap-generator/wp-xml-sitemap-generator.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/plugins.php?page=xml-sitemap-generator/wp-xml-sitemap-generator.php
- > Error in wp-content/plugins/xml-sitemap-generator/wp-xml-sitemap-generator.php+277
Uncaught Error: Call to undefined function mysql_get_server_info() in wp-content/plugins/xml-sitemap-generator/wp-xml-sitemap-generator.php:277
Stack trace:
#0 wp-content/plugins/xml-sitemap-generator/wp-xml-sitemap-generator.php(68): wp_xml_sitemap_generator->install()
#1 wp-includes/class-wp-hook.php(310): wp_xml_sitemap_generator->home_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/plugins.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
SRP 50% from 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xml-sitemap-generator/wp-xml-sitemap-generator.php:325
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== xml-sitemap-generator ===
) - Screenshots: A description for screenshot #0 is missing in xml-sitemap-generator/assets to your readme.txt
- Screenshots: Screenshot #1 (Easiest than easy : set up your options and click the Go Baby button to create a sitemap.xml file) image required
xml-sitemap-generator/wp-xml-sitemap-generator.php 92% from 13 tests
The primary PHP file in "Xml Sitemap Generator" version 1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("xml-sitemap-generator.php" instead of "wp-xml-sitemap-generator.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
Everything looks great! No dangerous files found in this plugin228 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 66 | 228 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 5.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot.png | 23.11KB | 13.39KB | ▼ 42.07% |