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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.23MB] [CPU: ▲3.73ms] Passed 4 tests
A check of server-side resources used by Interactive World Map
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 39.40 ▲3.60 |
Dashboard /wp-admin | 3.53 ▲0.23 | 47.74 ▲0.66 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 52.02 ▲6.71 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 95.76 ▲4.59 |
Media Library /wp-admin/upload.php | 3.45 ▲0.23 | 38.97 ▲6.08 |
Detailed settings /wp-admin/admin.php?page=freeworld-html5-map-states | 3.68 | 40.74 |
General Settings /wp-admin/admin.php?page=freeworld-html5-map-options | 3.71 | 44.78 |
Tools /wp-admin/admin.php?page=freeworld-html5-map-tools | 3.52 | 36.30 |
Maps /wp-admin/admin.php?page=freeworld-html5-map-maps | 3.48 | 50.82 |
Map Preview /wp-admin/admin.php?page=freeworld-html5-map-view | 3.58 | 36.66 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Interactive World Map
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲186 | 13.57 ▼0.81 | 5.23 ▲3.36 | 39.88 ▼1.40 |
Dashboard /wp-admin | 2,252 ▲69 | 5.05 ▼0.01 | 105.81 ▲1.69 | 39.80 ▲0.93 |
Posts /wp-admin/edit.php | 2,141 ▲52 | 2.17 ▲0.17 | 40.55 ▲7.00 | 33.40 ▼4.40 |
Add New Post /wp-admin/post-new.php | 1,555 ▲41 | 17.65 ▲0.04 | 654.51 ▼28.37 | 57.95 ▲4.38 |
Media Library /wp-admin/upload.php | 1,440 ▲52 | 4.20 ▲0.00 | 98.75 ▲2.69 | 42.24 ▼2.79 |
Detailed settings /wp-admin/admin.php?page=freeworld-html5-map-states | 967 | 2.63 | 33.40 | 25.74 |
General Settings /wp-admin/admin.php?page=freeworld-html5-map-options | 2,291 | 7.03 | 136.93 | 115.41 |
Tools /wp-admin/admin.php?page=freeworld-html5-map-tools | 1,107 | 1.82 | 25.23 | 28.93 |
Maps /wp-admin/admin.php?page=freeworld-html5-map-maps | 1,096 | 1.79 | 25.57 | 36.58 |
Map Preview /wp-admin/admin.php?page=freeworld-html5-map-view | 1,021 | 5.48 | 90.32 | 47.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/interactive-world-map/freeworldcontinentmap.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function freeworld_html5map_plugin_get_options() in wp-content/plugins/interactive-world-map/maptools.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/interactive-world-map/bulkconfig.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function freeworld_html5map_plugin_get_options() in wp-content/plugins/interactive-world-map/editstatesconfig.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function freeworld_html5map_plugin_get_options() in wp-content/plugins/interactive-world-map/editmainconfig.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function freeworld_html5map_plugin_get_options() in wp-content/plugins/interactive-world-map/mapslist.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
interactive-world-map/freeworldcontinentmap.php 85% from 13 tests
The main PHP file in "Interactive World Map" ver. 3.2.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("interactive-world-map.php" instead of "freeworldcontinentmap.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin5,973 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 594 | 131 | 2,724 |
PHP | 6 | 588 | 36 | 2,698 |
CSS | 3 | 71 | 11 | 478 |
JSON | 2 | 0 | 0 | 73 |
PHP code Passed 2 tests
This is a very shot review of 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
Using a strong compression for your PNG files is a great way to speed-up 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.72KB | 26.12KB | ▼ 5.76% |