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
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼8.29ms] Passed 4 tests
This is a short check of server-side resources used by Address Locator on Image Map
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 40.13 ▼2.14 |
Dashboard /wp-admin | 3.49 ▲0.14 | 45.34 ▼14.07 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 45.46 ▲2.28 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 82.27 ▼19.24 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 37.41 ▲7.31 |
Add new Store /wp-admin/post-new.php?post_type=office | 3.65 | 42.88 |
Setting /wp-admin/edit.php?post_type=office&page=store-setting | 3.38 | 31.27 |
All Store /wp-admin/edit.php?post_type=office | 3.45 | 35.24 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
ALIM_LOCATOR_VERSION |
db_upgraded |
widget_recent-comments |
ALIM_LOCATOR_MAP |
Browser metrics Passed 4 tests
Address Locator on Image Map: 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,833 ▲62 | 13.19 ▼1.19 | 1.64 ▼0.52 | 41.41 ▼6.26 |
Dashboard /wp-admin | 2,239 ▲51 | 5.85 ▼0.01 | 101.16 ▼15.87 | 79.92 ▲35.77 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.06 ▲0.06 | 37.77 ▼0.32 | 35.82 ▲1.06 |
Add New Post /wp-admin/post-new.php | 1,549 ▲32 | 18.23 ▲0.61 | 640.58 ▼10.16 | 59.79 ▲6.40 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.20 ▲0.01 | 96.03 ▼5.62 | 66.94 ▲23.03 |
Add new Store /wp-admin/post-new.php?post_type=office | 2,791 | 2.62 | 52.42 | 60.73 |
Setting /wp-admin/edit.php?post_type=office&page=store-setting | 892 | 2.27 | 25.44 | 31.84 |
All Store /wp-admin/edit.php?post_type=office | 1,095 | 2.11 | 31.88 | 29.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- ALIM_LOCATOR_VERSION
- widget_theysaidso_widget
- theysaidso_admin_options
- ALIM_LOCATOR_MAP
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/address-locator-on-image-map/admin/class-store-filter.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/address-locator-on-image-map/admin/class-setting.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/address-locator-on-image-map/admin/class-cpt.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/address-locator-on-image-map/public/class-shortcode.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/address-locator-on-image-map/coustom_function.php:28
- > 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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Requires at least: Version format is invalid
- Donate link: Please fix this invalid url: ""
address-locator-on-image-map/address_locator_on_ Image_map.php 92% from 13 tests
The entry point to "Address Locator on Image Map" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("address-locator-on-image-map.php" instead of "address_locator_on_ Image_map.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
No dangerous file extensions were detected2,492 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 60 | 83 | 1,104 |
JavaScript | 4 | 173 | 50 | 1,066 |
CSS | 2 | 7 | 4 | 322 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 14.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/images/marker2.png | 0.32KB | 0.25KB | ▼ 23.01% |
admin/assets/js/hv.png | 2.80KB | 7.32KB | 0.00% |
public/assets/images/marker1.png | 0.33KB | 0.25KB | ▼ 25.07% |
admin/assets/images/marker.png | 1.14KB | 0.22KB | ▼ 80.91% |
admin/assets/images/imagemap_icon.png | 1.12KB | 1.36KB | 0.00% |