Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▲0.27ms] Passed 4 tests
An overview of server-side resources used by XML Sitemap & Google News
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 42.97 ▲3.48 |
Dashboard /wp-admin | 3.77 ▲0.46 | 54.31 ▼2.38 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 56.60 ▲3.26 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 93.37 ▼3.27 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 45.31 ▲8.06 |
XML Sitemap /wp-admin/options-general.php?page=xmlsf | 3.65 | 40.21 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 107 new files
Database: no new tables, 16 new options
New WordPress options |
---|
xmlsf_urls |
xmlsf_post_types |
theysaidso_admin_options |
xmlsf_taxonomy_settings |
xmlsf_author_settings |
xmlsf_taxonomies |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
xmlsf_custom_sitemaps |
... |
Browser metrics Passed 4 tests
XML Sitemap & Google News: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.06 | 1.77 ▼0.07 | 44.53 ▲4.30 |
Dashboard /wp-admin | 2,196 ▲19 | 5.63 ▲0.04 | 87.64 ▼15.08 | 41.70 ▼2.27 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.05 | 36.07 ▼7.63 | 34.54 ▼2.46 |
Add New Post /wp-admin/post-new.php | 6,248 ▲4,711 | 26.17 ▲7.86 | 863.21 ▲187.09 | 63.49 ▼11.69 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.21 ▲0.04 | 101.20 ▲4.10 | 40.31 ▼0.64 |
XML Sitemap /wp-admin/options-general.php?page=xmlsf | 1,475 | 2.17 | 30.17 | 29.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- xmlsf_authors
- widget_theysaidso_widget
- db_upgraded
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/xml-sitemap-feed/views/_usage.php
- > /wp-content/plugins/xml-sitemap-feed/views/_generator.php
- 82× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant XMLSF_DIR - assumed 'XMLSF_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/xml-sitemap-feed/views/admin/page-sitemap.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/xml-sitemap-feed/views/admin/field-news-hierarchical.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/xml-sitemap-feed/views/admin/help-tab-news.php:2
- > PHP Fatal error
Uncaught Error: Class 'XMLSF_Admin' not found in wp-content/plugins/xml-sitemap-feed/controllers/class.xmlsf-admin-sitemap.php:3
- > PHP Warning
include(XMLSF_DIR/assets/admin.css): failed to open stream: No such file or directory in wp-content/plugins/xml-sitemap-feed/views/admin/page-sitemap-news.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/xml-sitemap-feed/views/admin/meta-box-news.php:3
- > PHP Notice
Trying to get property 'name' of non-object in wp-content/plugins/xml-sitemap-feed/views/admin/field-sitemap-post-type.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/xml-sitemap-feed/views/admin/notice-ad-insterter-feed.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/xml-sitemap-feed/views/admin/section-advanced-intro.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/xml-sitemap-feed/views/admin/notice-seoframework-sitemap.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
xml-sitemap-feed/xml-sitemap.php 69% from 13 tests
"XML Sitemap & Google News" version 5.3.6'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:
- Description: Please don't use more than 140 characters for the plugin description (currently 329 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("xml-sitemap-feed.php" instead of "xml-sitemap.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.4" instead of "4.6")
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.4" instead of "5.6")
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,729 lines of code in 102 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 89 | 996 | 1,529 | 4,164 |
XSLT | 12 | 0 | 0 | 546 |
CSS | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 29.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 20 | 20.20% |
▷ Public methods | 94 | 94.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.05% |
Functions | 82 | |
▷ Named functions | 61 | 74.39% |
▷ Anonymous functions | 21 | 25.61% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin