Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.53MB] [CPU: ▲1.50ms] Passed 4 tests
This is a short check of server-side resources used by MapView for Bing Maps
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 45.05 ▼0.29 |
Dashboard /wp-admin | 3.83 ▲0.53 | 53.84 ▲2.13 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 55.59 ▲4.84 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 104.46 ▼0.69 |
Media Library /wp-admin/upload.php | 3.76 ▲0.53 | 48.50 ▲14.64 |
Settings /wp-admin/admin.php?page=bingmaps_settings | 4.42 | 50.17 |
Overview /wp-admin/admin.php?page=bingmaps_adminmenu | 4.16 | 43.49 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_sessions |
wp_mjslibOptions |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for MapView for Bing Maps
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.31 ▼1.06 | 1.57 ▼0.37 | 43.34 ▼0.65 |
Dashboard /wp-admin | 2,238 ▲47 | 5.86 ▲0.99 | 97.69 ▼8.02 | 78.22 ▲33.50 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 1.97 ▼0.07 | 38.93 ▲4.23 | 36.37 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,695 ▲162 | 22.35 ▼0.87 | 674.60 ▼14.74 | 46.77 ▼13.01 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.25 ▲0.01 | 104.06 ▼0.98 | 73.23 ▲28.04 |
Settings /wp-admin/admin.php?page=bingmaps_settings | 1,010 | 2.04 | 30.84 | 24.78 |
Overview /wp-admin/admin.php?page=bingmaps_adminmenu | 901 | 2.05 | 26.86 | 28.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_mjslibOptions
- wp_sessions
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 29× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant BINGMAPSLIB_INCLUDE_PATH - assumed 'BINGMAPSLIB_INCLUDE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bingmaps/include/bingmapslib_dbase_api.php on line 23
- > PHP Warning
include(): Failed opening 'BINGMAPSLIB_INCLUDE_PATHbingmapslib_admin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/bingmaps/include/bingmapslib_debug.php on line 23
- > PHP Warning
include(BINGMAPSLIB_INCLUDE_PATHbingmapslib_table.php): failed to open stream: No such file or directory in wp-content/plugins/bingmaps/include/bingmapslib_adminlist.php on line 23
- > PHP Warning
Use of undefined constant BINGMAPS_INCLUDE_PATH - assumed 'BINGMAPS_INCLUDE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bingmaps/admin/bingmaps_manage_overview.php on line 23
- > PHP Fatal error
Uncaught Error: Class 'BingMapsLibTableClass' not found in wp-content/plugins/bingmaps/include/bingmapslib_adminlist.php:27
- > PHP Warning
Use of undefined constant BINGMAPS_INCLUDE_PATH - assumed 'BINGMAPS_INCLUDE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bingmaps/admin/bingmaps_manage_settings.php on line 24
- > PHP Warning
include(): Failed opening 'BINGMAPSLIB_INCLUDE_PATHbingmapslib_table.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/bingmaps/include/bingmapslib_debug.php on line 24
- > PHP Warning
include(BINGMAPS_INCLUDE_PATHbingmapslib_admin.php): failed to open stream: No such file or directory in wp-content/plugins/bingmaps/admin/bingmaps_manage_settings.php on line 24
- > PHP Warning
include(BINGMAPSLIB_INCLUDE_PATHbingmapslib_admin.php): failed to open stream: No such file or directory in wp-content/plugins/bingmaps/include/bingmapslib_debug.php on line 23
- > PHP Warning
include(): Failed opening 'BINGMAPS_INCLUDE_PATHbingmapslib_adminlist.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/bingmaps/admin/bingmaps_manage_overview.php on line 23
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bingmaps_adminmenu
- > Network (severe)
wp-content/plugins/bingmaps/admin/images/salesman16grey.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: bing, walking, ordnance survey, maps, pages...
bingmaps/bingmaps.php Passed 13 tests
This is the main PHP file of "MapView for Bing Maps" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
48 characters long description:
Adds a map to a web page using the Bing Maps API
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin5,802 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 1,424 | 503 | 5,791 |
CSS | 1 | 10 | 20 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 42.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 241.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 366 | |
▷ Static methods | 89 | 24.32% |
▷ Public methods | 364 | 99.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.55% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 127 | |
▷ Global constants | 50 | 39.37% |
▷ Class constants | 77 | 60.63% |
▷ Public constants | 77 | 100.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/poi_red.png | 27.76KB | 0.89KB | ▼ 96.79% |
images/poi_orange.png | 0.63KB | 0.65KB | 0.00% |
images/poi_blue.png | 1.29KB | 1.19KB | ▼ 7.65% |