Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.10MB] [CPU: ▲9.16ms] Passed 4 tests
Server-side resources used by Sitemap by click5
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.57 ▲1.11 | 54.27 ▲10.66 |
Dashboard /wp-admin | 4.42 ▲1.07 | 60.94 ▼4.52 |
Posts /wp-admin/edit.php | 4.46 ▲1.11 | 63.18 ▲15.97 |
Add New Post /wp-admin/post-new.php | 7.01 ▲1.12 | 119.12 ▲14.51 |
Media Library /wp-admin/upload.php | 4.36 ▲1.13 | 58.72 ▲17.11 |
Server storage [IO: ▲2.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 19 new options
New WordPress options |
---|
click5_sitemap_order_list3 |
click5_sitemap_custom_sorting |
click5_sitemap_order_list2 |
click5_sitemap_html_blog_sort_by |
click5_sitemap_seo_auto |
click5_sitemap_blacklisted_array |
click5_sitemap_first_load |
widget_recent-comments |
auto_update_plugins |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Sitemap by click5
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲60 | 13.20 ▼1.28 | 1.87 ▼0.08 | 43.40 ▼2.25 |
Dashboard /wp-admin | 2,237 ▲43 | 5.91 ▲0.06 | 108.27 ▲1.15 | 37.56 ▼0.18 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.04 ▲0.00 | 35.02 ▼2.42 | 33.55 ▼4.43 |
Add New Post /wp-admin/post-new.php | 1,539 ▲8 | 17.57 ▼5.90 | 642.72 ▼28.08 | 45.83 ▼19.57 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.23 ▲0.04 | 106.11 ▼9.43 | 49.25 ▲0.75 |
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 19 options in the database
- click5_sitemap_first_load
- widget_recent-posts
- widget_theysaidso_widget
- click5_sitemap_robots_exist
- auto_update_plugins
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- click5_sitemap_html_blog_order_by
- click5_sitemap_seo_blacklisted_array
- ...
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 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
Almost there! Just fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sitemap-by-click5/api.php:1102
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sitemap-by-click5/sitemap-by-click5.php on line 16
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/sitemap-by-click5/sitemap-by-click5.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sitemap-by-click5/api.php:1102
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/sitemap-by-click5/sitemap-by-click5.php on line 16
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
6 plugin tags: sitemap, xml sitemap, google sitemap, html sitemap, click5...
sitemap-by-click5/sitemap-by-click5.php Passed 13 tests
The principal PHP file in "Sitemap by click5" v. 1.0.42 is loaded by WordPress automatically on each request
60 characters long description:
Generate and customize HTML & XML sitemaps for your website.
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
There were no executable files found in this plugin10,421 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 1,318 | 1,066 | 5,508 |
JavaScript | 7 | 619 | 135 | 2,918 |
PO File | 6 | 450 | 450 | 1,088 |
CSS | 5 | 123 | 11 | 632 |
XSLT | 2 | 8 | 0 | 275 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 98.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 171.00 |
Average method complexity | 7.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 127 | |
▷ Named functions | 103 | 81.10% |
▷ Anonymous functions | 24 | 18.90% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 1.49MB with 0.84MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 73.41KB | 41.56KB | ▼ 43.38% |
assets/screenshot-1.png | 394.38KB | 146.60KB | ▼ 62.83% |
assets/banner-772x250.png | 54.31KB | 23.81KB | ▼ 56.16% |
assets/baner-v01c.png | 83.68KB | 33.21KB | ▼ 60.31% |
assets/banner-300x515-sitemap-plugin.png | 142.17KB | 59.35KB | ▼ 58.25% |