Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.98ms] Passed 4 tests
Analyzing server-side resources used by Simple HTML Sitemap
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.48 ▲1.75 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.09 ▼16.66 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.90 ▼2.40 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.10 ▼7.96 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.45 ▼0.89 |
HTML Sitemap /wp-admin/options-general.php?page=html-sitemap | 3.26 | 32.03 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
dhswp_active_page |
theysaidso_admin_options |
widget_theysaidso_widget |
dhswp_sortorder |
dhswp_active_post |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Simple HTML Sitemap: 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,808 ▲51 | 13.25 ▼1.03 | 1.77 ▼0.45 | 43.31 ▼2.07 |
Dashboard /wp-admin | 2,214 ▲29 | 4.86 ▼0.11 | 107.40 ▼8.61 | 38.01 ▼5.46 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.22 ▲0.25 | 39.31 ▼3.42 | 36.40 ▲0.60 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 17.54 ▼5.72 | 668.93 ▼14.54 | 51.07 ▼6.46 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.24 ▲0.04 | 98.88 ▼7.45 | 42.13 ▼1.69 |
HTML Sitemap /wp-admin/options-general.php?page=html-sitemap | 1,014 | 1.96 | 28.09 | 28.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 9 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- dhswp_active_post
- theysaidso_admin_options
- dhswp_sortorder
- db_upgraded
- widget_recent-posts
- dhswp_active_page
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/display-html-sitemap/display-html-sitemap.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: settings, sitemap, html sitemap, custom post type, post type
display-html-sitemap/display-html-sitemap.php 92% from 13 tests
"Simple HTML Sitemap" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 226 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin413 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 126 | 130 | 301 |
CSS | 1 | 0 | 0 | 83 |
JavaScript | 1 | 12 | 0 | 29 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/drag.png | 0.15KB | 0.14KB | ▼ 5.23% |