Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.66ms] Passed 4 tests
Server-side resources used by Image Annotator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 39.09 ▼6.60 |
Dashboard /wp-admin | 3.39 ▲0.09 | 50.68 ▼3.69 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 57.88 ▲7.48 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 92.10 ▼4.95 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 38.52 ▼3.38 |
All Annotations /wp-admin/edit.php?post_type=annotation | 3.36 | 39.86 |
Add New /wp-admin/post-new.php?post_type=annotation | 3.35 | 44.80 |
Server storage [IO: ▲3.97MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Image Annotator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 13.20 ▼1.38 | 4.27 ▲2.33 | 42.84 ▼0.37 |
Dashboard /wp-admin | 2,224 ▲50 | 5.62 ▲0.04 | 87.42 ▼11.58 | 39.68 ▼4.68 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.97 ▼0.03 | 39.07 ▲3.11 | 33.78 ▼3.64 |
Add New Post /wp-admin/post-new.php | 1,563 ▲35 | 18.41 ▼4.70 | 604.78 ▼98.06 | 76.80 ▲24.18 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.18 ▲0.00 | 94.52 ▼4.14 | 46.76 ▲0.23 |
All Annotations /wp-admin/edit.php?post_type=annotation | 1,104 | 1.97 | 31.75 | 32.15 |
Add New /wp-admin/post-new.php?post_type=annotation | 1,568 | 4.26 | 86.59 | 67.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-annotator/inc/class-wpia_admin.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/image-annotator/inc/class-wpia_front.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-annotator/inc/class-wpia_metaboxes.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-annotator/inc/class-wpia_admin.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: annotation, canvas, html5
image-annotator/image-annotator.php Passed 13 tests
The principal PHP file in "Image Annotator" v. 1.0 is loaded by WordPress automatically on each request
80 characters long description:
Adds the ability to create annotated images and then edit the annotations later.
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
No dangerous file extensions were detected38,169 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 3 | 0 | 22,643 |
JavaScript | 6 | 3,524 | 8,255 | 15,133 |
PHP | 4 | 88 | 39 | 299 |
CSS | 2 | 22 | 9 | 94 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 94.44% |
▷ Protected methods | 1 | 5.56% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
front/js/images/pencil.png | 0.54KB | 0.42KB | ▼ 21.56% |