Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼2.75ms] Passed 4 tests
A check of server-side resources used by Aspose Contact Form
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 39.77 ▼1.84 |
Dashboard /wp-admin | 3.63 ▲0.33 | 50.41 ▼0.97 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 46.87 ▼4.01 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 84.82 ▼4.19 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 36.78 ▲3.41 |
Form using MS Excel /wp-admin/admin.php?page=aspose-contact-form/excel-to-form-admin.php | 3.46 | 35.23 |
Aspose Form /wp-admin/admin.php?page=aspose-contact-form | 3.46 | 36.82 |
Aspose Contact Form /wp-admin/options-general.php?page=apc-excel-to-form-settings | 3.46 | 32.98 |
Server storage [IO: ▲9.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 525 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_apc_shortcodes |
wp_aspose_forms |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
aspose-cloud-activation-secret |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Aspose Contact Form
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.41 ▼0.79 | 1.62 ▼0.15 | 40.88 ▼4.14 |
Dashboard /wp-admin | 2,237 ▲49 | 5.92 ▲0.86 | 101.54 ▼3.46 | 38.77 ▼5.49 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.22 ▲0.24 | 35.36 ▼1.98 | 33.69 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,552 ▲32 | 18.19 ▼5.17 | 688.87 ▲3.91 | 62.05 ▲0.76 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.30 ▲0.07 | 98.33 ▼3.21 | 42.71 ▼3.48 |
Form using MS Excel /wp-admin/admin.php?page=aspose-contact-form/excel-to-form-admin.php | 970 | 1.92 | 26.43 | 31.32 |
Aspose Form /wp-admin/admin.php?page=aspose-contact-form | 1,057 | 2.04 | 24.01 | 35.06 |
Aspose Contact Form /wp-admin/options-general.php?page=apc-excel-to-form-settings | 900 | 1.88 | 24.63 | 31.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 2 tables
- wp_aspose_forms
- wp_apc_shortcodes
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- aspose-cloud-activation-secret
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 202× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\Cells\\Cloud\\Model\\CellsCloudResponse' not found in wp-content/plugins/aspose-contact-form/vendor/aspose/cells-sdk-php/lib/Model/AutoShapeResponse.php:53
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/aspose-contact-form/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Lcobucci\\JWT\\Signer' not found in wp-content/plugins/aspose-contact-form/vendor/lcobucci/jwt/src/Signer/BaseSigner.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/aspose-contact-form/vendor/lcobucci/jwt/test/unit/Signer/HmacTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/aspose-contact-form/vendor/guzzlehttp/promises/src/Coroutine.php:45
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/aspose-contact-form/vendor/guzzlehttp/promises/src/Promise.php:10
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\Cells\\Cloud\\Model\\CellsCloudResponse' not found in wp-content/plugins/aspose-contact-form/vendor/aspose/cells-sdk-php/lib/Model/ValidationResponse.php:53
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/aspose-contact-form/vendor/lcobucci/jwt/test/unit/Signer/RsaTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\Cells\\Cloud\\Model\\SaveOptions' not found in wp-content/plugins/aspose-contact-form/vendor/aspose/cells-sdk-php/lib/Model/MHtmlSaveOptions.php:53
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/aspose-contact-form/vendor/guzzlehttp/psr7/src/AppendStream.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in aspose-contact-form/assets to your readme.txt
aspose-contact-form/aspose-contact-form.php Passed 13 tests
The main file in "Aspose Contact Form" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
131 characters long description:
Aspose Contact Form Plugin for WordPress allows site administrators/ownwers to create interactive forms using Microsoft Excel files
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
It is important to fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/aspose-contact-form/vendor/aspose/cells-sdk-php/composer.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 457 | 57,784 | 146,403 | 129,230 |
Markdown | 15 | 1,185 | 0 | 3,598 |
JavaScript | 3 | 245 | 192 | 1,228 |
JSON | 11 | 0 | 0 | 1,174 |
XML | 5 | 2 | 0 | 293 |
YAML | 3 | 3 | 0 | 78 |
Bourne Shell | 1 | 13 | 8 | 31 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
CSS | 1 | 1 | 9 | 6 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 8,642)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 31.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8,642.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 20 | |
Traits | 3 | |
Classes | 395 | |
▷ Abstract classes | 5 | 1.27% |
▷ Concrete classes | 390 | 98.73% |
▷ Final classes | 28 | 7.18% |
Methods | 8,538 | |
▷ Static methods | 1,406 | 16.47% |
▷ Public methods | 8,108 | 94.96% |
▷ Protected methods | 273 | 3.20% |
▷ Private methods | 157 | 1.84% |
Functions | 956 | |
▷ Named functions | 93 | 9.73% |
▷ Anonymous functions | 863 | 90.27% |
Constants | 420 | |
▷ Global constants | 42 | 10.00% |
▷ Class constants | 378 | 90.00% |
▷ Public constants | 378 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin