Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼3.09ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Simple HTML Sitemap
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 41.17 ▼2.99 |
Dashboard /wp-admin | 3.54 ▲0.23 | 48.32 ▲1.20 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 47.52 ▼0.28 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 83.01 ▼10.30 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 38.97 ▲6.50 |
Documentation /wp-admin/admin.php?page=wshs_documentation | 3.42 | 32.02 |
Posts /wp-admin/admin.php?page=wshs_post_list | 3.43 | 31.96 |
Pages /wp-admin/admin.php?page=wshs_page_list | 3.43 | 26.68 |
Saved Shortcodes /wp-admin/admin.php?page=wshs_saved | 3.43 | 31.84 |
Server storage [IO: ▲3.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 34 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wshs_saved_code |
New WordPress options |
---|
db_upgraded |
wshs_db_version |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
WordPress Simple HTML Sitemap: 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,836 ▲74 | 14.23 ▼0.03 | 1.66 ▼0.09 | 45.22 ▼0.00 |
Dashboard /wp-admin | 2,229 ▲49 | 5.60 ▼0.04 | 93.19 ▼7.40 | 72.95 ▲27.10 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.02 ▼0.01 | 36.38 ▼2.62 | 33.81 ▼3.54 |
Add New Post /wp-admin/post-new.php | 1,564 ▲29 | 23.24 ▲4.73 | 716.53 ▲5.39 | 45.05 ▼28.95 |
Media Library /wp-admin/upload.php | 1,443 ▲40 | 4.14 ▼0.08 | 99.16 ▲0.48 | 72.94 ▲31.12 |
Documentation /wp-admin/admin.php?page=wshs_documentation | 1,233 | 1.85 | 29.74 | 38.42 |
Posts /wp-admin/admin.php?page=wshs_post_list | 1,286 | 2.09 | 24.93 | 31.79 |
Pages /wp-admin/admin.php?page=wshs_page_list | 1,328 | 2.04 | 25.58 | 28.93 |
Saved Shortcodes /wp-admin/admin.php?page=wshs_saved | 1,011 | 2.18 | 29.25 | 31.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_wshs_saved_code
- Zombie WordPress options detected upon uninstall: 7 options
- wshs_db_version
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-simple-html-sitemap/inc/wshs_sidebar.php
- > /wp-content/plugins/wp-simple-html-sitemap/wordpress_simple_html_sitemap.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-simple-html-sitemap/inc/wshs_saved.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-simple-html-sitemap/inc/wshs_admin_view.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-simple-html-sitemap/inc/wshs_front_view.php:150
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-simple-html-sitemap/inc/wshs_saved.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-simple-html-sitemap/inc/wshs_saved.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: post and pages sitemap, simple html sitemap, wordpress sitemap, wordpress html sitemap shortcode, wordpress html sitemap plugin
wp-simple-html-sitemap/wordpress_simple_html_sitemap.php 92% from 13 tests
The principal PHP file in "WordPress Simple HTML Sitemap" v. 2.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-simple-html-sitemap.php" instead of "wordpress_simple_html_sitemap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,984 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 110 | 136 | 1,317 |
JavaScript | 2 | 96 | 73 | 832 |
CSS | 3 | 123 | 16 | 817 |
SVG | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 26 | |
▷ Named functions | 25 | 96.15% |
▷ Anonymous functions | 1 | 3.85% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/fancybox_overlay.png | 0.98KB | 0.09KB | ▼ 90.43% |
images/sitemap-icon.png | 0.53KB | 0.54KB | 0.00% |
images/fancybox_sprite@2x.png | 6.40KB | 5.76KB | ▼ 9.96% |
images/fancybox_sprite.png | 1.33KB | 1.42KB | 0.00% |
images/sitemap.png | 1.27KB | 0.58KB | ▼ 54.60% |