Benchmarks
Plugin footprint 82% 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.49MB] [CPU: ▼4.83ms] Passed 4 tests
A check of server-side resources used by C3 Cloudfront Cache Controller
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 44.23 ▼1.01 |
Dashboard /wp-admin | 3.79 ▲0.49 | 56.29 ▼0.62 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 51.82 ▼1.75 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.49 | 93.81 ▼15.95 |
Media Library /wp-admin/upload.php | 3.71 ▲0.49 | 42.91 ▲4.68 |
Server storage [IO: ▲30.22MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
It is recommended to fix the following issues
- Try to limit filesystem usage to 25MB (currently using 30.22MB)
Filesystem: 2,563 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for C3 Cloudfront Cache Controller
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.69 ▼0.68 | 1.89 ▲0.11 | 46.04 ▲2.58 |
Dashboard /wp-admin | 2,213 ▲28 | 5.90 ▼0.00 | 111.35 ▲1.67 | 41.45 ▲1.02 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.98 ▼0.08 | 36.80 ▼6.24 | 32.31 ▼4.95 |
Add New Post /wp-admin/post-new.php | 1,517 ▼6 | 17.40 ▼5.70 | 625.04 ▲1.43 | 53.17 ▲0.76 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.24 ▲0.00 | 95.55 ▼4.32 | 42.62 ▼4.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/c3-cloudfront-clear-cache/vendor/mtdowling/jmespath.php/bin/jp.php
- 916× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/c3-cloudfront-clear-cache/vendor/aws/aws-sdk-php/src/Polly/PollyClient.php:32
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/c3-cloudfront-clear-cache/vendor/guzzlehttp/guzzle/src/Client.php:17
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/c3-cloudfront-clear-cache/vendor/aws/aws-sdk-php/src/Appflow/Exception/AppflowException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/c3-cloudfront-clear-cache/vendor/aws/aws-sdk-php/src/DynamoDb/Exception/DynamoDbException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/c3-cloudfront-clear-cache/vendor/aws/aws-sdk-php/src/CloudTrailData/Exception/CloudTrailDataException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/c3-cloudfront-clear-cache/vendor/aws/aws-sdk-php/src/CloudHSMV2/Exception/CloudHSMV2Exception.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/c3-cloudfront-clear-cache/vendor/aws/aws-sdk-php/src/FraudDetector/Exception/FraudDetectorException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/c3-cloudfront-clear-cache/vendor/aws/aws-sdk-php/src/WorkSpaces/WorkSpacesClient.php:140
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/c3-cloudfront-clear-cache/vendor/aws/aws-sdk-php/src/DataExchange/Exception/DataExchangeException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Multipart\\AbstractUploadManager' not found in wp-content/plugins/c3-cloudfront-clear-cache/vendor/aws/aws-sdk-php/src/Multipart/AbstractUploader.php:10
- > 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 Passed 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
3 plugin tags: cloudfront, aws, cdn
c3-cloudfront-clear-cache/c3-cloudfront-clear-cache.php Passed 13 tests
The entry point to "C3 Cloudfront Cache Controller" version 6.1.5 is a PHP file that has certain tags in its header comment area
50 characters long description:
Manage CloudFront Cache and provide some fixtures.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/c3-cloudfront-clear-cache/vendor/aws/aws-crt-php/run_tests.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,463 | 9,051 | 49,078 | 51,355 |
Markdown | 26 | 1,380 | 0 | 3,896 |
JSON | 16 | 7 | 0 | 1,621 |
C | 10 | 250 | 89 | 882 |
C/C++ Header | 2 | 105 | 38 | 441 |
YAML | 5 | 30 | 65 | 201 |
Bourne Shell | 3 | 19 | 4 | 176 |
reStructuredText | 1 | 35 | 29 | 59 |
GLSL | 1 | 17 | 0 | 55 |
XML | 1 | 0 | 0 | 24 |
m4 | 1 | 4 | 4 | 22 |
Pascal | 1 | 5 | 15 | 14 |
Bourne Again Shell | 1 | 5 | 0 | 13 |
INI | 2 | 0 | 0 | 3 |
DOS Batch | 1 | 2 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 5.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 746 | |
Interfaces | 63 | |
Traits | 28 | |
Classes | 1,067 | |
▷ Abstract classes | 18 | 1.69% |
▷ Concrete classes | 1,049 | 98.31% |
▷ Final classes | 59 | 5.62% |
Methods | 3,136 | |
▷ Static methods | 575 | 18.34% |
▷ Public methods | 2,316 | 73.85% |
▷ Protected methods | 143 | 4.56% |
▷ Private methods | 677 | 21.59% |
Functions | 637 | |
▷ Named functions | 225 | 35.32% |
▷ Anonymous functions | 412 | 64.68% |
Constants | 284 | |
▷ Global constants | 9 | 3.17% |
▷ Class constants | 275 | 96.83% |
▷ Public constants | 263 | 95.64% |
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 images were found in this plugin