Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼292.81ms] Passed 4 tests
This is a short check of server-side resources used by GroupDocs.Comparison for Cloud
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 51.83 ▲1.62 |
Dashboard /wp-admin | 3.41 ▲0.01 | 35.70 ▲2.47 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 42.59 ▲5.72 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 95.94 ▼1,167.67 |
Media Library /wp-admin/upload.php | 3.30 ▼0.00 | 23.44 ▼7.65 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for GroupDocs.Comparison for Cloud
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.85 ▲0.26 | 6.06 ▼0.45 | 2.29 ▼0.63 |
Dashboard /wp-admin | 2,888 ▲27 | 6.14 ▼0.05 | 132.37 ▼0.95 | 163.76 ▲2.58 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.24 ▲0.01 | 63.05 ▼5.23 | 143.51 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,658 ▼115 | 15.94 ▼5.29 | 411.45 ▼33.59 | 159.10 ▲0.36 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.51 ▲0.03 | 151.63 ▲10.69 | 202.05 ▲11.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/groupdocs-comparison/grpdocs-dialog.php
- 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-comparison/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-comparison/grpdocs-functions.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/groupdocs-comparison/grpdocscomparison.php:36
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: groupdocs comparison, compare two documents, document comparison tool, groupdocs, compare word documents
groupdocs-comparison/grpdocscomparison.php 85% from 13 tests
"GroupDocs.Comparison for Cloud" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("groupdocs-comparison.php" instead of "grpdocscomparison.php")
- Description: Please 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 file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected564 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 101 | 187 | 383 |
PHP | 3 | 32 | 18 | 116 |
CSS | 1 | 3 | 0 | 65 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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
All PNG images should be compressed to minimize bandwidth usage for end users
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-comparison-button.png | 1.41KB | 0.55KB | ▼ 61.08% |