Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▲0.17ms] Passed 4 tests
An overview of server-side resources used by ImageMapper
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 42.37 ▼0.09 |
Dashboard /wp-admin | 3.54 ▲0.24 | 48.57 ▼3.50 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 53.65 ▲1.75 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 104.43 ▲9.87 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 40.26 ▲2.53 |
Image map settings /wp-admin/edit.php?post_type=imagemap&page=imagemap-settings | 3.43 | 37.96 |
All Image maps /wp-admin/edit.php?post_type=imagemap | 3.52 | 45.56 |
Add new Image map /wp-admin/post-new.php?post_type=imagemap | 3.51 | 47.81 |
All Image map areas /wp-admin/edit.php?post_type=imagemap_area | 3.52 | 37.88 |
Add new Image map area /wp-admin/post-new.php?post_type=imagemap_area | 3.39 | 31.76 |
Highlight styles /wp-admin/edit.php?post_type=imagemap_area&page=imagemap-area-styles | 3.44 | 45.42 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/imagemapper/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 13 new files
Database: no new tables, 12 new options
New WordPress options |
---|
imgmap-include-jquery-ui-dialog |
theysaidso_admin_options |
widget_recent-posts |
imgmap-include-jquery-ui |
imgmap-pulse |
imgmap-alternative-link-positions |
imgmap-include-jquery |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by ImageMapper
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,117 ▲356 | 14.56 ▲0.14 | 8.88 ▲7.25 | 41.61 ▼3.39 |
Dashboard /wp-admin | 2,299 ▲93 | 5.41 ▲0.57 | 107.09 ▼4.00 | 96.37 ▲52.61 |
Posts /wp-admin/edit.php | 2,195 ▲95 | 2.51 ▲0.49 | 42.34 ▲4.54 | 55.32 ▲19.58 |
Add New Post /wp-admin/post-new.php | 1,609 ▲80 | 18.91 ▲1.29 | 644.79 ▼26.88 | 40.29 ▼17.25 |
Media Library /wp-admin/upload.php | 1,484 ▲81 | 4.75 ▲0.52 | 104.54 ▼1.46 | 78.93 ▲33.24 |
Image map settings /wp-admin/edit.php?post_type=imagemap&page=imagemap-settings | 954 | 2.20 | 31.83 | 26.40 |
All Image maps /wp-admin/edit.php?post_type=imagemap | 1,192 | 2.55 | 38.31 | 55.16 |
Add new Image map /wp-admin/post-new.php?post_type=imagemap | 1,654 | 3.17 | 68.47 | 78.15 |
All Image map areas /wp-admin/edit.php?post_type=imagemap_area | 1,212 | 2.43 | 35.94 | 47.78 |
Add new Image map area /wp-admin/post-new.php?post_type=imagemap_area | 2,479 | 7.77 | 170.50 | 150.12 |
Highlight styles /wp-admin/edit.php?post_type=imagemap_area&page=imagemap-area-styles | 1,283 | 2.55 | 50.81 | 35.07 |
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 12 options in the database
- widget_recent-comments
- imgmap_colors
- imgmap-include-jquery
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- imgmap-pulse
- imgmap-include-jquery-ui-dialog
- imgmap-include-jquery-ui
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=imagemap_area
- > Notice in wp-content/plugins/imagemapper/imagemapper.php+270
Undefined index: area-type
- > GET request to /wp-admin/post-new.php?post_type=imagemap_area
- > Notice in wp-content/plugins/imagemapper/imagemapper.php+271
Undefined index: area-tooltip-text
- > GET request to /wp-admin/post-new.php?post_type=imagemap_area
- > Notice in wp-content/plugins/imagemapper/imagemapper.php+272
Undefined index: area-title-attribute
- > GET request to /wp-admin/post-new.php?post_type=imagemap_area
- > Notice in wp-content/plugins/imagemapper/imagemapper.php+273
Undefined index: area-link-url
- > GET request to /wp-admin/post-new.php?post_type=imagemap_area
- > Notice in wp-content/plugins/imagemapper/imagemapper.php+274
Undefined index: area-link-type
- > GET request to /wp-admin/post-new.php?post_type=imagemap_area
- > Notice in wp-content/plugins/imagemapper/imagemapper.php+275
Undefined index: area-link-post
- > GET request to /wp-admin/post-new.php?post_type=imagemap_area
- > Notice in wp-content/plugins/imagemapper/imagemapper.php+276
Undefined index: area-link-page
- 12 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=imagemap_area
- > Notice in wp-content/plugins/imagemapper/imagemapper.php+482
Undefined property: stdClass::$color
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/imagemapper/single-imgmap.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/imagemapper/single-imgmap-dialog.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imagemapper/imagemapper.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=imagemap_area&page=imagemap-area-styles
- > Javascript (severe) in unknown
/wp-content/plugins/imagemapper/script/jquery.imagemapster.min.js?ver=6.3.1 11:13117 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
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
4 plugin tags: imagemap, image map, images, interactive images
imagemapper/imagemapper.php Passed 13 tests
The main PHP script in "ImageMapper" version 1.2.6 is automatically included on every request by WordPress
62 characters long description:
Create interactive and visual image maps with a visual editor!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,413 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 118 | 101 | 790 |
JavaScript | 3 | 92 | 24 | 449 |
CSS | 1 | 22 | 8 | 173 |
Sass | 1 | 0 | 0 | 1 |
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.31 |
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 | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
transparency.png | 2.75KB | 0.09KB | ▼ 96.77% |
imagemap_area_icon.png | 3.21KB | 0.48KB | ▼ 85.15% |
imagemap_icon.png | 3.16KB | 0.40KB | ▼ 87.48% |
imagemap_icons.png | 4.59KB | 1.52KB | ▼ 66.89% |