Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.88MB] [CPU: ▼5.74ms] Passed 4 tests
Server-side resources used by Image Hotspot - Map Image Annotation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.35 ▲0.89 | 41.78 ▲1.12 |
Dashboard /wp-admin | 4.21 ▲0.86 | 51.45 ▼15.73 |
Posts /wp-admin/edit.php | 4.32 ▲0.96 | 47.66 ▼2.92 |
Add New Post /wp-admin/post-new.php | 6.79 ▲0.90 | 94.31 ▼5.42 |
Media Library /wp-admin/upload.php | 4.13 ▲0.90 | 40.21 ▲2.41 |
All Image Map Hotspot /wp-admin/admin.php?page=imh-6310-image-map-hotspot | 4.13 | 42.84 |
Settings /wp-admin/admin.php?page=imh-6310-image-map-hotspot-setting | 4.13 | 45.85 |
License /wp-admin/admin.php?page=imh-6310-image-map-hotspot-license | 4.10 | 35.12 |
WpMart Plugins /wp-admin/admin.php?page=imh-6310-wpmart-plugins | 4.10 | 34.95 |
Import/Export Plugin /wp-admin/admin.php?page=imh-6310-image-map-hotspot-import-export | 4.13 | 48.66 |
Help /wp-admin/admin.php?page=imh-6310-image-map-hotspot-use | 4.10 | 39.20 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 39 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_imh_6310_style |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
imh_6310_version_info |
widget_recent-posts |
imh_6310_selected_server |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Image Hotspot - Map Image Annotation
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲67 | 14.39 ▼0.19 | 1.90 ▼0.32 | 42.83 ▼3.85 |
Dashboard /wp-admin | 2,237 ▲57 | 5.71 ▲0.03 | 86.70 ▼2.96 | 40.91 ▲2.54 |
Posts /wp-admin/edit.php | 2,142 ▲45 | 2.06 ▲0.03 | 36.26 ▼0.07 | 35.48 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,565 ▲20 | 23.32 ▲0.07 | 677.35 ▲28.92 | 44.15 ▼5.50 |
Media Library /wp-admin/upload.php | 1,442 ▲39 | 4.28 ▲0.07 | 96.13 ▼12.64 | 42.96 ▼4.67 |
All Image Map Hotspot /wp-admin/admin.php?page=imh-6310-image-map-hotspot | 1,122 | 3.96 | 64.29 | 58.38 |
Settings /wp-admin/admin.php?page=imh-6310-image-map-hotspot-setting | 1,128 | 3.13 | 40.78 | 37.47 |
License /wp-admin/admin.php?page=imh-6310-image-map-hotspot-license | 949 | 2.78 | 39.01 | 33.56 |
WpMart Plugins /wp-admin/admin.php?page=imh-6310-wpmart-plugins | 1,006 | 2.74 | 37.21 | 40.03 |
Import/Export Plugin /wp-admin/admin.php?page=imh-6310-image-map-hotspot-import-export | 1,110 | 4.09 | 51.09 | 32.64 |
Help /wp-admin/admin.php?page=imh-6310-image-map-hotspot-use | 1,027 | 2.88 | 35.90 | 34.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_imh_6310_style
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- imh_6310_selected_server
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- imh_6310_version_info
- widget_recent-comments
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following items
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/image-map-hotspots/settings/template-settings.php
- > /wp-content/plugins/image-map-hotspots/settings/add-point-html.php
- > /wp-content/plugins/image-map-hotspots/settings/css/template-css.php
- > /wp-content/plugins/image-map-hotspots/settings/edit-point-html.php
- > /wp-content/plugins/image-map-hotspots/settings/annotation.php
- 32× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/image-map-hotspots/settings/form.php:3
- > PHP Warning
include(imh_6310_plugin_urlsettings/template-settings.php): failed to open stream: No such file or directory in wp-content/plugins/image-map-hotspots/settings/edit-point-html.php on line 221
- > PHP Warning
include(): Failed opening 'imh_6310_plugin_urlsettings/save.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/image-map-hotspots/settings/annotation.php on line 4
- > PHP Notice
Undefined variable: ids in wp-content/plugins/image-map-hotspots/shortcode.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/image-map-hotspots/output-css.php:11
- > PHP Warning
Use of undefined constant imh_6310_plugin_dir_url - assumed 'imh_6310_plugin_dir_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-map-hotspots/settings/edit-point-html.php on line 164
- > PHP Warning
Use of undefined constant imh_6310_plugin_dir_url - assumed 'imh_6310_plugin_dir_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-map-hotspots/settings/edit-point-html.php on line 170
- > PHP Warning
Use of undefined constant imh_6310_plugin_dir_url - assumed 'imh_6310_plugin_dir_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-map-hotspots/settings/add-point-html.php on line 162
- > PHP Warning
Use of undefined constant imh_6310_plugin_dir_url - assumed 'imh_6310_plugin_dir_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-map-hotspots/settings/edit-point-html.php on line 167
- > PHP Warning
Use of undefined constant imh_6310_plugin_dir_url - assumed 'imh_6310_plugin_dir_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-map-hotspots/settings/add-point-html.php on line 168
- > 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 93% from 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
6 plugin tags: image hotspots, wordpress image hotspot plugin, hotspot image wordpress, hotspot picture, hotspot image...
image-map-hotspots/index.php 85% from 13 tests
The main PHP script in "Image Hotspot - Map Image Annotation" version 1.5 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 207 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("image-map-hotspots.php" instead of "index.php")
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 plugin7,232 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 223 | 16 | 3,852 |
CSS | 4 | 97 | 22 | 1,921 |
JavaScript | 7 | 120 | 38 | 1,459 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
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 | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
8 PNG files occupy 0.25MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/fs-sprite.png | 1.07KB | 0.18KB | ▼ 82.82% |
assets/images/4.png | 23.22KB | 21.33KB | ▼ 8.15% |
assets/css/hover.png | 1.27KB | 0.66KB | ▼ 48.23% |
assets/css/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
assets/images/1.png | 59.47KB | 51.29KB | ▼ 13.76% |