Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/rampit-world-map/admin/jsps_file_initialisation.php+307
Undefined variable: decoded_api_key
Server metrics [RAM: ▲0.61MB] [CPU: ▼131.48ms] Passed 4 tests
Server-side resources used by Rampit World Map
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.06 ▲0.34 | 36.94 ▲17.16 |
Dashboard /wp-admin | 3.80 ▲0.75 | 56.80 ▲18.09 |
Posts /wp-admin/edit.php | 3.85 ▲0.74 | 50.34 ▲5.31 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.67 | 95.04 ▼552.65 |
Media Library /wp-admin/upload.php | 3.68 ▲0.68 | 37.20 ▲4.27 |
Settings /wp-admin/admin.php?page=jsps_mapsetting | 3.63 | 30.41 |
Manage template /wp-admin/admin.php?page=jsps_managetemplate | 3.63 | 32.45 |
Add Location /wp-admin/admin.php?page=jsps_addlocation | 3.63 | 32.04 |
Dashboard /wp-admin/admin.php?page=rampit_world_map | 3.65 | 34.74 |
Manage Map /wp-admin/admin.php?page=jsps_managemap | 3.63 | 32.13 |
Manage Location /wp-admin/admin.php?page=jsps_managelocation | 3.63 | 30.18 |
Manage category /wp-admin/admin.php?page=jsps_managecategory | 3.63 | 29.72 |
Add Map /wp-admin/admin.php?page=jsps_addmap | 3.63 | 32.01 |
Add Template /wp-admin/admin.php?page=jsps_setting | 3.63 | 31.17 |
Add marker /wp-admin/admin.php?page=jsps_addmarker | 3.63 | 37.77 |
Server storage [IO: ▲1.26MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 139 new files
Database: 8 new tables, 1 new option
New tables |
---|
wp_jsps_template_skin |
wp_jsps_map_setting |
wp_jsps_settings |
wp_jsps_category |
wp_jsps_marker |
wp_jsps_category_detail_location |
wp_jsps_locations |
wp_jsps_map |
New WordPress options |
---|
jsps_map_location_info |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Rampit World Map
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,818 ▲223 | 17.24 ▲1.81 | 13.41 ▲3.21 | 48.16 ▲1.49 |
Dashboard /wp-admin | 3,064 ▲133 | 7.06 ▲1.14 | 136.77 ▼7.27 | 115.84 ▲2.10 |
Posts /wp-admin/edit.php | 2,827 ▲88 | 2.83 ▲0.11 | 72.54 ▲9.33 | 93.35 ▲10.93 |
Add New Post /wp-admin/post-new.php | 1,559 ▼317 | 18.90 ▼0.27 | 359.36 ▼17.52 | 145.69 ▲30.98 |
Media Library /wp-admin/upload.php | 1,898 ▲88 | 5.76 ▲0.71 | 130.13 ▼8.89 | 121.04 ▲6.72 |
Settings /wp-admin/admin.php?page=jsps_mapsetting | 1,200 | 2.98 | 67.47 | 88.35 |
Manage template /wp-admin/admin.php?page=jsps_managetemplate | 2,229 | 2.98 | 57.92 | 93.32 |
Add Location /wp-admin/admin.php?page=jsps_addlocation | 2,167 | 7.02 | 133.19 | 155.70 |
Dashboard /wp-admin/admin.php?page=rampit_world_map | 1,221 | 2.87 | 63.44 | 102.08 |
Manage Map /wp-admin/admin.php?page=jsps_managemap | 1,167 | 2.86 | 64.48 | 73.47 |
Manage Location /wp-admin/admin.php?page=jsps_managelocation | 1,190 | 2.86 | 65.01 | 76.35 |
Manage category /wp-admin/admin.php?page=jsps_managecategory | 1,162 | 2.86 | 68.04 | 65.81 |
Add Map /wp-admin/admin.php?page=jsps_addmap | 1,309 | 2.86 | 58.62 | 76.56 |
Add Template /wp-admin/admin.php?page=jsps_setting | 2,918 | 6.67 | 140.68 | 150.85 |
Add marker /wp-admin/admin.php?page=jsps_addmarker | 1,232 | 2.86 | 60.56 | 75.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=jsps_mapsetting
- > Notice in wp-content/plugins/rampit-world-map/admin/includes/jsps_settings_masters.php+61
Undefined index: setting_map_api
- > GET request to /wp-admin/admin.php?page=jsps_mapsetting
- > Notice in wp-content/plugins/rampit-world-map/admin/includes/jsps_settings_masters.php+78
Undefined index: jsps_location_info_page
- > GET request to /wp-admin/admin.php?page=jsps_mapsetting
- > Notice in wp-content/plugins/rampit-world-map/admin/includes/jsps_settings_masters.php+95
Undefined variable: jsps_setting_map_api
- > GET request to /wp-admin/admin.php?page=jsps_managetemplate
- > Notice in wp-content/plugins/rampit-world-map/admin/includes/jsps_template_masters.php+1621
Undefined index: Del_TemplateID
- > GET request to /wp-admin/admin.php?page=jsps_addlocation
- > Notice in wp-content/plugins/rampit-world-map/admin/includes/jsps_location_masters.php+58
Undefined index: Edit_LocationID
- > GET request to /wp-admin/admin.php?page=jsps_managemap
- > Notice in wp-content/plugins/rampit-world-map/admin/includes/jsps_map_masters.php+618
Undefined index: Del_MapID
- > GET request to /wp-admin/admin.php?page=jsps_managelocation
- > Notice in wp-content/plugins/rampit-world-map/admin/includes/jsps_location_masters.php+1271
Undefined index: Del_LocationID
- > GET request to /wp-admin/admin.php?page=jsps_managecategory
- > Notice in wp-content/plugins/rampit-world-map/admin/includes/jsps_category_masters.php+486
Undefined index: Del_Category
- > GET request to /wp-admin/admin.php?page=jsps_addmap
- > Notice in wp-content/plugins/rampit-world-map/admin/includes/jsps_map_masters.php+88
Undefined index: map_template_id
- > GET request to /wp-admin/admin.php?page=jsps_addmap
- > Notice in wp-content/plugins/rampit-world-map/admin/includes/jsps_map_masters.php+98
Undefined index: Edit_MapID
- 15 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jsps_addmap
- > Notice in wp-content/plugins/rampit-world-map/admin/includes/jsps_map_masters.php+257
Undefined variable: Update_Template_id
- > GET request to /wp-admin/admin.php?page=jsps_setting
- > Notice in wp-content/plugins/rampit-world-map/admin/includes/jsps_template_masters.php+53
Undefined index: Edit_TemplateID
- > GET request to /wp-admin/admin.php?page=jsps_setting
- > Notice in wp-content/plugins/rampit-world-map/admin/includes/jsps_template_masters.php+62
Undefined index: Copy_TemplateID
- > GET request to /wp-admin/admin.php?page=jsps_addmarker
- > Notice in wp-content/plugins/rampit-world-map/admin/includes/jsps_markers_masters.php+60
Undefined index: Edit_marker
- > GET request to /wp-admin/admin.php?page=jsps_addmarker
- > Notice in wp-content/plugins/rampit-world-map/admin/includes/jsps_markers_masters.php+70
Undefined index: Del_marker
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jsps_addmarker
- > 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)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jsps_setting
- > Console-api (severe) in unknown
http://maps.googleapis.com/maps/api/js?key&libraries=places&ver=1.0 82:375 "You are using this API without a key. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors"
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jsps_setting
- > Console-api (severe) in unknown
http://maps.googleapis.com/maps/api/js?key&libraries=places&ver=1.0 82:375 "InvalidValueError: invalid style feature type: "
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
10 plugin tags: wp maps, google maps, maps, custom map, custom google map...
rampit-world-map/rampit-world-map.php Passed 13 tests
The entry point to "Rampit World Map" version 0.1.2 is a PHP file that has certain tags in its header comment area
112 characters long description:
Rampit Map Plugin. Eazy to customize Map view, Manage locations with all inforamtion under different categories.
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
Success! There were no dangerous files found in this plugin6,372 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 1,587 | 651 | 4,431 |
CSS | 3 | 92 | 71 | 1,694 |
JavaScript | 2 | 49 | 3 | 247 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 65 | |
▷ Named functions | 65 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
98 compressed PNG files occupy 0.31MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/marker_default_icons/picnic.png | 1.01KB | 1.18KB | 0.00% |
images/marker_default_icons/flag.png | 1.01KB | 1.26KB | 0.00% |
images/marker_default_icons/restaurant.png | 0.93KB | 1.29KB | 0.00% |
css/images/ui-icons_ffffff_256x240.png | 6.17KB | 4.18KB | ▼ 32.17% |
images/marker_default_icons/bus.png | 1.35KB | 1.42KB | 0.00% |