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: ▲1.07MB] [CPU: ▲6.77ms] Passed 4 tests
An overview of server-side resources used by WP Bing Map Pro
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.55 ▲1.08 | 51.47 ▲11.98 |
Dashboard /wp-admin | 4.38 ▲1.07 | 55.47 ▲8.52 |
Posts /wp-admin/edit.php | 4.43 ▲1.07 | 56.73 ▲10.44 |
Add New Post /wp-admin/post-new.php | 6.96 ▲1.07 | 107.69 ▼2.41 |
Media Library /wp-admin/upload.php | 4.30 ▲1.07 | 46.93 ▲10.54 |
WP Bing Map Pro /wp-admin/admin.php?page=BingMapPro_Plugin_Maps | 4.23 | 45.23 |
Shapes /wp-admin/admin.php?page=BingMapPro_Plugin_Shapes | 4.44 | 45.01 |
Permissions /wp-admin/admin.php?page=BingMapPro_Plugin_Permissions | 4.23 | 43.29 |
Pins /wp-admin/admin.php?page=BingMapPro_Plugin_Pins | 4.44 | 49.71 |
Settings /wp-admin/admin.php?page=BingMapPro_Plugin_Settings | 4.23 | 49.65 |
Server storage [IO: ▲5.62MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 852 new files
Database: 6 new tables, 8 new options
New tables |
---|
wp_bingmappro_map_shapes |
wp_bingmappro_pins |
wp_bingmappro_map_shortcodes |
wp_bingmappro_shapes |
wp_bingmappro_map_pins |
wp_bingmappro_maps |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
BingMapPro__installed |
widget_recent-posts |
widget_theysaidso_widget |
BingMapPro__version |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Bing Map Pro
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲206 | 14.43 ▼0.16 | 1.79 ▲0.03 | 38.23 ▼6.79 |
Dashboard /wp-admin | 2,343 ▲157 | 5.87 ▲0.95 | 102.12 ▼14.01 | 82.48 ▲37.22 |
Posts /wp-admin/edit.php | 2,241 ▲152 | 1.99 ▼0.02 | 40.43 ▲2.75 | 35.40 ▲1.88 |
Add New Post /wp-admin/post-new.php | 1,659 ▲145 | 17.48 ▼0.12 | 755.15 ▲76.84 | 61.60 ▲4.45 |
Media Library /wp-admin/upload.php | 1,543 ▲155 | 4.26 ▲0.03 | 104.21 ▲1.06 | 86.96 ▲42.82 |
WP Bing Map Pro /wp-admin/admin.php?page=BingMapPro_Plugin_Maps | 1,714 | 3.92 | 62.97 | 75.34 |
Shapes /wp-admin/admin.php?page=BingMapPro_Plugin_Shapes | 2,825 | 14.31 | 308.73 | 98.36 |
Permissions /wp-admin/admin.php?page=BingMapPro_Plugin_Permissions | 1,862 | 4.05 | 57.95 | 73.68 |
Pins /wp-admin/admin.php?page=BingMapPro_Plugin_Pins | 2,532 | 12.41 | 220.00 | 81.92 |
Settings /wp-admin/admin.php?page=BingMapPro_Plugin_Settings | 2,057 | 4.08 | 59.24 | 83.01 |
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 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 20× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/api-bing-map-2018/includes/BingMapPro_Config.php
- > /wp-content/plugins/api-bing-map-2018/includes/BingMapPro_InstallIndicator.php
- > /wp-content/plugins/api-bing-map-2018/includes/BingMapPro_Pins.php
- > /wp-content/plugins/api-bing-map-2018/includes/BingMapPro_Includes.php
- > /wp-content/plugins/api-bing-map-2018/includes/BingMapPro_MasterPins.php
- > /wp-content/plugins/api-bing-map-2018/includes/BingMapPro_ShortCodeLoader.php
- > /wp-content/plugins/api-bing-map-2018/wp-bing-map-pro.php
- > /wp-content/plugins/api-bing-map-2018/includes/BingMapPro_Permissions.php
- > /wp-content/plugins/api-bing-map-2018/includes/BingMapPro_LifeCycle.php
- > /wp-content/plugins/api-bing-map-2018/includes/BingMapPro_Shapes.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=BingMapPro_Plugin_Shapes
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=BingMapPro_Plugin_Shapes 283 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/admin.php?page=BingMapPro_Plugin_Shapes
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=BingMapPro_Plugin_Shapes 421 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/admin.php?page=BingMapPro_Plugin_Shapes
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=BingMapPro_Plugin_Shapes 569 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=BingMapPro_Plugin_Pins
- > Console-api (severe) in unknown
https://r.bing.com/rp/iJdNB5JyjS5pG1s-BLESPVZlXRE.br.js 0:202032 "The specified credentials are invalid. You can sign up for a free developer account at http://www.bingmapsportal.com"
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #3, #4, #5, #6, #7, #8, #9 in api-bing-map-2018/assets to your readme.txt
api-bing-map-2018/wp-bing-map-pro.php 85% from 13 tests
"WP Bing Map Pro" version 5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("api-bing-map-2018.php" instead of "wp-bing-map-pro.php")
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
Everything looks great! No dangerous files found in this plugin44,901 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 19 | 3,555 | 93 | 15,276 |
PO File | 20 | 4,940 | 6,915 | 11,412 |
SVG | 4 | 0 | 0 | 8,612 |
JavaScript | 14 | 1,229 | 199 | 4,831 |
PHP | 22 | 1,159 | 57 | 4,770 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 14.58 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 154.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 2 | 10.53% |
▷ Concrete classes | 17 | 89.47% |
▷ Final classes | 0 | 0.00% |
Methods | 187 | |
▷ Static methods | 20 | 10.70% |
▷ Public methods | 143 | 76.47% |
▷ Protected methods | 38 | 20.32% |
▷ Private methods | 6 | 3.21% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 1 | 12.50% |
▷ Class constants | 7 | 87.50% |
▷ Public constants | 7 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
730 PNG files occupy 0.80MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/custom-icons/caraccident.png | 0.87KB | 0.54KB | ▼ 37.36% |
images/icons/custom-icons/cruiseship.png | 0.74KB | 0.50KB | ▼ 31.56% |
images/icons/custom-icons/umbrella-2.png | 1.14KB | 0.86KB | ▼ 24.91% |
images/icons/custom-icons/kebab.png | 0.92KB | 0.65KB | ▼ 29.59% |
images/icons/custom-icons/japanese-sake.png | 1.00KB | 0.64KB | ▼ 35.65% |