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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.92ms] Passed 4 tests
Server-side resources used by Geo Maps - Map Block & Shortcode that support custom marker, tooltip & tooltip title
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.10 ▼0.08 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.70 ▼3.03 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.95 ▼1.94 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.31 | 93.72 ▼3.90 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 31.69 ▼2.80 |
All Maps /wp-admin/edit.php?post_type=geo-maps | 3.32 | 34.25 |
Add New /wp-admin/post-new.php?post_type=geo-maps | 3.45 | 52.63 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 73 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
geo_maps_version |
theysaidso_admin_options |
geo_maps_first_install_time |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Geo Maps - Map Block & Shortcode that support custom marker, tooltip & tooltip title
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲230 | 14.80 ▲0.42 | 19.20 ▲17.44 | 38.58 ▼2.65 |
Dashboard /wp-admin | 2,230 ▲42 | 5.81 ▲0.93 | 99.41 ▼4.65 | 38.86 ▼3.78 |
Posts /wp-admin/edit.php | 2,113 ▲21 | 2.06 ▲0.03 | 33.35 ▼22.73 | 34.90 ▼15.81 |
Add New Post /wp-admin/post-new.php | 6,216 ▲4,674 | 19.25 ▲0.89 | 864.17 ▲250.20 | 36.07 ▼14.22 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.11 ▼0.11 | 94.54 ▼2.51 | 42.72 ▲1.29 |
All Maps /wp-admin/edit.php?post_type=geo-maps | 1,013 | 1.96 | 31.77 | 31.06 |
Add New /wp-admin/post-new.php?post_type=geo-maps | 2,124 | 5.28 | 79.31 | 103.22 |
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 8 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- geo_maps_version
- db_upgraded
- can_compress_scripts
- geo_maps_first_install_time
- widget_recent-posts
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'MatrixAddons\\GeoMaps\\Admin\\Fields\\Base' not found in wp-content/plugins/geo-maps/includes/Admin/Fields/GeneralSettings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/geo-maps/includes/Admin/Templates/Metabox/Settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'MatrixAddons\\GeoMaps\\Admin\\Fields\\Base' not found in wp-content/plugins/geo-maps/includes/Admin/Fields/OSMProviderFields.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/geo-maps/includes/Admin/Templates/Metabox/Map.php:2
- > PHP Fatal error
Uncaught Error: Class 'MatrixAddons\\GeoMaps\\Admin\\Fields\\Base' not found in wp-content/plugins/geo-maps/includes/Admin/Fields/MarkerFields.php:5
- > PHP Fatal error
Uncaught Error: Class 'MatrixAddons\\GeoMaps\\Admin\\Fields\\Base' not found in wp-content/plugins/geo-maps/includes/Admin/Fields/MapTypeFields.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: google maps, world map, maps, map block, openstreet map
geo-maps/geo-maps.php Passed 13 tests
The primary PHP file in "Geo Maps - Map Block & Shortcode that support custom marker, tooltip & tooltip title" version 1.0.13 is used by WordPress to initiate all plugin functionality
50 characters long description:
Google Map and OpenStreet Map plugin for WordPress
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
No dangerous file extensions were detected5,512 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 734 | 422 | 2,297 |
JavaScript | 8 | 109 | 58 | 1,652 |
CSS | 3 | 196 | 29 | 867 |
Sass | 1 | 138 | 0 | 691 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 7.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 1 | 2.94% |
▷ Concrete classes | 33 | 97.06% |
▷ Final classes | 1 | 3.03% |
Methods | 151 | |
▷ Static methods | 61 | 40.40% |
▷ Public methods | 142 | 94.04% |
▷ Protected methods | 3 | 1.99% |
▷ Private methods | 6 | 3.97% |
Functions | 15 | |
▷ Named functions | 12 | 80.00% |
▷ Anonymous functions | 3 | 20.00% |
Constants | 11 | |
▷ Global constants | 9 | 81.82% |
▷ Class constants | 2 | 18.18% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 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 |
assets/images/marker-shadow.png | 0.60KB | 1.16KB | 0.00% |
assets/images/upload-image.png | 2.57KB | 1.94KB | ▼ 24.52% |
assets/images/marker-icon.png | 1.65KB | 0.90KB | ▼ 45.57% |
assets/images/map.png | 3.93KB | 3.62KB | ▼ 7.76% |
assets/images/layers.png | 0.68KB | 1.05KB | 0.00% |