Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.19MB] [CPU: ▼304.51ms] Passed 4 tests
A check of server-side resources used by Instant Annotation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 55.16 ▼4.16 |
Dashboard /wp-admin | 3.46 ▲0.05 | 31.67 ▼0.27 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 43.10 ▲6.20 |
Add New Post /wp-admin/post-new.php | 6.07 ▼0.89 | 82.71 ▼1,215.42 |
Media Library /wp-admin/upload.php | 3.34 ▲0.05 | 28.82 ▲1.81 |
Instant Annotation /wp-admin/options-general.php?page=iasemantify | 3.39 | 26.77 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Instant Annotation: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,901 ▲147 | 16.35 ▲0.73 | 9.91 ▲4.21 | 2.41 ▼0.42 |
Dashboard /wp-admin | 2,899 ▲31 | 6.18 ▲0.01 | 117.93 ▼27.71 | 172.81 ▼13.81 |
Posts /wp-admin/edit.php | 2,695 ▲4 | 3.24 ▲0.00 | 63.79 ▼8.00 | 209.86 ▲50.99 |
Add New Post /wp-admin/post-new.php | 2,096 ▲323 | 25.11 ▲3.39 | 425.05 ▼24.50 | 267.95 ▲103.18 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.53 ▲0.05 | 178.87 ▲28.11 | 182.71 ▼15.85 |
Instant Annotation /wp-admin/options-general.php?page=iasemantify | 1,318 | 3.66 | 95.71 | 425.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=iasemantify
- > Notice in wp-content/plugins/instant-annotation/admin/partials/iasemantify-admin-display.php+31
Trying to access array offset on value of type bool
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 fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/instant-annotation/public/partials/iasemantify-public-display.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/instant-annotation/public/partials/deploy_annotations.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/instant-annotation/admin/partials/meta_boxes_display.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/instant-annotation/admin/partials/iasemantify-admin-display.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in instant-annotation/assets to your readme.txt
- Donate link: Please fix this invalid url: ""
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== instant-annotation ===
)
instant-annotation/iasemantify.php 85% from 13 tests
The main PHP script in "Instant Annotation" version 2.4.2 is automatically included on every request by WordPress
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: Name the main plugin file the same as the plugin slug ("instant-annotation.php" instead of "iasemantify.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,456 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 292 | 574 | 1,343 |
JavaScript | 3 | 11 | 56 | 93 |
Markdown | 1 | 9 | 0 | 12 |
CSS | 2 | 1 | 4 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 36 | 87.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.20% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
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 |
admin/images/arrow3.png | 3.73KB | 0.67KB | ▼ 82.16% |