Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.09ms] Passed 4 tests
An overview of server-side resources used by WP Sitemap Control
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.12 ▲1.20 |
Dashboard /wp-admin | 3.40 ▲0.10 | 49.96 ▼0.19 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 44.16 ▼1.06 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 82.73 ▼8.31 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.54 ▲6.24 |
Sitemap /wp-admin/options-general.php?page=wpsmc_index | 3.35 | 35.46 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 18 new options
New WordPress options |
---|
widget_recent-comments |
wpsmc_post_type_page |
wpsmc_lastmod |
can_compress_scripts |
wpsmc_post_type_attachment |
wpsmc_taxonomy_post_format |
wpsmc_single_page |
widget_theysaidso_widget |
wpsmc_users |
wpsmc_single_post |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Sitemap Control
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲17 | 14.77 ▼0.06 | 1.90 ▲0.14 | 43.13 ▼3.94 |
Dashboard /wp-admin | 2,207 ▲1 | 5.85 ▲0.06 | 114.18 ▲16.79 | 43.46 ▲5.37 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.00 | 34.92 ▲0.45 | 31.73 ▼4.41 |
Add New Post /wp-admin/post-new.php | 1,539 ▲22 | 23.42 ▲5.50 | 684.25 ▲6.91 | 55.51 ▼8.36 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.13 ▼0.10 | 98.95 ▼0.76 | 47.60 ▲1.78 |
Sitemap /wp-admin/options-general.php?page=wpsmc_index | 1,449 | 2.93 | 78.34 | 55.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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)
Good news, no errors were detected
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
Please fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/wp-sitemap-control/includes/iworks/rate/rate.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/wp-sitemap-control/includes/iworks/rate/templates/widgets/support.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/wp-sitemap-control/includes/iworks/rate/templates/widgets/donate.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-sitemap-control/includes/iworks/rate/templates/thanks.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4 in wp-sitemap-control/assets to your readme.txt
wp-sitemap-control/wp-sitemap-control.php 85% from 13 tests
The entry point to "WP Sitemap Control" version 1.0.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("5.5" instead of "5.0")
- Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "7.2")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,154 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 175 | 716 | 2,418 |
JavaScript | 7 | 51 | 93 | 380 |
CSS | 6 | 19 | 9 | 155 |
Sass | 1 | 8 | 0 | 138 |
SVG | 2 | 1 | 1 | 63 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 192)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 117.50 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 388.00 |
Average method complexity | 5.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 192.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 112 | |
▷ Static methods | 1 | 0.89% |
▷ Public methods | 73 | 65.18% |
▷ Protected methods | 6 | 5.36% |
▷ Private methods | 33 | 29.46% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/iworks/options/assets/styles/images/ui-icons_cc0000_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
includes/iworks/options/assets/styles/images/ui-icons_ffffff_256x240.png | 6.33KB | 4.18KB | ▼ 33.99% |
includes/iworks/options/assets/styles/images/ui-icons_777620_256x240.png | 4.51KB | 4.18KB | ▼ 7.28% |
includes/iworks/options/assets/styles/images/ui-icons_777777_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
includes/iworks/options/assets/styles/images/ui-icons_444444_256x240.png | 6.92KB | 4.18KB | ▼ 39.61% |