Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.80MB] [CPU: ▼52.60ms] Passed 4 tests
Server-side resources used by Map My Posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.27 | 5.46 ▼36.50 |
Dashboard /wp-admin | 2.21 ▼1.09 | 6.08 ▼41.95 |
Posts /wp-admin/edit.php | 2.21 ▼1.15 | 6.42 ▼43.86 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.68 | 5.80 ▼88.10 |
Media Library /wp-admin/upload.php | 2.22 ▼1.00 | 6.34 ▼27.81 |
Map My Posts /wp-admin/options-general.php?page=map-my-posts | 2.22 | 6.01 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 14 new options
New WordPress options |
---|
mmp_post_tag_country_list |
mmp_settings |
widget_recent-posts |
db_upgraded |
widget_mapmypostswidgetgmap |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
mmp_category_marker_list |
widget_mapmypostswidgetgeochart |
... |
Browser metrics Passed 4 tests
Map My Posts: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 13.23 ▼1.35 | 1.66 ▼0.12 | 39.98 ▼2.46 |
Dashboard /wp-admin | 2,217 ▲29 | 5.85 ▲0.96 | 103.98 ▼6.49 | 41.24 ▼3.25 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.01 ▲0.04 | 39.51 ▲0.32 | 37.50 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 23.39 ▲5.86 | 589.68 ▼109.22 | 50.40 ▼11.97 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.24 ▲0.03 | 100.51 ▲1.58 | 43.94 ▼0.06 |
Map My Posts /wp-admin/options-general.php?page=map-my-posts | 1,963 | 5.33 | 159.22 | 39.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- The uninstall procedure has failed, leaving 14 options in the database
- db_upgraded
- widget_mapmypostswidgetgeochart
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- mmp_category_country_list
- mmp_post_tag_marker_list
- widget_recent-posts
- widget_recent-comments
- widget_mapmypostswidgetgmap
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=map-my-posts
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- > GET request to /wp-admin/options-general.php?page=map-my-posts
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in MapMyPostsWidgetStatic is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=map-my-posts
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in MapMyPostsWidgetGmap is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=map-my-posts
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in MapMyPostsWidgetGeochart is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=map-my-posts
- > Notice in wp-content/plugins/map-my-posts/inc/MapMyPostsAdmin.php+186
Undefined index: maptype
- > GET request to /wp-admin/options-general.php?page=map-my-posts
- > 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=map-my-posts
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=map-my-posts
- > Notice in wp-content/plugins/map-my-posts/views/admin-settings.php+33
Undefined index: api_key
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=map-my-posts
- > Notice in wp-content/plugins/map-my-posts/views/admin-settings.php+48
Undefined index: region
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 items
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant MAPMYPOSTS_URL - assumed 'MAPMYPOSTS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/map-my-posts/views/admin-settings.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/map-my-posts/inc/MapMyPostsWidgetGeochart.php:12
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/map-my-posts/views/gmap.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/map-my-posts/views/widget-form-gmap.php:13
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/map-my-posts/views/geochart.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/map-my-posts/views/admin-settings.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/map-my-posts/inc/MapMyPostsWidgetGmap.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/map-my-posts/inc/MapMyPostsWidgetStatic.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/map-my-posts/views/edit-terms.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/map-my-posts/views/widget-form-static.php:13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
map-my-posts/start.php 92% from 13 tests
"Map My Posts" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("map-my-posts.php" instead of "start.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
Everything looks great! No dangerous files found in this plugin2,850 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 167 | 624 | 1,815 |
PO File | 1 | 358 | 375 | 815 |
JavaScript | 2 | 17 | 15 | 205 |
CSS | 2 | 2 | 0 | 15 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 25.83 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 52 | |
▷ Static methods | 12 | 23.08% |
▷ Public methods | 50 | 96.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.85% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/atw_globe_32x32.png | 3.26KB | 1.70KB | ▼ 47.81% |