Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼7.80ms] Passed 4 tests
An overview of server-side resources used by WP Map Block - Gutenberg Map Block for Google Map and OpenStreet Map
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.69 ▲1.97 |
Dashboard /wp-admin | 3.42 ▲0.08 | 49.88 ▼16.87 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 49.93 ▼5.89 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 95.77 ▼10.41 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 38.04 ▲4.27 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wp_map_block_version |
can_compress_scripts |
widget_recent-posts |
wp_map_block_first_install_time |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Map Block - Gutenberg Map Block for Google Map and OpenStreet Map
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.28 ▲0.31 | 1.87 ▼0.56 | 45.28 ▲0.33 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▲0.07 | 84.87 ▼7.43 | 42.68 ▲3.01 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.03 ▲0.01 | 44.70 ▲6.81 | 37.52 ▲1.44 |
Add New Post /wp-admin/post-new.php | 6,199 ▲4,668 | 19.40 ▼3.68 | 979.09 ▲301.97 | 56.15 ▼3.03 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.18 | 98.29 ▼7.48 | 48.07 ▲2.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- wp_map_block_first_install_time
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- wp_map_block_version
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
wp-map-block/wp-map-block.php Passed 13 tests
The principal PHP file in "WP Map Block - Gutenberg Map Block for Google Map and OpenStreet Map" v. 1.4.8 is loaded by WordPress automatically on each request
74 characters long description:
Gutenberg Map Block for Google Map and OpenStreet Map build with LeafletJS
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin878 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 255 | 189 | 848 |
SVG | 1 | 0 | 0 | 17 |
CSS | 2 | 0 | 0 | 6 |
JSON | 1 | 0 | 0 | 5 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 11.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 61 | |
▷ Static methods | 23 | 37.70% |
▷ Public methods | 57 | 93.44% |
▷ Protected methods | 2 | 3.28% |
▷ Private methods | 2 | 3.28% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/images/fullscreen.f2c17d21.png | 0.29KB | 0.14KB | ▼ 52.51% |
assets/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
assets/dist/images/layers-2x.8f2c4d11.png | 1.23KB | 1.67KB | 0.00% |
assets/dist/images/marker-icon.2b3e1faf.png | 1.43KB | 1.55KB | 0.00% |
assets/images/map.png | 3.93KB | 3.62KB | ▼ 7.76% |