Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.42ms] Passed 4 tests
Server-side resources used by WC Download Products from AWS S3
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.80 ▼10.34 |
Dashboard /wp-admin | 3.34 ▲0.04 | 55.55 ▲6.38 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 53.15 ▲2.02 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 80.66 ▼13.91 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.64 ▲4.57 |
Server storage [IO: ▲15.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 1,477 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WC Download Products from AWS S3
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲196 | 14.77 ▲0.46 | 1.71 ▼0.37 | 44.01 ▲0.86 |
Dashboard /wp-admin | 2,348 ▲163 | 6.48 ▲0.60 | 133.34 ▲19.57 | 42.52 ▼4.85 |
Posts /wp-admin/edit.php | 2,251 ▲162 | 3.48 ▲1.44 | 55.23 ▲16.54 | 34.78 ▼0.35 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 22.96 ▲4.71 | 647.82 ▲28.55 | 35.96 ▼26.41 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.16 ▼0.04 | 77.66 ▼22.15 | 43.00 ▼0.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wc-download-products-from-aws-s3/vendor/mtdowling/jmespath.php/bin/jp.php
- > /wp-content/plugins/wc-download-products-from-aws-s3/vendor/bin/jp.php
- 606× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/wc-download-products-from-aws-s3/vendor/aws/aws-sdk-php/src/AppSync/Exception/AppSyncException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wc-download-products-from-aws-s3/vendor/aws/aws-sdk-php/src/DataPipeline/DataPipelineClient.php:48
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wc-download-products-from-aws-s3/vendor/guzzlehttp/psr7/src/DroppingStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wc-download-products-from-aws-s3/vendor/aws/aws-sdk-php/src/EBS/EBSClient.php:15
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wc-download-products-from-aws-s3/vendor/aws/aws-sdk-php/src/ConnectParticipant/ConnectParticipantClient.php:19
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wc-download-products-from-aws-s3/vendor/aws/aws-sdk-php/src/ResourceGroupsTaggingAPI/ResourceGroupsTaggingAPIClient.php:25
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/wc-download-products-from-aws-s3/vendor/aws/aws-sdk-php/src/XRay/Exception/XRayException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wc-download-products-from-aws-s3/vendor/aws/aws-sdk-php/src/Ssm/SsmClient.php:254
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wc-download-products-from-aws-s3/vendor/aws/aws-sdk-php/src/Redshift/RedshiftClient.php:182
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/wc-download-products-from-aws-s3/vendor/aws/aws-sdk-php/src/Redshift/Exception/RedshiftException.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
wc-download-products-from-aws-s3/wc-download-products-from-aws-s3.php 92% from 13 tests
The principal PHP file in "WC Download Products from AWS S3" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.9" instead of "3.6.0")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Almost there! Just fix the following issues
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wc-download-products-from-aws-s3/vendor/bin/jp.php.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,413 | 6,428 | 30,649 | 35,642 |
JSON | 30 | 8 | 0 | 6,581 |
Markdown | 14 | 1,089 | 0 | 3,438 |
JavaScript | 1 | 25 | 10 | 83 |
reStructuredText | 1 | 35 | 29 | 59 |
YAML | 1 | 4 | 0 | 27 |
make | 2 | 10 | 0 | 22 |
XML | 1 | 3 | 0 | 14 |
Dockerfile | 1 | 8 | 0 | 10 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 5.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 478 | |
Interfaces | 38 | |
Traits | 17 | |
Classes | 709 | |
▷ Abstract classes | 11 | 1.55% |
▷ Concrete classes | 698 | 98.45% |
▷ Final classes | 13 | 1.86% |
Methods | 2,302 | |
▷ Static methods | 369 | 16.03% |
▷ Public methods | 1,612 | 70.03% |
▷ Protected methods | 115 | 5.00% |
▷ Private methods | 575 | 24.98% |
Functions | 458 | |
▷ Named functions | 119 | 25.98% |
▷ Anonymous functions | 339 | 74.02% |
Constants | 205 | |
▷ Global constants | 6 | 2.93% |
▷ Class constants | 199 | 97.07% |
▷ Public constants | 199 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin