Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin cannot be installed
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.17MB] [CPU: ▼8.32ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Image Annotator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 34.62 ▼1.83 |
Dashboard /wp-admin | 3.48 ▲0.14 | 44.40 ▼12.00 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 46.48 ▼3.32 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 81.65 ▼16.13 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 36.51 ▲3.07 |
Add New /wp-admin/post-new.php?post_type=annotation | 3.42 | 42.20 |
All Annotations /wp-admin/edit.php?post_type=annotation | 3.45 | 37.95 |
Server storage [IO: ▲2.65MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wcia_options |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
wcia_view_install_date |
wcia_style |
widget_recent-comments |
Browser metrics Passed 4 tests
WooCommerce Image Annotator: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲104 | 14.28 ▼0.07 | 1.87 ▲0.11 | 36.71 ▼5.07 |
Dashboard /wp-admin | 2,218 ▲44 | 5.49 ▼0.17 | 88.39 ▼6.86 | 38.38 ▼6.54 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.03 ▲0.01 | 34.92 ▼11.76 | 32.98 ▼10.75 |
Add New Post /wp-admin/post-new.php | 1,561 ▲28 | 22.92 ▼0.03 | 658.94 ▲13.93 | 51.38 ▼10.45 |
Media Library /wp-admin/upload.php | 1,432 ▲35 | 4.29 ▲0.11 | 96.24 ▼0.95 | 42.15 ▼0.52 |
Add New /wp-admin/post-new.php?post_type=annotation | 1,692 | 3.28 | 74.66 | 77.71 |
All Annotations /wp-admin/edit.php?post_type=annotation | 1,106 | 1.97 | 32.27 | 28.20 |
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 detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=annotation
- > Notice in wp-content/plugins/woo-image-product-annotator/classes/class-wcia_admin_metaboxes.php+377
Undefined variable: field
SRP 50% 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
The following issues need your attention
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/woo-image-product-annotator/templates/gallery-annotation.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-image-product-annotator/classes/class-wcia_admin_metaboxes.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-image-product-annotator/classes/class-wcia_admin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/woo-image-product-annotator/templates/archive-annotation.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-image-product-annotator/classes/class-wcia_front_image.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/woo-image-product-annotator/woocommerce-image-annotator.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/woo-image-product-annotator/templates/single-annotation.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: popup, annotation, woocommerce, gallery
woo-image-product-annotator/woocommerce-image-annotator.php 92% from 13 tests
The entry point to "WooCommerce Image Annotator" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-image-product-annotator.php" instead of "woocommerce-image-annotator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected30,737 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 3 | 0 | 22,643 |
JavaScript | 9 | 1,905 | 1,363 | 2,941 |
CSS | 7 | 572 | 234 | 2,717 |
PHP | 9 | 437 | 121 | 1,250 |
XML | 3 | 0 | 0 | 1,186 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 23.40 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 97.62% |
▷ Protected methods | 1 | 2.38% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
14 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/admin/images/sprite.png | 5.94KB | 2.82KB | ▼ 52.51% |
img/admin/images/arrows.png | 0.24KB | 0.24KB | 0.00% |
css/admin/css/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/admin/css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
img/left_arr.png | 0.74KB | 0.42KB | ▼ 43.61% |