Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼141.47ms] Passed 4 tests
Server-side resources used by Simple Hierarchical Sitemap
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.69 ▲11.11 |
Dashboard /wp-admin | 3.07 ▲0.02 | 39.24 ▲2.36 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 41.92 ▼5.62 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 83.86 ▼564.27 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 33.49 ▲1.65 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Hierarchical Sitemap
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.83 ▲0.33 | 6.94 ▼0.96 | 52.26 ▲4.06 |
Dashboard /wp-admin | 2,973 ▲39 | 5.90 ▼0.03 | 130.47 ▼14.97 | 106.57 ▼9.81 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.01 | 64.98 ▼0.23 | 89.50 ▲4.89 |
Add New Post /wp-admin/post-new.php | 1,500 ▼2,187 | 18.57 ▼2.20 | 356.59 ▼63.50 | 117.22 ▲13.19 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.01 ▼0.04 | 155.85 ▲8.46 | 113.54 ▼9.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-hierarchical-sitemap/simple-hierarchical-sitemap.php:13
- > 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
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: posts list, posts, pages list, sitemap, seo...
simple-hierarchical-sitemap/simple-hierarchical-sitemap.php 92% from 13 tests
The primary PHP file in "Simple Hierarchical Sitemap" version 1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
No dangerous file extensions were detected87 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 40 | 25 | 87 |
PHP code Passed 2 tests
Analyzing 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.16 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 2 | 40.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 60.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin