Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.43MB] [CPU: ▼3.52ms] Passed 4 tests
A check of server-side resources used by Dynamic XML Sitemaps Generator for Google
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 695.31 ▲656.60 |
Dashboard /wp-admin | 3.79 ▲0.45 | 49.39 ▼9.41 |
Posts /wp-admin/edit.php | 3.84 ▲0.49 | 52.18 ▲7.36 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 84.87 ▼16.13 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 37.58 ▲4.10 |
XML Sitemaps /wp-admin/options-general.php?page=xml-sitemap-generator-for-google | 3.69 | 45.78 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 64 new files
Database: no new tables, 9 new options
New WordPress options |
---|
xml-sitemap-generator-for-google-last-ping |
widget_recent-comments |
theysaidso_admin_options |
grim_sg_rules |
db_upgraded |
widget_theysaidso_widget |
category_children |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Dynamic XML Sitemaps Generator for Google
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,784 ▲37 | 14.69 ▲0.56 | 1.61 ▼0.18 | 45.78 ▲0.42 |
Dashboard /wp-admin | 2,202 ▲38 | 5.65 ▼0.06 | 91.61 ▼20.16 | 40.64 ▼1.45 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.95 ▼0.01 | 40.44 ▲1.33 | 36.42 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.46 ▲0.26 | 697.60 ▼5.15 | 61.91 ▼1.45 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.12 ▼0.05 | 94.67 ▼8.29 | 41.50 ▼1.09 |
XML Sitemaps /wp-admin/options-general.php?page=xml-sitemap-generator-for-google | 3,555 | 2.96 | 55.25 | 75.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- grim_sg_rules
- category_children
- xml-sitemap-generator-for-google-last-ping
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/xml-sitemap-generator-for-google/templates/xsl/tables/google-news.php
- > /wp-content/plugins/xml-sitemap-generator-for-google/templates/xsl/tables/image-sitemap.php
- > /wp-content/plugins/xml-sitemap-generator-for-google/templates/xsl/tables/sitemap.php
- > /wp-content/plugins/xml-sitemap-generator-for-google/templates/xsl/tables/video-sitemap.php
- > /wp-content/plugins/xml-sitemap-generator-for-google/templates/xsl/tables/sitemap-index.php
- 45× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/xml-sitemap-generator-for-google/templates/fields/select.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/xml-sitemap-generator-for-google/templates/fields/radio.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/xml-sitemap-generator-for-google/templates/sections/general/general-settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/xml-sitemap-generator-for-google/templates/fields/checkbox.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/xml-sitemap-generator-for-google/templates/sections/google-news/stock-tickers.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/xml-sitemap-generator-for-google/templates/sections/advanced/cache.php:15
- > PHP Fatal error
Uncaught Error: Class 'GRIM_SG\\Vendor\\Controller' not found in wp-content/plugins/xml-sitemap-generator-for-google/includes/Notices.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/xml-sitemap-generator-for-google/templates/sections/google-news/general-settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/xml-sitemap-generator-for-google/templates/fields/content.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/xml-sitemap-generator-for-google/templates/sections/media-sitemaps/image-sitemap.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: You are using too many tags: 16 tag instead of maximum 10
xml-sitemap-generator-for-google/xml-sitemap-generator-for-google.php 92% from 13 tests
"Dynamic XML Sitemaps Generator for Google" version 1.7.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 172 characters long)
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
No dangerous file extensions were detected4,198 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 58 | 605 | 395 | 3,752 |
CSS | 1 | 31 | 18 | 284 |
JavaScript | 3 | 38 | 12 | 162 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 20.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 20 | 19.23% |
▷ Public methods | 102 | 98.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.92% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.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
No PNG files were detected