Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.87MB] [CPU: ▼284.46ms] Passed 4 tests
This is a short check of server-side resources used by Image Annotation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.47 ▲0.96 | 55.40 ▲8.57 |
Dashboard /wp-admin | 4.31 ▲0.90 | 33.28 ▲0.41 |
Posts /wp-admin/edit.php | 4.54 ▲0.90 | 36.96 ▼1.32 |
Add New Post /wp-admin/post-new.php | 7.77 ▲0.80 | 98.71 ▼1,138.08 |
Media Library /wp-admin/upload.php | 4.19 ▲0.89 | 26.70 ▲1.14 |
WpMart Plugins /wp-admin/admin.php?page=ano-6310-wpmart-plugins | 4.18 | 24.28 |
All Image Annotation /wp-admin/admin.php?page=ano-6310-image-annotation | 4.20 | 29.64 |
Help /wp-admin/admin.php?page=ano-6310-image-annotation-use | 4.18 | 27.42 |
License /wp-admin/admin.php?page=ano-6310-image-annotation-license | 4.18 | 25.06 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 39 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_ano_6310_style |
New WordPress options |
---|
ano_6310_version_info |
Browser metrics Passed 4 tests
Checking browser requirements for Image Annotation
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,802 ▲48 | 16.23 ▲0.63 | 5.61 ▼0.18 | 2.43 ▼0.59 |
Dashboard /wp-admin | 2,932 ▲74 | 6.17 ▼0.07 | 115.33 ▼15.30 | 158.30 ▼5.07 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.24 ▲0.02 | 63.92 ▼1.04 | 137.12 ▼5.93 |
Add New Post /wp-admin/post-new.php | 1,736 ▲76 | 21.46 ▲4.65 | 438.82 ▲20.00 | 151.40 ▼8.15 |
Media Library /wp-admin/upload.php | 1,739 ▲41 | 5.49 ▼0.04 | 141.79 ▲1.90 | 186.43 ▼9.78 |
WpMart Plugins /wp-admin/admin.php?page=ano-6310-wpmart-plugins | 1,137 | 3.68 | 68.43 | 133.75 |
All Image Annotation /wp-admin/admin.php?page=ano-6310-image-annotation | 1,417 | 5.58 | 84.62 | 154.54 |
Help /wp-admin/admin.php?page=ano-6310-image-annotation-use | 1,110 | 3.60 | 68.04 | 122.61 |
License /wp-admin/admin.php?page=ano-6310-image-annotation-license | 1,162 | 3.67 | 64.99 | 122.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_ano_6310_style
- Zombie WordPress options were found after uninstall: 1 option
- ano_6310_version_info
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/image-annotation/settings/css/template-css.php
- > /wp-content/plugins/image-annotation/settings/template-settings.php
- > /wp-content/plugins/image-annotation/settings/add-point-html.php
- > /wp-content/plugins/image-annotation/settings/edit-point-html.php
- 30× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/image-annotation/settings/annotation.php:56
- > PHP Warning
Use of undefined constant ano_6310_plugin_dir_url - assumed 'ano_6310_plugin_dir_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-annotation/settings/add-point-html.php on line 82
- > PHP Warning
include(ano_6310_plugin_urlsettings/form.php): failed to open stream: No such file or directory in wp-content/plugins/image-annotation/settings/annotation.php on line 5
- > PHP Warning
Use of undefined constant ano_6310_plugin_url - assumed 'ano_6310_plugin_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-annotation/settings/add-point-html.php on line 104
- > PHP Warning
Use of undefined constant ano_6310_plugin_dir_url - assumed 'ano_6310_plugin_dir_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-annotation/settings/add-point-html.php on line 86
- > PHP Warning
include(): Failed opening 'ano_6310_plugin_urlsettings/template-settings.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/image-annotation/settings/edit-point-html.php on line 104
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/image-annotation/settings/form.php:3
- > PHP Warning
Use of undefined constant ano_6310_plugin_dir_url - assumed 'ano_6310_plugin_dir_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-annotation/settings/edit-point-html.php on line 82
- > PHP Warning
include(): Failed opening 'ano_6310_plugin_urlsettings/save.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/image-annotation/settings/annotation.php on line 4
- > PHP Warning
Use of undefined constant ano_6310_plugin_dir_url - assumed 'ano_6310_plugin_dir_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-annotation/settings/edit-point-html.php on line 74
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
5 plugin tags: image annotation, image labeling tool, map annotation for wordpress, draw floor plan, map annotation
image-annotation/index.php 92% from 13 tests
The main file in "Image Annotation" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("image-annotation.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin7,361 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 196 | 15 | 3,465 |
JavaScript | 8 | 170 | 62 | 1,985 |
CSS | 4 | 92 | 22 | 1,911 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
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 | 31 | |
▷ Named functions | 31 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.25MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/5.png | 25.50KB | 24.07KB | ▼ 5.59% |
assets/css/hover.png | 1.27KB | 0.66KB | ▼ 48.23% |
assets/images/3.png | 36.68KB | 35.65KB | ▼ 2.79% |
assets/css/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
assets/images/4.png | 23.22KB | 21.33KB | ▼ 8.15% |