Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼0.05ms] Passed 4 tests
This is a short check of server-side resources used by WP MapIt
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 35.44 ▼2.07 |
Dashboard /wp-admin | 3.46 ▲0.16 | 51.03 ▲5.27 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 53.42 ▲11.11 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 87.81 ▼6.27 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 35.92 ▲2.88 |
Settings /wp-admin/admin.php?page=wp_mapit | 3.29 | 37.68 |
Multipin Map /wp-admin/edit.php?post_type=wp_mapit_map | 3.43 | 39.51 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_wp_mapit_contextual_map_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP MapIt: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,085 ▲324 | 16.18 ▲1.83 | 8.90 ▲7.29 | 38.31 ▼6.10 |
Dashboard /wp-admin | 2,385 ▲208 | 7.09 ▲1.50 | 122.87 ▲34.08 | 41.76 ▲1.96 |
Posts /wp-admin/edit.php | 2,313 ▲210 | 3.93 ▲1.93 | 58.46 ▲24.11 | 34.77 ▲0.73 |
Add New Post /wp-admin/post-new.php | 6,243 ▲4,717 | 19.44 ▼4.10 | 936.66 ▲290.50 | 41.04 ▼14.33 |
Media Library /wp-admin/upload.php | 1,453 ▲56 | 5.16 ▲0.97 | 99.56 ▼3.20 | 45.97 ▲3.36 |
Settings /wp-admin/admin.php?page=wp_mapit | 1,373 | 3.97 | 52.19 | 87.21 |
Multipin Map /wp-admin/edit.php?post_type=wp_mapit_map | 1,285 | 3.81 | 48.72 | 29.20 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_wp_mapit_contextual_map_widget
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-mapit/wp_mapit.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-mapit/wp_mapit/classes/class.wp_mapit_the_content.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mapit/wp_mapit/classes/class.wp_mapit_admin_settings.php:60
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mapit/wp_mapit/classes/class.wp_mapit_widget.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mapit/wp_mapit/classes/class.wp_mapit_gutenberg_block.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mapit/wp_mapit/classes/class.wp_mapit_post_type.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-mapit/wp_mapit/classes/class.wp_mapit_contextual_map_widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mapit/wp_mapit/classes/class.wp_mapit_scripts.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mapit/wp_mapit/classes/class.wp_mapit_admin_ajax.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-mapit/wp_mapit/classes/class.wp_mapit_shortcode.php:19
- > PHP Fatal error
Uncaught Error: Class 'wp_mapit_admin_settings' not found in wp-content/plugins/wp-mapit/wp_mapit/classes/class.wp_mapit_metabox.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please describe screenshot #12 in wp-mapit/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
wp-mapit/wp_mapit.php 85% from 13 tests
The main PHP script in "WP MapIt" version 2.7.1 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: Use only dashes and lowercase characters for the domain path ("wp_mapit/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-mapit.php" instead of "wp_mapit.php")
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
Everything looks great! No dangerous files found in this plugin4,046 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 429 | 146 | 1,724 |
PHP | 17 | 240 | 799 | 1,285 |
CSS | 7 | 168 | 56 | 1,037 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 13.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 68 | 86.08% |
▷ Public methods | 76 | 96.20% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.80% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
10 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wp_mapit/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
wp_mapit/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
wp_mapit/images/map-pin.png | 1.41KB | 0.95KB | ▼ 32.60% |
wp_mapit/images/search.png | 0.77KB | 0.84KB | 0.00% |
wp_mapit/images/remove-pin.png | 3.16KB | 0.69KB | ▼ 78.17% |