Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.68ms] Passed 4 tests
Server-side resources used by Map My Locations
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 34.19 ▼7.42 |
Dashboard /wp-admin | 3.37 ▲0.07 | 44.21 ▼3.72 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.68 ▲3.73 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 104.52 ▲5.34 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 36.58 ▲0.71 |
Locations /wp-admin/edit.php?post_type=mml_location | 3.34 | 36.81 |
Add New /wp-admin/post-new.php?post_type=mml_location | 3.42 | 46.31 |
Maps /wp-admin/admin.php?page=map-my-locations-maps | 3.29 | 35.98 |
Settings /wp-admin/admin.php?page=map-my-locations | 3.29 | 33.09 |
Server storage [IO: ▲1.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_mml_search_geodata |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
map_my_locations_options |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Map My Locations
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,991 ▲256 | 18.35 ▲3.72 | 34.39 ▲32.60 | 57.50 ▲8.08 |
Dashboard /wp-admin | 2,285 ▲93 | 6.97 ▲2.06 | 135.95 ▲21.55 | 41.63 ▲1.38 |
Posts /wp-admin/edit.php | 2,167 ▲78 | 3.62 ▲1.59 | 51.07 ▲11.99 | 34.35 ▲0.59 |
Add New Post /wp-admin/post-new.php | 1,737 ▲214 | 24.53 ▲0.86 | 594.62 ▼56.82 | 28.41 ▼15.72 |
Media Library /wp-admin/upload.php | 1,470 ▲82 | 6.10 ▲1.86 | 104.25 ▲2.20 | 40.37 ▼4.83 |
Locations /wp-admin/edit.php?post_type=mml_location | 1,134 | 3.59 | 59.41 | 28.05 |
Add New /wp-admin/post-new.php?post_type=mml_location | 2,077 | 8.40 | 185.99 | 66.41 |
Maps /wp-admin/admin.php?page=map-my-locations-maps | 980 | 3.30 | 38.37 | 27.14 |
Settings /wp-admin/admin.php?page=map-my-locations | 923 | 3.30 | 36.79 | 24.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_mml_search_geodata
- The uninstall procedure has failed, leaving 7 options in the database
- map_my_locations_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/map-my-locations/admin/class-map-my-locations-map-table.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/map-my-locations/admin/class-map-my-locations-map-table.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/map-my-locations/admin/class-map-my-locations-map-table.php on line 4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=mml_location
- > Javascript (severe) in unknown
/wp-content/plugins/map-my-locations/admin//js/admin.js?ver=1.1 1:11088 Uncaught Error: An API access token is required to use Mapbox GL. …api-documentation/#access-tokens-and-token-scopes
- > GET request to /wp-admin/post-new.php?post_type=mml_location
- > Rendering (warning) in unknown
/wp-admin/post-new.php?post_type=mml_location - [.WebGL-0x373000335400]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: google-maps, mapbox, maps
map-my-locations/map-my-locations.php Passed 13 tests
"Map My Locations" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
70 characters long description:
Show your locations as pins on a map, Works with Google Maps or Mapbox
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,117 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 336 | 448 | 906 |
CSS | 2 | 32 | 6 | 209 |
JavaScript | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 7 | 10.45% |
▷ Public methods | 57 | 85.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 14.93% |
Functions | 8 | |
▷ Named functions | 4 | 50.00% |
▷ Anonymous functions | 4 | 50.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin