Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/ps-auto-sitemap-for-widget/psas-widget.php+14
Function create_function() is deprecated
Server metrics [RAM: ▼2.53MB] [CPU: ▼348.55ms] Passed 4 tests
An overview of server-side resources used by PS AUTO SITEMAP for Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.84 ▼1.68 | 4.90 ▼45.00 |
Dashboard /wp-admin | 1.86 ▼1.55 | 4.00 ▼29.65 |
Posts /wp-admin/edit.php | 1.86 ▼1.78 | 4.17 ▼55.71 |
Add New Post /wp-admin/post-new.php | 1.86 ▼5.11 | 4.05 ▼1,263.85 |
Media Library /wp-admin/upload.php | 1.86 ▼1.44 | 3.83 ▼20.86 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_psas_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for PS AUTO SITEMAP for Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲39 | 16.08 ▲0.33 | 6.62 ▲0.35 | 2.40 ▲0.20 |
Dashboard /wp-admin | 2,888 ▲34 | 6.38 ▲0.07 | 116.22 ▼16.35 | 155.56 ▼11.13 |
Posts /wp-admin/edit.php | 2,688 ▼3 | 3.42 ▼0.13 | 60.25 ▼3.46 | 139.89 ▼9.23 |
Add New Post /wp-admin/post-new.php | 1,752 ▼2 | 21.32 ▼0.05 | 427.30 ▼51.03 | 147.79 ▼10.55 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.72 ▲0.01 | 139.18 ▼12.38 | 182.95 ▼13.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/ps-auto-sitemap-for-widget/psas-widget.php+14
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 1 option
- widget_psas_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | 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× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ps-auto-sitemap-for-widget/psas-widget.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
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: sitemap, ps auto sitemap, widget
ps-auto-sitemap-for-widget/psas-widget.php 85% from 13 tests
Analyzing the main PHP file in "PS AUTO SITEMAP for Widget" version 0.1
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ps-auto-sitemap-for-widget.php" instead of "psas-widget.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected93 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 14 | 67 |
PO File | 1 | 7 | 11 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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 | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin