Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲2.58ms] Passed 4 tests
This is a short check of server-side resources used by Interactive US Map - Create Сlickable & Customizable U.S. Maps
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.80 ▲1.94 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.39 ▼0.80 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 54.16 ▲9.48 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 105.18 ▲12.08 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.54 ▼0.29 |
Detailed settings /wp-admin/admin.php?page=freeusregions-html5-map-states | 3.48 | 38.81 |
Map Preview /wp-admin/admin.php?page=freeusregions-html5-map-view | 3.30 | 35.75 |
Maps /wp-admin/admin.php?page=freeusregions-html5-map-maps | 3.32 | 33.38 |
General Settings /wp-admin/admin.php?page=freeusregions-html5-map-options | 3.52 | 38.19 |
Tools /wp-admin/admin.php?page=freeusregions-html5-map-tools | 3.39 | 35.10 |
Server storage [IO: ▲0.38MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Interactive US Map - Create Сlickable & Customizable U.S. Maps: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲211 | 13.64 ▼0.65 | 5.71 ▲4.08 | 43.53 ▲3.39 |
Dashboard /wp-admin | 2,255 ▲64 | 4.92 ▼0.98 | 109.53 ▲3.16 | 43.16 ▼3.62 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.04 ▲0.03 | 39.44 ▲3.98 | 35.26 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,564 ▲30 | 18.22 ▼5.11 | 617.19 ▼65.14 | 49.66 ▼0.19 |
Media Library /wp-admin/upload.php | 1,437 ▲49 | 4.22 ▲0.02 | 96.42 ▼1.84 | 41.86 ▼0.12 |
Detailed settings /wp-admin/admin.php?page=freeusregions-html5-map-states | 977 | 2.66 | 32.40 | 27.87 |
Map Preview /wp-admin/admin.php?page=freeusregions-html5-map-view | 1,063 | 4.77 | 78.78 | 48.69 |
Maps /wp-admin/admin.php?page=freeusregions-html5-map-maps | 1,096 | 1.79 | 24.63 | 25.29 |
General Settings /wp-admin/admin.php?page=freeusregions-html5-map-options | 2,291 | 7.09 | 158.61 | 120.15 |
Tools /wp-admin/admin.php?page=freeusregions-html5-map-tools | 1,101 | 1.81 | 26.38 | 31.76 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function freeusregions_html5map_plugin_get_options() in wp-content/plugins/interactive-map-of-the-us-regions/editstatesconfig.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function freeusregions_html5map_plugin_get_options() in wp-content/plugins/interactive-map-of-the-us-regions/maptools.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function freeusregions_html5map_plugin_get_options() in wp-content/plugins/interactive-map-of-the-us-regions/mapslist.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function freeusregions_html5map_plugin_get_options() in wp-content/plugins/interactive-map-of-the-us-regions/editmainconfig.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/interactive-map-of-the-us-regions/bulkconfig.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/interactive-map-of-the-us-regions/usahtmlmap.php:14
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
interactive-map-of-the-us-regions/usahtmlmap.php 77% from 13 tests
Analyzing the main PHP file in "Interactive US Map - Create Сlickable & Customizable U.S. Maps" version 3.2.0
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("interactive-map-of-the-us-regions.php" instead of "usahtmlmap.php")
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
There were no executable files found in this plugin5,986 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 594 | 131 | 2,724 |
PHP | 6 | 587 | 36 | 2,691 |
CSS | 3 | 71 | 11 | 478 |
JSON | 2 | 0 | 0 | 93 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/html5maps_img.png | 27.05KB | 25.61KB | ▼ 5.31% |