Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼138.78ms] Passed 4 tests
Server-side resources used by Simple KML Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.07 ▲0.24 | 35.18 ▼3.76 |
Dashboard /wp-admin | 3.30 ▲0.25 | 43.12 ▲5.66 |
Posts /wp-admin/edit.php | 3.41 ▲0.31 | 48.60 ▲5.11 |
Add New Post /wp-admin/post-new.php | 5.66 ▲0.23 | 98.02 ▼556.59 |
Media Library /wp-admin/upload.php | 3.25 ▲0.24 | 32.70 ▲0.14 |
Simple KML Generator /wp-admin/admin.php?page=kml_generate-index | 3.31 | 29.68 |
Settings /wp-admin/admin.php?page=kml_generate-settings | 3.21 | 30.05 |
Create KML List /wp-admin/admin.php?page=kml_generate-add | 3.56 | 33.99 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 457 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_wkg_kml_cache |
wp_wkg_kml_list |
wp_wkg_kml_index |
New WordPress options |
---|
wkg_enable_cache |
wkg_rm_cache_size |
wkg_show_support |
wkg_cache_time |
widget_wkg_show_list |
widget_wkg_dl_link |
Browser metrics Passed 4 tests
Checking browser requirements for Simple KML Generator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,743 ▲147 | 15.91 ▲0.43 | 9.10 ▼0.56 | 47.18 ▼6.55 |
Dashboard /wp-admin | 3,000 ▲66 | 5.96 ▲0.02 | 140.19 ▼10.95 | 131.36 ▲9.59 |
Posts /wp-admin/edit.php | 2,794 ▲55 | 2.71 ▼0.01 | 65.29 ▼0.96 | 92.49 ▼2.73 |
Add New Post /wp-admin/post-new.php | 1,642 ▼28 | 21.78 ▲2.63 | 284.62 ▼95.25 | 104.02 ▼9.12 |
Media Library /wp-admin/upload.php | 1,791 ▼16 | 5.00 ▲0.01 | 132.25 ▼15.03 | 130.64 ▲6.96 |
Simple KML Generator /wp-admin/admin.php?page=kml_generate-index | 1,085 | 2.11 | 51.16 | 65.51 |
Settings /wp-admin/admin.php?page=kml_generate-settings | 1,197 | 2.09 | 57.40 | 70.06 |
Create KML List /wp-admin/admin.php?page=kml_generate-add | 3,920 | 6.63 | 141.71 | 290.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 2 options in the database
- widget_wkg_show_list
- widget_wkg_dl_link
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=kml_generate-index
- > Deprecated in wp-content/plugins/simple-kml-generator/functions/pagination.class.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; pagination has a deprecated constructor
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-kml-generator/functions/shortcodes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-kml-generator/functions/constants.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-kml-generator/functions/widgets.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-kml-generator/functions/constants.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-kml-generator/functions/constants.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-kml-generator/functions/admin-functions.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=kml_generate-add
- > Network (severe)
http://maps.googleapis.com/maps/api/mapsjs/gen_204?csp_test=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: google earth, map, kml, location, google maps...
simple-kml-generator/wp-kml-generator.php 92% from 13 tests
The main file in "Simple KML Generator" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-kml-generator.php" instead of "wp-kml-generator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,017 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 364 | 81 | 1,394 |
JavaScript | 4 | 84 | 29 | 330 |
CSS | 3 | 31 | 8 | 276 |
Markdown | 1 | 4 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.35% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 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
438 PNG files occupy 0.53MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icons/3-default.png | 6.80KB | 0.97KB | ▼ 85.67% |
img/icons/sumo-2.png | 1.16KB | 0.68KB | ▼ 41.86% |
img/icons/foodtruck.png | 0.95KB | 0.58KB | ▼ 38.52% |
img/icons/candy.png | 1.46KB | 1.02KB | ▼ 30.19% |
img/icons/lingerie.png | 1.26KB | 0.72KB | ▼ 42.89% |