Benchmarks
Plugin footprint Passed 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.01MB] [CPU: ▼295.66ms] Passed 4 tests
Server-side resources used by Simple Site Map Page
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 56.66 ▼4.01 |
Dashboard /wp-admin | 3.42 ▲0.01 | 40.71 ▲4.88 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 44.03 ▲3.24 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 95.93 ▼1,186.75 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 32.10 ▲5.69 |
Menus /wp-admin/nav-menus.php | 3.31 | 57.82 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Simple Site Map Page
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 14.69 ▼1.26 | 6.78 ▲0.69 | 2.38 ▼0.35 |
Dashboard /wp-admin | 2,894 ▲40 | 6.03 ▼0.07 | 112.34 ▼22.40 | 152.66 ▼10.39 |
Posts /wp-admin/edit.php | 2,696 ▲5 | 3.24 ▲0.01 | 68.12 ▲4.21 | 144.09 ▼64.13 |
Add New Post /wp-admin/post-new.php | 1,664 ▼109 | 16.25 ▼5.56 | 404.22 ▼36.31 | 168.07 ▼15.87 |
Media Library /wp-admin/upload.php | 1,700 ▲8 | 5.50 ▼0.04 | 132.70 ▼12.34 | 185.93 ▲1.95 |
Menus /wp-admin/nav-menus.php | 2,663 | 3.89 | 109.03 | 151.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-site-map-page/public/ssmp-public.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-site-map-page/admin/ssmp-admin.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
These attributes need your attention:
- Screenshots: Screenshot #3 (Your site map appears under the page's main content.) image required
simple-site-map-page/ssmp.php 92% from 13 tests
The main file in "Simple Site Map Page" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("simple-site-map-page.php" instead of "ssmp.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
Good job! No executable or dangerous file extensions detected99 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 15 | 72 | 99 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 45.77KB | 12.24KB | ▼ 73.26% |
assets/icon-256x256.png | 8.48KB | 3.12KB | ▼ 63.25% |
assets/icon-128x128.png | 5.68KB | 2.03KB | ▼ 64.28% |
assets/screenshot-2.png | 123.08KB | 35.14KB | ▼ 71.45% |
assets/banner-1544x500.png | 33.02KB | 13.04KB | ▼ 60.51% |