Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼6.58ms] Passed 4 tests
A check of server-side resources used by WPAdmin AWS CDN
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.33 | 41.16 ▲4.17 |
Dashboard /wp-admin | 3.63 ▲0.28 | 47.16 ▼16.23 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 48.42 ▼0.59 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 85.84 ▼9.55 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 37.69 ▲0.04 |
FAQ / How To /wp-admin/admin.php?page=wpa-aws-faq-how-to | 3.50 | 34.06 |
WPAdmin CDN /wp-admin/admin.php?page=wpa-aws-setup | 3.51 | 0.01 |
Support Us /wp-admin/admin.php?page=wpa-aws-donate | 3.49 | 36.99 |
SSL Manager /wp-admin/admin.php?page=wpa-aws-ssl | 3.50 | 33.64 |
Server storage [IO: ▲48.21MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- Total filesystem usage must be limited to 25MB (currently using 48.21MB)
Filesystem: 1,895 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WPAdmin AWS CDN
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.63 ▲0.35 | 1.72 ▲0.02 | 27.66 ▼10.93 |
Dashboard /wp-admin | 2,234 ▲57 | 5.59 ▲0.04 | 80.83 ▼3.16 | 42.59 ▲3.87 |
Posts /wp-admin/edit.php | 2,142 ▲45 | 2.03 ▲0.06 | 41.07 ▲6.30 | 36.61 ▲0.45 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.22 ▼0.05 | 675.19 ▼1.57 | 60.03 ▲0.71 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.20 ▼0.05 | 113.33 ▲12.70 | 51.70 ▲6.33 |
FAQ / How To /wp-admin/admin.php?page=wpa-aws-faq-how-to | 1,184 | 2.02 | 26.64 | 34.70 |
WPAdmin CDN /wp-admin/admin.php?page=wpa-aws-setup | 1,109 | 2.18 | 23.33 | 38.63 |
Support Us /wp-admin/admin.php?page=wpa-aws-donate | 819 | 2.06 | 22.77 | 31.35 |
SSL Manager /wp-admin/admin.php?page=wpa-aws-ssl | 877 | 2.04 | 24.75 | 32.07 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-config.php+56
Constant DB_NAME already defined
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-config.php+59
Constant DB_USER already defined
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-config.php+62
Constant DB_PASSWORD already defined
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-config.php+65
Constant DB_HOST already defined
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-config.php+68
Constant DB_CHARSET already defined
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-config.php+71
Constant DB_COLLATE already defined
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-config.php+84
Constant AUTH_KEY already defined
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-config.php+85
Constant SECURE_AUTH_KEY already defined
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-config.php+86
Constant LOGGED_IN_KEY already defined
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-config.php+87
Constant NONCE_KEY already defined
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-config.php+88
Constant AUTH_SALT already defined
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-config.php+89
Constant SECURE_AUTH_SALT already defined
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-config.php+90
Constant LOGGED_IN_SALT already defined
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-config.php+91
Constant NONCE_SALT already defined
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-config.php+115
Constant WP_DEBUG already defined
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-content/plugins/aws-cdn-by-wpadmin/admin/wpa-aws-deploy.php+103
Undefined variable: cpselected1
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-content/plugins/aws-cdn-by-wpadmin/admin/wpa-aws-deploy.php+104
Undefined variable: cpselected2
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-content/plugins/aws-cdn-by-wpadmin/admin/wpa-aws-deploy.php+105
Undefined variable: cpselected3
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-content/plugins/aws-cdn-by-wpadmin/admin/wpa-aws-deploy.php+113
Undefined variable: tlsselected1
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-content/plugins/aws-cdn-by-wpadmin/admin/wpa-aws-deploy.php+115
Undefined variable: tlsselected3
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-content/plugins/aws-cdn-by-wpadmin/admin/wpa-aws-deploy.php+116
Undefined variable: tlsselected4
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-content/plugins/aws-cdn-by-wpadmin/admin/wpa-aws-deploy.php+125
Undefined variable: coselected1
- > GET request to /wp-admin/admin.php?page=wpa-aws-setup
- > Notice in wp-content/plugins/aws-cdn-by-wpadmin/admin/wpa-aws-deploy.php+126
Undefined variable: coselected2
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 take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/aws-cdn-by-wpadmin/admin/wpa-aws-registration.php
- > /wp-content/plugins/aws-cdn-by-wpadmin/includes/class-aws-cdn.php
- 816× 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/aws-cdn-by-wpadmin/admin/aws/Aws/MainframeModernization/MainframeModernizationClient.php:73
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/aws-cdn-by-wpadmin/admin/aws/Aws/Glacier/Exception/GlacierException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/aws-cdn-by-wpadmin/admin/aws/Aws/RedshiftServerless/Exception/RedshiftServerlessException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/aws-cdn-by-wpadmin/admin/aws/Aws/MachineLearning/Exception/MachineLearningException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/aws-cdn-by-wpadmin/admin/aws/Aws/WorkSpaces/Exception/WorkSpacesException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\MonitoringEventsInterface' not found in wp-content/plugins/aws-cdn-by-wpadmin/admin/aws/Aws/Endpoint/UseDualstackEndpoint/Exception/ConfigurationException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/aws-cdn-by-wpadmin/admin/aws/Aws/ComputeOptimizer/ComputeOptimizerClient.php:45
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/aws-cdn-by-wpadmin/admin/aws/Aws/SageMakerRuntime/Exception/SageMakerRuntimeException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\DefaultsMode\\ConfigurationInterface' not found in wp-content/plugins/aws-cdn-by-wpadmin/admin/aws/Aws/DefaultsMode/Configuration.php:6
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/aws-cdn-by-wpadmin/admin/aws/Aws/Pinpoint/Exception/PinpointException.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: aws, cdn, amazon, cloudfront, multisite...
aws-cdn-by-wpadmin/aws-cdn-by-wpadmin.php 92% from 13 tests
The main PHP file in "WPAdmin AWS CDN" ver. 3.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 248 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin60,381 lines of code in 1,882 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,876 | 7,841 | 43,709 | 51,935 |
Markdown | 4 | 3,049 | 0 | 8,322 |
JavaScript | 1 | 0 | 1 | 123 |
CSS | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 5.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 667 | |
Interfaces | 48 | |
Traits | 25 | |
Classes | 925 | |
▷ Abstract classes | 13 | 1.41% |
▷ Concrete classes | 912 | 98.59% |
▷ Final classes | 26 | 2.85% |
Methods | 2,537 | |
▷ Static methods | 452 | 17.82% |
▷ Public methods | 1,769 | 69.73% |
▷ Protected methods | 132 | 5.20% |
▷ Private methods | 636 | 25.07% |
Functions | 456 | |
▷ Named functions | 81 | 17.76% |
▷ Anonymous functions | 375 | 82.24% |
Constants | 311 | |
▷ Global constants | 44 | 14.15% |
▷ Class constants | 267 | 85.85% |
▷ Public constants | 267 | 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
5 PNG files occupy 0.37MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 134.31KB | 43.25KB | ▼ 67.80% |
screenshot-1.png | 60.99KB | 23.66KB | ▼ 61.21% |
screenshot-5.png | 70.02KB | 35.34KB | ▼ 49.53% |
screenshot-2.png | 45.67KB | 13.22KB | ▼ 71.06% |
screenshot-4.png | 68.15KB | 34.12KB | ▼ 49.94% |