Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼1.34MB] [CPU: ▼48.18ms] Passed 4 tests
A check of server-side resources used by Mapbox for WP Advanced
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.64 ▼0.82 | 8.15 ▼37.18 |
Dashboard /wp-admin | 2.66 ▼0.64 | 9.10 ▼37.93 |
Posts /wp-admin/edit.php | 2.66 ▼0.69 | 10.42 ▼35.72 |
Add New Post /wp-admin/post-new.php | 2.66 ▼3.22 | 8.08 ▼81.89 |
Media Library /wp-admin/upload.php | 2.66 ▼0.57 | 9.38 ▼24.49 |
Controls /wp-admin/admin.php?page=mapboxadv-controls | 2.66 | 9.09 |
Maps /wp-admin/admin.php?page=mapboxadv-maps | 2.66 | 9.91 |
General /wp-admin/admin.php?page=mapboxadv | 2.66 | 8.13 |
Add new /wp-admin/admin.php?page=mapboxadv-maps-form | 2.66 | 8.81 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_mapboxadv_maps |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
mapboxadv_db_version |
widget_recent-comments |
theysaidso_admin_options |
widget_mapboxadv |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mapbox for WP Advanced
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲135 | 15.22 ▲0.85 | 5.51 ▲3.21 | 40.14 ▼5.38 |
Dashboard /wp-admin | 2,250 ▲65 | 5.93 ▲0.08 | 117.03 ▼1.73 | 40.40 ▼8.66 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.62 ▲0.59 | 49.20 ▲13.49 | 36.34 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,549 ▲35 | 22.41 ▲4.90 | 726.11 ▲74.93 | 61.95 ▲9.75 |
Media Library /wp-admin/upload.php | 1,435 ▲50 | 5.18 ▲0.97 | 107.43 ▲6.99 | 43.90 ▲1.49 |
Controls /wp-admin/admin.php?page=mapboxadv-controls | 1,060 | 2.53 | 32.40 | 29.60 |
Maps /wp-admin/admin.php?page=mapboxadv-maps | 962 | 2.53 | 34.40 | 26.23 |
General /wp-admin/admin.php?page=mapboxadv | 1,053 | 2.49 | 33.40 | 29.41 |
Add new /wp-admin/admin.php?page=mapboxadv-maps-form | 1,666 | 7.44 | 136.69 | 65.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > 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 mapboxadvcss handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie tables were found after uninstall: 1 table
- wp_mapboxadv_maps
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_mapboxadv
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- mapboxadv_db_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mapboxadv-maps-form
- > 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 mapboxadvcss 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/admin.php?page=mapboxadv-maps-form
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_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 mapboxadvcss 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/admin.php?page=mapboxadv-maps-form
- > User notice in wp-includes/functions.php+5905
Function wp_add_inline_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 mapboxadvcss 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/admin.php?page=mapboxadv-maps-form
- > 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 mapboxjs 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/admin.php?page=mapboxadv-maps-form
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_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 mapboxjs 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/admin.php?page=mapboxadv-maps-form
- > 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 mapboxcss 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/admin.php?page=mapboxadv-maps-form
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_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 mapboxcss handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mapboxadv-maps-form
- > Notice in wp-content/plugins/mapbox-for-wp-advanced/mapboxmaps.php+67
Undefined variable: mapboxadv_db_version
- > GET request to /wp-admin/admin.php?page=mapboxadv-maps-form
- > Notice in wp-content/plugins/mapbox-for-wp-advanced/mapboxmaps.php+152
Undefined index: nonce
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 take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mapbox-for-wp-advanced/shortcut.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mapbox-for-wp-advanced/default.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mapbox-for-wp-advanced/mapboxmaps.php:87
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mapbox-for-wp-advanced/mapboxwidgetadv.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mapbox-for-wp-advanced/mapboxadv.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Donate link: Invalid url: ""
mapbox-for-wp-advanced/mapboxadv.php 77% from 13 tests
Analyzing the main PHP file in "Mapbox for WP Advanced" version 1.0.0
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mapbox-for-wp-advanced.php" instead of "mapboxadv.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Make the plugin description longer than 10 characters (currently 0 characters long)
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
Everything looks great! No dangerous files found in this plugin2,413 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 279 | 267 | 1,574 |
JavaScript | 2 | 151 | 127 | 503 |
PO File | 1 | 159 | 834 | 335 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 1 | 1.06% |
▷ Public methods | 93 | 98.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.06% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin