Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼10.32ms] Passed 4 tests
This is a short check of server-side resources used by Simple Mapbox Data
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 36.73 ▼2.73 |
Dashboard /wp-admin | 3.45 ▲0.10 | 45.88 ▼13.22 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 49.86 ▲2.61 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 85.21 ▼27.92 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 39.13 ▲7.58 |
All Map Data Points /wp-admin/edit.php?post_type=map_data_point | 3.42 | 38.19 |
Add New /wp-admin/post-new.php?post_type=map_data_point | 5.71 | 70.31 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=map_data_point | 3.36 | 35.15 |
Simple Mapbox Data /wp-admin/options-general.php?page=simple-mapbox-data | 3.38 | 31.09 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=map_data_point | 3.36 | 37.90 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
category_children |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Mapbox Data
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲183 | 13.97 ▼0.54 | 5.23 ▲3.42 | 37.86 ▼4.70 |
Dashboard /wp-admin | 2,246 ▲58 | 4.89 ▲0.01 | 101.48 ▼3.21 | 38.12 ▼2.22 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.04 ▲0.05 | 40.96 ▼1.07 | 35.21 ▼0.91 |
Add New Post /wp-admin/post-new.php | 1,559 ▲40 | 18.34 ▼4.85 | 640.33 ▲41.28 | 50.76 ▼1.54 |
Media Library /wp-admin/upload.php | 1,425 ▲43 | 4.23 ▲0.07 | 96.55 ▲0.26 | 41.07 ▼0.84 |
All Map Data Points /wp-admin/edit.php?post_type=map_data_point | 1,159 | 1.94 | 34.32 | 30.37 |
Add New /wp-admin/post-new.php?post_type=map_data_point | 6,300 | 22.94 | 903.75 | 39.45 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=map_data_point | 1,350 | 2.15 | 26.43 | 30.48 |
Simple Mapbox Data /wp-admin/options-general.php?page=simple-mapbox-data | 1,173 | 1.71 | 24.68 | 28.30 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=map_data_point | 1,489 | 2.16 | 28.40 | 30.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- category_children
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)
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=map_data_point
- > Notice in wp-content/plugins/simple-mapbox-data/admin/class-simple-mapbox-data-admin.php+184
Trying to access array offset on value of type bool
- > GET request to /wp-admin/post-new.php?post_type=map_data_point
- > Warning in wp-content/plugins/simple-mapbox-data/admin/class-simple-mapbox-data-admin.php+186
Invalid argument supplied for foreach()
- > GET request to /wp-admin/options-general.php?page=simple-mapbox-data
- > Notice in wp-content/plugins/simple-mapbox-data/admin/partials/simple-mapbox-data-options-display.php+47
Undefined variable: mapbox_account_username
- > GET request to /wp-admin/options-general.php?page=simple-mapbox-data
- > Notice in wp-content/plugins/simple-mapbox-data/admin/partials/simple-mapbox-data-options-display.php+55
Undefined variable: mapbox_access_token
- > GET request to /wp-admin/options-general.php?page=simple-mapbox-data
- > Notice in wp-content/plugins/simple-mapbox-data/admin/partials/simple-mapbox-data-options-display.php+63
Undefined variable: mapbox_dataset_id
- > GET request to /wp-admin/options-general.php?page=simple-mapbox-data
- > Notice in wp-content/plugins/simple-mapbox-data/admin/partials/simple-mapbox-data-options-display.php+71
Undefined variable: mapbox_tileset_id
- > GET request to /wp-admin/options-general.php?page=simple-mapbox-data
- > Notice in wp-content/plugins/simple-mapbox-data/admin/partials/simple-mapbox-data-options-display.php+93
Undefined variable: smd_custom_field_0
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple-mapbox-data
- > Notice in wp-content/plugins/simple-mapbox-data/admin/partials/simple-mapbox-data-options-display.php+99
Undefined variable: smd_custom_field_0_type
- > GET request to /wp-admin/options-general.php?page=simple-mapbox-data
- > Notice in wp-content/plugins/simple-mapbox-data/admin/partials/simple-mapbox-data-options-display.php+93
Undefined variable: smd_custom_field_1
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple-mapbox-data
- > Notice in wp-content/plugins/simple-mapbox-data/admin/partials/simple-mapbox-data-options-display.php+99
Undefined variable: smd_custom_field_1_type
- > GET request to /wp-admin/options-general.php?page=simple-mapbox-data
- > Notice in wp-content/plugins/simple-mapbox-data/admin/partials/simple-mapbox-data-options-display.php+93
Undefined variable: smd_custom_field_2
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple-mapbox-data
- > Notice in wp-content/plugins/simple-mapbox-data/admin/partials/simple-mapbox-data-options-display.php+99
Undefined variable: smd_custom_field_2_type
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/simple-mapbox-data/public/partials/simple-mapbox-data-public-display.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/simple-mapbox-data/admin/partials/simple-mapbox-data-options-display.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/simple-mapbox-data/tests/test-sample.php:11
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/simple-mapbox-data/tests/bootstrap.php on line 14
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-mapbox-data/tests/bootstrap.php on line 14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-mapbox-data/admin/partials/simple-mapbox-data-admin-display.php:18
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid url: "raquelmsmith.com"
simple-mapbox-data/simple-mapbox-data.php Passed 13 tests
The main PHP file in "Simple Mapbox Data" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Manage your Mapbox data from right within your WordPress installation.
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 plugin975 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 188 | 585 | 731 |
Bourne Shell | 1 | 21 | 7 | 99 |
JavaScript | 2 | 7 | 0 | 78 |
CSS | 2 | 12 | 8 | 42 |
XML | 2 | 4 | 2 | 25 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.38MB with 0.27MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/simple-mapbox-data-settings-page.png | 304.63KB | 87.10KB | ▼ 71.41% |
assets/simple-mapbox-data-meta-box.png | 80.58KB | 20.68KB | ▼ 74.33% |