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
Install script ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▲1.76ms] Passed 4 tests
An overview of server-side resources used by Interactive Australia Map
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 42.00 ▼0.18 |
Dashboard /wp-admin | 3.53 ▲0.23 | 52.79 ▲6.41 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 56.16 ▲8.94 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 90.00 ▼3.41 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 39.75 ▲4.20 |
Detailed settings /wp-admin/admin.php?page=freeaustralia-html5-map-states | 3.68 | 37.82 |
Maps /wp-admin/admin.php?page=freeaustralia-html5-map-maps | 3.48 | 36.85 |
Tools /wp-admin/admin.php?page=freeaustralia-html5-map-tools | 3.52 | 34.69 |
General Settings /wp-admin/admin.php?page=freeaustralia-html5-map-options | 3.71 | 39.21 |
Map Preview /wp-admin/admin.php?page=freeaustralia-html5-map-view | 3.47 | 43.22 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The 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
This is an overview of browser requirements for Interactive Australia Map
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲175 | 14.05 ▼0.14 | 5.98 ▲3.89 | 40.44 ▼10.18 |
Dashboard /wp-admin | 2,249 ▲64 | 5.89 ▲0.86 | 102.94 ▲1.73 | 41.57 ▼0.92 |
Posts /wp-admin/edit.php | 2,138 ▲46 | 2.06 ▲0.02 | 39.14 ▲2.57 | 37.51 ▲0.98 |
Add New Post /wp-admin/post-new.php | 1,557 ▲24 | 23.22 ▼0.07 | 661.63 ▲0.23 | 62.58 ▲9.28 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.20 ▼0.05 | 98.05 ▼12.31 | 40.78 ▼6.34 |
Detailed settings /wp-admin/admin.php?page=freeaustralia-html5-map-states | 972 | 2.52 | 32.57 | 29.30 |
Maps /wp-admin/admin.php?page=freeaustralia-html5-map-maps | 1,102 | 1.80 | 24.86 | 28.15 |
Tools /wp-admin/admin.php?page=freeaustralia-html5-map-tools | 1,104 | 1.80 | 25.06 | 29.54 |
General Settings /wp-admin/admin.php?page=freeaustralia-html5-map-options | 2,296 | 7.04 | 132.54 | 75.58 |
Map Preview /wp-admin/admin.php?page=freeaustralia-html5-map-view | 1,030 | 3.60 | 66.64 | 48.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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)
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 items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function freeaustralia_html5map_plugin_get_options() in wp-content/plugins/interactive-australia-map/editstatesconfig.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function freeaustralia_html5map_plugin_get_options() in wp-content/plugins/interactive-australia-map/maptools.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function freeaustralia_html5map_plugin_get_options() in wp-content/plugins/interactive-australia-map/mapslist.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/interactive-australia-map/freeaustraliamap.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function freeaustralia_html5map_plugin_get_options() in wp-content/plugins/interactive-australia-map/editmainconfig.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/interactive-australia-map/bulkconfig.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
9 plugin tags: html5 map, australia, map, interactive map, dealer map...
interactive-australia-map/freeaustraliamap.php 85% from 13 tests
The principal PHP file in "Interactive Australia Map" v. 3.1.9.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("interactive-australia-map.php" instead of "freeaustraliamap.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected5,962 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,677 |
CSS | 3 | 71 | 11 | 478 |
JSON | 2 | 0 | 0 | 83 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
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.02MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/html5maps_img.png | 25.21KB | 24.03KB | ▼ 4.69% |