Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼294.09ms] Passed 4 tests
A check of server-side resources used by Gwyn's Imagemap Selector
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 59.78 ▲4.71 |
Dashboard /wp-admin | 3.43 ▲0.03 | 35.39 ▼7.52 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 49.95 ▲5.55 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 99.27 ▼1,174.08 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 27.10 ▲0.53 |
Gwyn's Imagemap Selector /wp-admin/options-general.php?page=gwyns_imagemap_selector | 3.32 | 30.60 |
Server storage [IO: ▲1.88MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 94 new files
Database: no new tables, 1 new option
New WordPress options |
---|
gwyns_imagemap_selector_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for Gwyn's Imagemap Selector
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,788 ▲44 | 16.00 ▲0.35 | 6.07 ▼0.14 | 2.32 ▲0.16 |
Dashboard /wp-admin | 2,897 ▲43 | 6.11 ▼0.07 | 112.79 ▼17.79 | 230.54 ▲35.27 |
Posts /wp-admin/edit.php | 2,690 ▼1 | 3.23 ▼0.00 | 64.77 ▲0.48 | 142.85 ▲0.52 |
Add New Post /wp-admin/post-new.php | 1,776 ▲65 | 20.96 ▼0.43 | 440.55 ▼20.22 | 193.16 ▲39.13 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.54 ▲0.07 | 149.36 ▼17.36 | 254.98 ▲64.52 |
Gwyn's Imagemap Selector /wp-admin/options-general.php?page=gwyns_imagemap_selector | 1,897 | 4.23 | 76.79 | 167.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- gwyns_imagemap_selector_settings
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/gwyns-imagemap-selector/imagemap-creator/upload.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gwyns-imagemap-selector/gwyns-imagemap-selector.php:736
- > PHP Notice
Undefined index: btn_add in wp-content/plugins/gwyns-imagemap-selector/imagemap-creator/upload.php on line 28
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=gwyns_imagemap_selector
- > Javascript (severe) in unknown
/wp-content/plugins/gwyns-imagemap-selector/imgmap/imgmap.js 2894:16 Uncaught TypeError: Constructor WeakMap requires 'new'
- > GET request to /wp-admin/options-general.php?page=gwyns_imagemap_selector
- > Javascript (severe) in unknown
/wp-includes/js/dist/i18n.min.js?ver=30fcecb428a0e8383d3776bcdd3a7834 1:10087 Uncaught TypeError: Cannot read properties of undefined (reading 'defaultHooks')
- > GET request to /wp-admin/options-general.php?page=gwyns_imagemap_selector
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=gwyns_imagemap_selector 1683:8 Uncaught TypeError: Cannot read properties of undefined (reading 'setLocaleData')
- > GET request to /wp-admin/options-general.php?page=gwyns_imagemap_selector
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=gwyns_imagemap_selector 1689:9 Uncaught TypeError: Cannot read properties of undefined (reading 'setLocaleData')
- > GET request to /wp-admin/options-general.php?page=gwyns_imagemap_selector
- > Javascript (severe) in unknown
/wp-admin/js/common.min.js?ver=5.9.2 1:69 Uncaught TypeError: Cannot read properties of undefined (reading '__')
- > GET request to /wp-admin/options-general.php?page=gwyns_imagemap_selector
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=gwyns_imagemap_selector 1704:9 Uncaught TypeError: Cannot read properties of undefined (reading 'setLocaleData')
- > GET request to /wp-admin/options-general.php?page=gwyns_imagemap_selector
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=gwyns_imagemap_selector 1746:9 Uncaught TypeError: Cannot read properties of undefined (reading 'setLocaleData')
- > GET request to /wp-admin/options-general.php?page=gwyns_imagemap_selector
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=gwyns_imagemap_selector 1758:9 Uncaught TypeError: Cannot read properties of undefined (reading 'setLocaleData')
- > GET request to /wp-admin/options-general.php?page=gwyns_imagemap_selector
- > Javascript (severe) in unknown
/wp-includes/js/media-views.min.js?ver=5.9.2 1:21875 Uncaught TypeError: Cannot read properties of undefined (reading '__')
- > GET request to /wp-admin/options-general.php?page=gwyns_imagemap_selector
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=gwyns_imagemap_selector 1766:9 Uncaught TypeError: Cannot read properties of undefined (reading 'setLocaleData')
- > GET request to /wp-admin/options-general.php?page=gwyns_imagemap_selector
- > Javascript (severe) in unknown
/wp-includes/js/media-audiovideo.min.js?ver=5.9.2 1:1550 Uncaught TypeError: Cannot read properties of undefined (reading 'AttachmentDisplay')
- > GET request to /wp-admin/options-general.php?page=gwyns_imagemap_selector
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=gwyns_imagemap_selector 1780:9 Uncaught TypeError: Cannot read properties of undefined (reading 'setLocaleData')
- > GET request to /wp-admin/options-general.php?page=gwyns_imagemap_selector
- > Javascript (severe) in unknown
/wp-admin/js/image-edit.min.js?ver=5.9.2 1:27 Uncaught TypeError: Cannot read properties of undefined (reading '__')
- > GET request to /wp-admin/options-general.php?page=gwyns_imagemap_selector
- > Javascript (severe) in unknown
/wp-includes/js/dist/a11y.min.js?ver=68e470cf840f69530e9db3be229ad4b6 1:2054 Uncaught TypeError: Cannot read properties of undefined (reading '__')
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: imagemap
gwyns-imagemap-selector/gwyns-imagemap-selector.php Passed 13 tests
The primary PHP file in "Gwyn's Imagemap Selector" version 0.3.3 is used by WordPress to initiate all plugin functionality
62 characters long description:
Uses shortcodes to display imagemaps with categories of posts.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with your plugin
- .jar - Java Archive in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/gwyns-imagemap-selector/imgmap/build/ant-googlecode-0.0.0test.jar
- ☣ wp-content/plugins/gwyns-imagemap-selector/imgmap/build/custom_rhino.jar
- ☣ wp-content/plugins/gwyns-imagemap-selector/imgmap/build/jsch-0.1.36.jar
- ☣ wp-content/plugins/gwyns-imagemap-selector/imgmap/build/jsmin.0.2.3.jar
- .jar - Java Archive in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 20 | 729 | 1,334 | 5,060 |
CSS | 7 | 138 | 40 | 800 |
PHP | 3 | 99 | 102 | 627 |
PO File | 2 | 132 | 152 | 622 |
HTML | 4 | 73 | 29 | 421 |
Ant | 1 | 50 | 53 | 323 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
19 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
imgmap/build/jsdoc-tpl/outline2/static/images/field_protected_obj.png | 0.16KB | 0.16KB | ▼ 0.60% |
imgmap/build/jsdoc-tpl/outline2/static/images/method_private_obj.png | 0.19KB | 0.19KB | ▼ 0.51% |
imgmap/build/jsdoc-tpl/outline2/static/images/class_obj.png | 0.52KB | 0.52KB | 0.00% |
popup-background.png | 1.35KB | 1.30KB | ▼ 4.11% |
imgmap/build/jsdoc-tpl/outline2/static/images/classfo_obj.png | 0.31KB | 0.31KB | 0.32% |