Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/mapsian/mapsian.php+31
Use of undefined constant PLUGINSURL - assumed 'PLUGINSURL' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.85MB] [CPU: ▼193.20ms] Passed 4 tests
Analyzing server-side resources used by Mapsian
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.78 ▼0.94 | 5.22 ▼15.69 |
Dashboard /wp-admin | 1.80 ▼1.25 | 9.32 ▼36.33 |
Posts /wp-admin/edit.php | 1.80 ▼1.31 | 5.24 ▼46.94 |
Add New Post /wp-admin/post-new.php | 1.80 ▼3.63 | 5.13 ▼659.54 |
Media Library /wp-admin/upload.php | 1.80 ▼1.20 | 4.77 ▼29.99 |
Document /wp-admin/edit.php?post_type=maps&page=m_about | 1.80 | 5.24 |
Add new map /wp-admin/post-new.php?post_type=maps | 1.80 | 4.82 |
Locations /wp-admin/edit.php?post_type=locations | 1.80 | 6.66 |
Maps /wp-admin/edit.php?post_type=maps | 1.80 | 6.30 |
Setting /wp-admin/edit.php?post_type=maps&page=m_setting | 1.80 | 5.68 |
Groups /wp-admin/edit-tags.php?taxonomy=mapsian_group&post_type=locations | 1.80 | 5.44 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mapsian
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,898 ▲251 | 17.37 ▲1.68 | 17.21 ▲7.80 | 46.00 ▼1.91 |
Dashboard /wp-admin | 3,025 ▲91 | 7.16 ▲1.12 | 144.50 ▼15.11 | 123.49 ▲15.00 |
Posts /wp-admin/edit.php | 2,821 ▲82 | 2.89 ▲0.18 | 80.72 ▲7.66 | 88.77 ▲3.49 |
Add New Post /wp-admin/post-new.php | 1,662 ▲47 | 21.84 ▲0.36 | 302.52 ▼8.65 | 120.03 ▲19.89 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.86 ▲0.86 | 147.59 ▼12.35 | 157.16 ▲33.98 |
Document /wp-admin/edit.php?post_type=maps&page=m_about | 1,166 | 2.91 | 55.34 | 64.46 |
Add new map /wp-admin/post-new.php?post_type=maps | 2,460 | 3.80 | 94.45 | 132.90 |
Locations /wp-admin/edit.php?post_type=locations | 1,506 | 2.93 | 69.65 | 72.65 |
Maps /wp-admin/edit.php?post_type=maps | 1,501 | 2.82 | 72.48 | 71.29 |
Setting /wp-admin/edit.php?post_type=maps&page=m_setting | 1,457 | 2.93 | 76.49 | 74.85 |
Groups /wp-admin/edit-tags.php?taxonomy=mapsian_group&post_type=locations | 1,823 | 2.73 | 62.68 | 79.37 |
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
Please fix the following items
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/mapsian/mapsian.php+31
Use of undefined constant PLUGINSURL - assumed 'PLUGINSURL' (this will throw an Error in a future version of PHP)
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=mapsian_group&post_type=locations
- > Warning in wp-content/plugins/mapsian/mapsian.php+31
Use of undefined constant PLUGINSURL - assumed 'PLUGINSURL' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/post-new.php?post_type=maps
- > Notice in wp-content/plugins/mapsian/mapsian.php+67
Undefined index: ID
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=maps
- > Notice in wp-content/plugins/mapsian/core/admin/setup-meta-maps.php+182
Trying to access array offset on value of type bool
- > GET request to /wp-admin/post-new.php?post_type=maps
- > Notice in wp-content/plugins/mapsian/core/admin/setup-meta-maps.php+200
Undefined variable: only_selected
- > GET request to /wp-admin/post-new.php?post_type=maps
- > Notice in wp-content/plugins/mapsian/core/admin/setup-meta-maps.php+201
Undefined variable: maplist_selected
- > GET request to /wp-admin/post-new.php?post_type=maps
- > Notice in wp-content/plugins/mapsian/core/admin/setup-meta-maps.php+209
Undefined variable: grid_selected
- > GET request to /wp-admin/post-new.php?post_type=maps
- > Notice in wp-content/plugins/mapsian/core/admin/setup-meta-maps.php+210
Undefined variable: column_selected
- > GET request to /wp-admin/post-new.php?post_type=maps
- > Notice in wp-content/plugins/mapsian/core/admin/setup-meta-maps.php+218
Undefined variable: one_selected
- > GET request to /wp-admin/post-new.php?post_type=maps
- > Notice in wp-content/plugins/mapsian/core/admin/setup-meta-maps.php+219
Undefined variable: two_selected
- > GET request to /wp-admin/post-new.php?post_type=maps
- > Notice in wp-content/plugins/mapsian/core/admin/setup-meta-maps.php+220
Undefined variable: three_selected
- > GET request to /wp-admin/post-new.php?post_type=maps
- > Notice in wp-content/plugins/mapsian/core/admin/setup-meta-maps.php+221
Undefined variable: four_selected
- > GET request to /wp-admin/post-new.php?post_type=maps
- > Notice in wp-content/plugins/mapsian/core/admin/setup-meta-maps.php+222
Undefined variable: five_selected
- > GET request to /wp-admin/post-new.php?post_type=maps
- > Notice in wp-content/plugins/mapsian/core/admin/setup-meta-maps.php+227
Undefined variable: social_share
- > GET request to /wp-admin/post-new.php?post_type=maps
- > Notice in wp-content/plugins/mapsian/core/admin/setup-meta-maps.php+230
Undefined variable: display_selected
- > GET request to /wp-admin/post-new.php?post_type=maps
- > Notice in wp-content/plugins/mapsian/core/admin/setup-meta-maps.php+231
Undefined variable: hide_selected
- > GET request to /wp-admin/post-new.php?post_type=maps
- > Notice in wp-content/plugins/mapsian/core/admin/setup-meta-maps.php+73
Undefined variable: group_value
- > GET request to /wp-admin/edit.php?post_type=maps&page=m_setting
- > Notice in wp-content/plugins/mapsian/includes/mapsian-general-settings.php+8
Undefined index: api_key
- > GET request to /wp-admin/edit.php?post_type=maps&page=m_setting
- > Notice in wp-content/plugins/mapsian/includes/mapsian-general-settings.php+9
Undefined index: action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=maps&page=m_setting
- > Notice in wp-content/plugins/mapsian/includes/mapsian-general-settings.php+25
Undefined index: language
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mapsian/includes/mapsian-location-view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mapsian/templates/single-map.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mapsian/core/admin/setup-style.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mapsian/includes/mapsian-map-view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mapsian/ajax/ajaxs.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mapsian/mapsian.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mapsian/core/admin/setup-meta-maps.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mapsian/core/admin/setup-custom-post.php:5
- > PHP Warning
Use of undefined constant PLUGINSURL - assumed 'PLUGINSURL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mapsian/mapsian.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mapsian/functions/mapsian-functions.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=mapsian_group&post_type=locations
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 24 tag instead of maximum 10
mapsian/mapsian.php 92% from 13 tests
"Mapsian" version 1.4.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 340 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin3,033 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 379 | 89 | 1,267 |
CSS | 3 | 358 | 114 | 905 |
JavaScript | 4 | 234 | 20 | 551 |
PO File | 3 | 126 | 252 | 310 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
19 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mapsian_icon_remove.png | 0.85KB | 0.60KB | ▼ 28.77% |
images/mapsian_icon_remove3.png | 2.05KB | 1.51KB | ▼ 26.24% |
images/mapsian_icon_preview2.png | 2.93KB | 1.92KB | ▼ 34.36% |
images/mapsian_admin_icon_enable.png | 3.80KB | 2.21KB | ▼ 41.78% |
images/mapsian_icon_statusoff.png | 0.88KB | 1.08KB | 0.00% |