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.02MB] [CPU: ▼11.57ms] Passed 4 tests
An overview of server-side resources used by WP Image Markers - Easy Hotspot Solution
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.98 ▼6.40 |
Dashboard /wp-admin | 3.34 ▼0.01 | 50.01 ▼14.34 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.83 ▼3.82 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.67 ▼21.73 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.05 ▲1.98 |
Add New /wp-admin/post-new.php?post_type=wp_image_markers | 3.38 | 51.01 |
Image Markers /wp-admin/edit.php?post_type=wp_image_markers | 3.30 | 41.36 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 91 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Image Markers - Easy Hotspot Solution
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲118 | 13.80 ▼0.81 | 8.41 ▲6.04 | 44.35 ▼0.00 |
Dashboard /wp-admin | 2,222 ▲45 | 5.53 ▼0.23 | 83.05 ▼7.37 | 38.46 ▼0.92 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.95 ▼0.02 | 36.25 ▼4.33 | 30.99 ▼5.41 |
Add New Post /wp-admin/post-new.php | 1,549 ▲18 | 23.02 ▼0.07 | 676.95 ▼1.25 | 60.93 ▲7.20 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.31 ▲0.11 | 97.07 ▼14.41 | 42.61 ▼6.05 |
Add New /wp-admin/post-new.php?post_type=wp_image_markers | 1,929 | 5.50 | 112.23 | 32.72 |
Image Markers /wp-admin/edit.php?post_type=wp_image_markers | 1,088 | 1.96 | 29.69 | 28.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
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 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
Please take a closer look at the following
- 25× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPIM\\Field\\Control' not found in wp-content/plugins/wp-image-makers-easy-hotspot-solution/includes/Field/TextGroupControl.php:5
- > PHP Warning
include(WPIM_DIRincludes/helpers.php): failed to open stream: No such file or directory in wp-content/plugins/wp-image-makers-easy-hotspot-solution/bootstrap.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WPIM\\Field\\Control' not found in wp-content/plugins/wp-image-makers-easy-hotspot-solution/includes/Field/IconPickerControl.php:5
- > PHP Notice
Undefined variable: infowindow in wp-content/plugins/wp-image-makers-easy-hotspot-solution/templates/infowindow/content-post.php on line 12
- > PHP Fatal error
Uncaught Error: Call to a member function get_content() on null in wp-content/plugins/wp-image-makers-easy-hotspot-solution/templates/infowindow/content-product.php:11
- > PHP Fatal error
Uncaught Error: Class 'WPIM\\Field\\Control' not found in wp-content/plugins/wp-image-makers-easy-hotspot-solution/includes/Field/SliderControl.php:5
- > PHP Notice
Undefined variable: infowindow in wp-content/plugins/wp-image-makers-easy-hotspot-solution/templates/infowindow/content-product.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'WPIM\\Field\\Control' not found in wp-content/plugins/wp-image-makers-easy-hotspot-solution/includes/Field/RadioImageControl.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPIM\\Field\\Control' not found in wp-content/plugins/wp-image-makers-easy-hotspot-solution/includes/Field/ColorPickerControl.php:5
- > PHP Notice
Undefined variable: collection in wp-content/plugins/wp-image-makers-easy-hotspot-solution/templates/markers.php on line 11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=wp_image_markers
- > Javascript (severe) in unknown
/wp-content/plugins/wp-image-makers-easy-hotspot-solution/assets/vendors/wp-color-picker-alpha/wp-color-picker-alpha.js?ver=1.0.0 23:16 Uncaught ReferenceError: wpColorPickerL10n is not defined
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Donate link: Invalid url: ""
wp-image-makers-easy-hotspot-solution/wp-image-markers.php 85% from 13 tests
"WP Image Markers - Easy Hotspot Solution" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-image-makers-easy-hotspot-solution.php" instead of "wp-image-markers.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected14,108 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 363 | 110 | 4,505 |
JavaScript | 9 | 844 | 1,081 | 4,002 |
Sass | 7 | 443 | 4 | 2,841 |
PHP | 42 | 754 | 601 | 2,759 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing 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.36 |
Average class complexity | 9.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 132 | |
▷ Static methods | 14 | 10.61% |
▷ Public methods | 121 | 91.67% |
▷ Protected methods | 1 | 0.76% |
▷ Private methods | 10 | 7.58% |
Functions | 14 | |
▷ Named functions | 10 | 71.43% |
▷ Anonymous functions | 4 | 28.57% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/images/markers/marker-0.png | 2.99KB | 0.00KB | ▼ 100.00% |
assets/images/select2.png | 0.60KB | 0.99KB | 0.00% |
assets/images/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
assets/images/remove.png | 0.26KB | 0.25KB | ▼ 3.77% |
assets/images/add.png | 0.13KB | 0.11KB | ▼ 17.91% |