Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼290.05ms] Passed 4 tests
This is a short check of server-side resources used by GroupDocs.Annotation for .NET | HTML5 Document Annotation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 53.43 ▼1.81 |
Dashboard /wp-admin | 3.43 ▲0.01 | 34.11 ▲1.29 |
Posts /wp-admin/edit.php | 3.66 ▲0.01 | 40.64 ▼2.81 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.08 | 93.74 ▼1,156.88 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 31.55 ▲6.14 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
GroupDocs.Annotation for .NET | HTML5 Document Annotation: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.92 ▲0.29 | 5.70 ▼0.91 | 2.80 ▲0.07 |
Dashboard /wp-admin | 2,888 ▲27 | 6.15 ▲0.02 | 115.34 ▼16.27 | 156.72 ▼8.45 |
Posts /wp-admin/edit.php | 2,691 ▲34 | 3.23 ▼0.14 | 70.06 ▲5.40 | 158.40 ▲14.98 |
Add New Post /wp-admin/post-new.php | 1,749 ▼3 | 21.20 ▲0.30 | 439.54 ▼21.01 | 160.69 ▲0.76 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.53 ▲0.06 | 142.40 ▼0.53 | 188.66 ▼14.39 |
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
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/groupdocs-annotation-for-dot-net-html5-document-annotation/grpdocs-functions.php on line 3
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/groupdocs-annotation-for-dot-net-html5-document-annotation/grpdocs-functions.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/groupdocs-annotation-for-dot-net-html5-document-annotation/grpdocsdotnetannotation.php:33
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: groupdocs, groupdocsannotation, pdf annotation, image annotation, document annotation
groupdocs-annotation-for-dot-net-html5-document-annotation/grpdocsdotnetannotation.php 85% from 13 tests
The main file in "GroupDocs.Annotation for .NET | HTML5 Document Annotation" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("groupdocs-annotation-for-dot-net-html5-document-annotation.php" instead of "grpdocsdotnetannotation.php")
- Description: Keep the plugin description shorter than 140 characters (currently 191 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected107 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 15 | 14 | 61 |
PHP | 2 | 25 | 16 | 46 |
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.37 |
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 | 6 | |
▷ Named functions | 6 | 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 |
images/grpdocs-annotation-dotnet-button.png | 3.50KB | 0.94KB | ▼ 73.27% |