Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼1.84MB] [CPU: ▼52.67ms] Passed 4 tests
A check of server-side resources used by SALT Map
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 6.28 ▼32.85 |
Dashboard /wp-admin | 2.17 ▼1.13 | 8.29 ▼47.97 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 7.26 ▼39.27 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 7.44 ▼90.57 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 6.44 ▼30.87 |
Locations /wp-admin/edit.php?post_type=salt_map_location | 2.17 | 7.59 |
Add New /wp-admin/post-new.php?post_type=salt_map_location | 2.17 | 7.83 |
Map Settings /wp-admin/options-general.php?page=test-setting-admin | 2.17 | 6.85 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
SALT Map: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲234 | 14.44 ▲0.16 | 29.34 ▲27.53 | 36.72 ▼8.30 |
Dashboard /wp-admin | 2,226 ▲49 | 5.63 ▼0.02 | 91.44 ▼7.57 | 42.93 ▼3.34 |
Posts /wp-admin/edit.php | 2,131 ▲34 | 2.00 ▲0.01 | 36.46 ▲0.82 | 34.11 ▼0.22 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.22 ▲0.24 | 682.96 ▲31.92 | 54.00 ▲0.66 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.17 ▲0.00 | 94.11 ▼10.11 | 43.89 ▼4.11 |
Locations /wp-admin/edit.php?post_type=salt_map_location | 1,101 | 1.94 | 30.74 | 30.69 |
Add New /wp-admin/post-new.php?post_type=salt_map_location | 2,237 | 7.74 | 177.39 | 63.21 |
Map Settings /wp-admin/options-general.php?page=test-setting-admin | 1,198 | 3.15 | 37.46 | 29.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the salt_map_page_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=test-setting-admin
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the salt_map_page_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=test-setting-admin
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the salt_map_markerclusterer_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=test-setting-admin
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the salt_map_mustache_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=test-setting-admin
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the salt_map_google_map handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=test-setting-admin
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the salt_map_page_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=test-setting-admin
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the salt_map_smoothness_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/post-new.php?post_type=salt_map_location
- > Notice in wp-content/plugins/salt-map/salt_map_locations.php+60
Undefined index: plib_meta_box_nonce
- > GET request to /wp-admin/options-general.php?page=test-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=test-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 13 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=test-setting-admin
- > Notice in wp-content/plugins/salt-map/salt_map_settings.php+86
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/salt-map/salt_map_plugin.php:14
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6, #7 in salt-map/assets to your readme.txt
salt-map/salt_map_plugin.php 92% from 13 tests
The main PHP file in "SALT Map" ver. 1.4.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("salt-map.php" instead of "salt_map_plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,182 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 119 | 76 | 641 |
PHP | 5 | 52 | 6 | 384 |
PO File | 1 | 31 | 65 | 81 |
CSS | 3 | 15 | 5 | 55 |
HTML | 1 | 2 | 0 | 18 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 11.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jquery/css/smoothness/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
images/salt_location_cluster_3.png | 7.63KB | 2.73KB | ▼ 64.26% |
jquery/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
jquery/css/smoothness/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
jquery/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |