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
Install script ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▲4.22ms] Passed 4 tests
An overview of server-side resources used by Image Hotspot Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.47 | 53.04 ▲16.63 |
Dashboard /wp-admin | 3.77 ▲0.46 | 47.07 ▼3.22 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 48.37 ▲4.28 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 95.95 ▲5.97 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 44.97 ▲9.84 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 3.70 | 33.08 |
Server storage [IO: ▲0.40MB] [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: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Image Hotspot Block
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.18 ▼0.38 | 1.72 ▲0.18 | 43.93 ▲5.46 |
Dashboard /wp-admin | 2,228 ▲53 | 5.64 ▼0.01 | 94.96 ▼10.14 | 46.08 ▲6.81 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.03 ▲0.09 | 41.17 ▲6.26 | 41.30 ▲5.31 |
Add New Post /wp-admin/post-new.php | 6,394 ▲4,866 | 28.25 ▲5.17 | 892.34 ▲200.18 | 57.39 ▲1.62 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.26 ▼0.07 | 95.80 ▼4.84 | 45.62 ▼0.76 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 971 | 2.05 | 25.44 | 29.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/image-hotspot-block/inc/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/image-hotspot-block/inc/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: hotspot, woocommerce, products, shoppable, image...
image-hotspot-block/image-hotspot-block.php Passed 13 tests
"Image Hotspot Block" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
79 characters long description:
Image Hotspot Block lets you create dynamic images with links to your products.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,120 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 503 | 1,624 | 1,855 |
PO File | 1 | 56 | 57 | 168 |
JavaScript | 2 | 2 | 0 | 75 |
JSON | 1 | 0 | 0 | 21 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 38.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 5 | 4.72% |
▷ Public methods | 83 | 78.30% |
▷ Protected methods | 23 | 21.70% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin