Benchmarks
Plugin footprint 83% 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.03MB] [CPU: ▼0.44ms] Passed 4 tests
This is a short check of server-side resources used by Map Block Leaflet
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.41 ▼1.85 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.78 ▲0.01 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.53 ▲1.56 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.96 ▼1.47 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.08 ▲2.59 |
Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Map Block Leaflet: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 14.48 ▲0.10 | 1.85 ▲0.22 | 38.75 ▼2.58 |
Dashboard /wp-admin | 2,206 ▲51 | 5.79 ▲0.08 | 94.21 ▼5.47 | 38.46 ▼4.42 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▲0.01 | 39.36 ▼1.73 | 35.67 ▼4.03 |
Add New Post /wp-admin/post-new.php | 6,370 ▲4,837 | 29.21 ▲5.85 | 841.37 ▲193.65 | 36.27 ▼22.42 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.17 ▼0.07 | 97.22 ▼14.14 | 42.86 ▼3.14 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/map-block-leaflet/build/multi-marker/render.php
- > /wp-content/plugins/map-block-leaflet/build/leaflet-map-block/render.php
- 32× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/map-block-leaflet/build/multi-marker/render.php on line 27
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/map-block-leaflet/build/multi-marker/render.php on line 32
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/map-block-leaflet/build/leaflet-map-block/render.php on line 3
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/map-block-leaflet/build/multi-marker/render.php on line 32
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/map-block-leaflet/build/leaflet-map-block/render.php on line 18
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/map-block-leaflet/build/multi-marker/render.php on line 16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/map-block-leaflet/build/leaflet-map-block/render.php on line 18
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/map-block-leaflet/build/leaflet-map-block/render.php on line 29
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/map-block-leaflet/build/leaflet-map-block/render.php on line 26
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/map-block-leaflet/build/leaflet-map-block/render.php on line 32
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: leaflet, editor, map, gutenberg, blocks
map-block-leaflet/map-block-leaflet.php Passed 13 tests
The primary PHP file in "Map Block Leaflet" version 3.1.1 is used by WordPress to initiate all plugin functionality
117 characters long description:
Map Block Leaflet -- Allows embed maps in your contents, good alternative to Google Maps without the need for api key
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected819 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 57 | 26 | 579 |
PHP | 5 | 28 | 19 | 122 |
JSON | 2 | 0 | 0 | 115 |
JavaScript | 3 | 0 | 5 | 3 |
PHP code Passed 2 tests
An short overview of 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.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
13 compressed PNG files occupy 0.72MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
build/images/stadia.b4151071.png | 34.65KB | 34.94KB | 0.00% |
build/images/watercolor.7c1973aa.png | 326.47KB | 331.94KB | 0.00% |
build/images/voyager.1f2bd421.png | 34.87KB | 35.15KB | 0.00% |
build/images/dark-matter.d6ff2fd3.png | 22.26KB | 22.24KB | 0.06% |