Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼4.67ms] Passed 4 tests
A check of server-side resources used by Aspose.PDF Exporter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.17 ▲0.26 |
Dashboard /wp-admin | 3.69 ▲0.38 | 54.74 ▲1.83 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 28.72 ▼24.06 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.32 | 96.82 ▲7.73 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 40.92 ▲3.31 |
Aspose.PDF Exporter /wp-admin/options-general.php?page=AsposePdfExporterAdminMenu | 3.51 | 40.84 |
Server storage [IO: ▲8.59MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/aspose-pdf-exporter/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 833 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
aspose-cloud-activation-secret |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Aspose.PDF Exporter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 13.22 ▼1.15 | 1.82 ▼0.13 | 43.36 ▲1.46 |
Dashboard /wp-admin | 2,236 ▲30 | 5.88 ▲0.99 | 114.84 ▲0.80 | 42.51 ▲2.18 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.03 ▲0.04 | 33.75 ▼6.31 | 34.41 ▼7.86 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 23.52 ▲0.38 | 675.59 ▼27.16 | 56.63 ▲2.27 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.39 ▲0.20 | 105.36 ▼14.68 | 48.59 ▲0.30 |
Aspose.PDF Exporter /wp-admin/options-general.php?page=AsposePdfExporterAdminMenu | 883 | 2.03 | 26.48 | 35.13 |
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 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- aspose-cloud-activation-secret
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 fix the following items
- 331× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Lcobucci\\JWT\\Signer\\Ecdsa' not found in wp-content/plugins/aspose-pdf-exporter/vendor/lcobucci/jwt/src/Signer/Ecdsa/Sha256.php:18
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\PDF\\Model\\AsposeResponse' not found in wp-content/plugins/aspose-pdf-exporter/vendor/aspose/pdf-sdk-php/src/Aspose/PDF/Model/SquareAnnotationsResponse.php:37
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/aspose-pdf-exporter/vendor/lcobucci/jwt/test/unit/ValidationDataTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/aspose-pdf-exporter/vendor/lcobucci/jwt/test/unit/Signer/Hmac/Sha256Test.php:14
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\PDF\\Model\\AsposeResponse' not found in wp-content/plugins/aspose-pdf-exporter/vendor/aspose/pdf-sdk-php/src/Aspose/PDF/Model/RedactionAnnotationsResponse.php:37
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\PDF\\Model\\AsposeResponse' not found in wp-content/plugins/aspose-pdf-exporter/vendor/aspose/pdf-sdk-php/src/Aspose/PDF/Model/SplitResultResponse.php:37
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\PDF\\Model\\Annotation' not found in wp-content/plugins/aspose-pdf-exporter/vendor/aspose/pdf-sdk-php/src/Aspose/PDF/Model/PopupAnnotation.php:37
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\PDF\\Model\\LinkElement' not found in wp-content/plugins/aspose-pdf-exporter/vendor/aspose/pdf-sdk-php/src/Aspose/PDF/Model/Field.php:37
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\PDF\\Model\\LinkElement' not found in wp-content/plugins/aspose-pdf-exporter/vendor/aspose/pdf-sdk-php/src/Aspose/PDF/Model/PolygonAnnotations.php:37
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\PDF\\Model\\FormField' not found in wp-content/plugins/aspose-pdf-exporter/vendor/aspose/pdf-sdk-php/src/Aspose/PDF/Model/CheckBoxField.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: cloud pdf exporter, wordpress post to pdf, wordpress post content to pdf, wordpress pdf export, wordpress to pdf...
aspose-pdf-exporter/Aspose_Pdf_Exporter.php 92% from 13 tests
The main PHP file in "Aspose.PDF Exporter" ver. 3.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aspose-pdf-exporter.php" instead of "Aspose_Pdf_Exporter.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected158,341 lines of code in 803 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 484 | 22,800 | 82,766 | 142,701 |
Markdown | 298 | 4,533 | 0 | 14,237 |
JSON | 13 | 0 | 0 | 1,248 |
YAML | 2 | 3 | 0 | 68 |
XML | 3 | 2 | 0 | 65 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 11,882)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 34.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11,882.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 21 | |
Traits | 3 | |
Classes | 427 | |
▷ Abstract classes | 5 | 1.17% |
▷ Concrete classes | 422 | 98.83% |
▷ Final classes | 20 | 4.74% |
Methods | 7,374 | |
▷ Static methods | 1,296 | 17.58% |
▷ Public methods | 6,837 | 92.72% |
▷ Protected methods | 378 | 5.13% |
▷ Private methods | 159 | 2.16% |
Functions | 1,261 | |
▷ Named functions | 83 | 6.58% |
▷ Anonymous functions | 1,178 | 93.42% |
Constants | 655 | |
▷ Global constants | 44 | 6.72% |
▷ Class constants | 611 | 93.28% |
▷ Public constants | 611 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected