Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/aspose-image-optimizer/plugin.php+26
require_once(wp-content/plugins/aspose-image-optimizer/core/class-installer.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.75ms] Passed 4 tests
This is a short check of server-side resources used by Aspose Image Optimizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.43 ▲1.33 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.56 ▼1.74 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.22 ▼3.42 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.20 ▼9.60 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.26 ▼0.23 |
Server storage [IO: ▲11.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 507 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Aspose Image Optimizer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.30 ▼1.29 | 5.65 ▲3.99 | 46.20 ▲5.38 |
Dashboard /wp-admin | 2,200 ▲12 | 5.83 ▼0.07 | 128.22 ▲20.05 | 45.50 ▲1.36 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.06 | 39.25 ▼0.42 | 34.31 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,514 ▼16 | 17.48 ▼0.77 | 677.27 ▼3.44 | 53.16 ▼10.35 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▼0.04 | 93.90 ▼8.71 | 43.41 ▼5.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
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)
Good news, no errors were detected
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
Almost there! Just fix the following items
- 198× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/aspose-image-optimizer/vendor/guzzlehttp/promises/src/Coroutine.php:45
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\Imaging\\Tests\\Api\\AI\\TestImagingAiBase' not found in wp-content/plugins/aspose-image-optimizer/vendor/aspose/aspose-imaging-cloud/tests/Aspose/Imaging/Tests/Api/AI/FindImagesTest.php:39
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\Imaging\\Model\\DeconvolutionFilterProperties' not found in wp-content/plugins/aspose-image-optimizer/vendor/aspose/aspose-imaging-cloud/lib/Aspose/Imaging/Model/GaussWienerFilterProperties.php:37
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/aspose-image-optimizer/vendor/guzzlehttp/psr7/src/MultipartStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\Imaging\\Model\\Requests\\ImagingRequest' not found in wp-content/plugins/aspose-image-optimizer/vendor/aspose/aspose-imaging-cloud/lib/Aspose/Imaging/Model/Requests/CreateUpdatedImageRequest.php:39
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\Imaging\\Tests\\Base\\ApiTester' not found in wp-content/plugins/aspose-image-optimizer/vendor/aspose/aspose-imaging-cloud/tests/Aspose/Imaging/Tests/Api/LoadCustomFontsTest.php:41
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\Imaging\\Examples\\ImagingBase' not found in wp-content/plugins/aspose-image-optimizer/vendor/aspose/aspose-imaging-cloud/Examples/lib/GrayscaleImage.php:42
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\Imaging\\Model\\Requests\\ImagingRequest' not found in wp-content/plugins/aspose-image-optimizer/vendor/aspose/aspose-imaging-cloud/lib/Aspose/Imaging/Model/Requests/GetObjectBoundsRequest.php:39
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\Imaging\\Model\\ConvolutionFilterProperties' not found in wp-content/plugins/aspose-image-optimizer/vendor/aspose/aspose-imaging-cloud/lib/Aspose/Imaging/Model/SharpenFilterProperties.php:37
- > PHP Fatal error
Uncaught Error: Class 'Aspose\\Imaging\\Model\\Requests\\ImagingRequest' not found in wp-content/plugins/aspose-image-optimizer/vendor/aspose/aspose-imaging-cloud/lib/Aspose/Imaging/Model/Requests/GetImageFeaturesRequest.php:39
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in aspose-image-optimizer/assets to your readme.txt
aspose-image-optimizer/plugin.php 85% from 13 tests
"Aspose Image Optimizer" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.3")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aspose-image-optimizer.php" instead of "plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected77,275 lines of code in 444 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 344 | 9,726 | 35,940 | 60,843 |
Markdown | 72 | 2,422 | 0 | 7,459 |
JavaScript | 3 | 500 | 2,358 | 6,051 |
CSS | 3 | 24 | 208 | 1,456 |
JSON | 13 | 0 | 0 | 1,264 |
YAML | 5 | 22 | 3 | 91 |
LESS | 1 | 18 | 59 | 78 |
XML | 1 | 0 | 0 | 14 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 16.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 16 | |
Traits | 2 | |
Classes | 296 | |
▷ Abstract classes | 5 | 1.69% |
▷ Concrete classes | 291 | 98.31% |
▷ Final classes | 23 | 7.90% |
Methods | 3,877 | |
▷ Static methods | 472 | 12.17% |
▷ Public methods | 3,637 | 93.81% |
▷ Protected methods | 62 | 1.60% |
▷ Private methods | 178 | 4.59% |
Functions | 453 | |
▷ Named functions | 73 | 16.11% |
▷ Anonymous functions | 380 | 83.89% |
Constants | 228 | |
▷ Global constants | 44 | 19.30% |
▷ Class constants | 184 | 80.70% |
▷ Public constants | 184 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/aspose/aspose-imaging-cloud/testdata/test.png | 8.52KB | 3.79KB | ▼ 55.56% |