Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.22MB] [CPU: ▼3.32ms] Passed 4 tests
Analyzing server-side resources used by Interactive UK Map
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.24 | 46.20 ▲5.96 |
Dashboard /wp-admin | 3.57 ▲0.19 | 55.57 ▼8.02 |
Posts /wp-admin/edit.php | 3.69 ▲0.29 | 56.22 ▲2.07 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.23 | 92.03 ▼13.28 |
Media Library /wp-admin/upload.php | 3.50 ▲0.23 | 43.25 ▲6.46 |
Tools /wp-admin/admin.php?page=freeukregions-html5-map-tools | 3.56 | 42.45 |
Maps /wp-admin/admin.php?page=freeukregions-html5-map-maps | 3.52 | 43.09 |
Map Preview /wp-admin/admin.php?page=freeukregions-html5-map-view | 3.58 | 40.22 |
General Settings /wp-admin/admin.php?page=freeukregions-html5-map-options | 3.76 | 44.21 |
Detailed settings /wp-admin/admin.php?page=freeukregions-html5-map-states | 3.72 | 49.58 |
Server storage [IO: ▲0.45MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Interactive UK Map
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲135 | 13.40 ▼0.98 | 8.14 ▲6.16 | 42.38 ▼1.31 |
Dashboard /wp-admin | 2,247 ▲70 | 5.62 ▼0.04 | 89.38 ▼2.81 | 40.36 ▼1.17 |
Posts /wp-admin/edit.php | 2,149 ▲52 | 2.18 ▲0.16 | 39.61 ▲2.94 | 37.13 ▲1.60 |
Add New Post /wp-admin/post-new.php | 1,566 ▲38 | 23.43 ▲0.28 | 618.12 ▼93.88 | 52.47 ▼1.77 |
Media Library /wp-admin/upload.php | 1,449 ▲49 | 4.22 ▼0.02 | 103.83 ▲1.96 | 41.43 ▼1.49 |
Tools /wp-admin/admin.php?page=freeukregions-html5-map-tools | 1,112 | 1.75 | 27.04 | 31.02 |
Maps /wp-admin/admin.php?page=freeukregions-html5-map-maps | 1,108 | 1.74 | 26.07 | 30.15 |
Map Preview /wp-admin/admin.php?page=freeukregions-html5-map-view | 1,123 | 4.72 | 94.14 | 57.47 |
General Settings /wp-admin/admin.php?page=freeukregions-html5-map-options | 2,305 | 7.08 | 138.65 | 102.00 |
Detailed settings /wp-admin/admin.php?page=freeukregions-html5-map-states | 1,013 | 2.52 | 31.87 | 29.14 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function freeukregions_html5map_plugin_get_options() in wp-content/plugins/interactive-uk-map/maptools.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function freeukregions_html5map_plugin_get_options() in wp-content/plugins/interactive-uk-map/editstatesconfig.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function freeukregions_html5map_plugin_get_options() in wp-content/plugins/interactive-uk-map/mapslist.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function freeukregions_html5map_plugin_get_options() in wp-content/plugins/interactive-uk-map/editmainconfig.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/interactive-uk-map/freeukregionsmap.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/interactive-uk-map/bulkconfig.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: dealer map, svg map, html5 map, united kingdom, map...
interactive-uk-map/freeukregionsmap.php 77% from 13 tests
The main file in "Interactive UK Map" v. 3.1.9.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("interactive-uk-map.php" instead of "freeukregionsmap.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 143 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected6,028 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 594 | 131 | 2,724 |
PHP | 6 | 588 | 34 | 2,683 |
CSS | 3 | 71 | 11 | 478 |
JSON | 2 | 0 | 0 | 143 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 20.00% |
Functions | 56 | |
▷ Named functions | 56 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/html5maps_img.png | 83.61KB | 31.77KB | ▼ 62.00% |