Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/aws-ses-for-wp/lib/Mail/mime.php+95
Methods with the same name as their class will not be constructors in a future version of PHP; Mail_mime has a deprecated constructor
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.54ms] Passed 4 tests
This is a short check of server-side resources used by SES for Wordpress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.47 ▼7.06 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.84 ▼5.99 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.22 ▼0.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.90 ▼3.44 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.20 ▼1.66 |
Server storage [IO: ▲4.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 297 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for SES for Wordpress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.20 ▼1.38 | 3.93 ▲1.95 | 43.87 ▼7.13 |
Dashboard /wp-admin | 2,206 ▲18 | 5.88 ▲0.02 | 97.51 ▼20.15 | 38.78 ▼8.28 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.04 | 39.92 ▲5.45 | 36.20 ▲2.99 |
Add New Post /wp-admin/post-new.php | 1,528 ▼14 | 18.43 ▲0.20 | 604.00 ▼25.92 | 55.52 ▲6.19 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.21 ▲0.01 | 95.23 ▼2.89 | 40.80 ▼1.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/aws-ses-for-wp/lib/sdk/_compatibility_test/sdk_compatibility_test.php
- > /wp-content/plugins/aws-ses-for-wp/lib/sdk/config-sample.inc.php
- > /wp-content/plugins/aws-ses-for-wp/lib/sdk/_compatibility_test/sdk_compatibility_test_cli.php
- 69× PHP files trigger server errors when accessed directly (only 10 are shown):
- > Failed to determine HOME directory after trying "sh
1: cd: can't cd to ~" (exit code 2)
- > PHP Fatal error
Uncaught CFCredentials_Exception: No credentials were provided. The SDK attempts to retrieve Instance Profile credentials from the EC2 Instance Metadata Service, but doing this requires the "default_cache_config" option to be set in the config.inc.php file or constructor. In order to cache the retrieved credentials. in wp-content/plugins/aws-ses-for-wp/lib/sdk/sdk.class.php:439
- > PHP Fatal error
Uncaught Error: Class 'CFRuntime' not found in wp-content/plugins/aws-ses-for-wp/lib/sdk/services/s3.class.php:58
- > PHP Fatal error
Uncaught Error: Class 'CacheCore' not found in wp-content/plugins/aws-ses-for-wp/lib/sdk/lib/cachecore/cachepdo.class.php:16
- > PHP Fatal error
Uncaught Error: Class 'CFRuntime' not found in wp-content/plugins/aws-ses-for-wp/lib/sdk/services/rds.class.php:45
- > Failed to determine HOME directory after trying "sh
1: cd: can't cd to ~" (exit code 2)
- > PHP Fatal error
Uncaught Error: Class 'CacheCore' not found in wp-content/plugins/aws-ses-for-wp/lib/sdk/lib/cachecore/cacheapc.class.php:16
- > PHP Fatal error
Uncaught Error: Class 'Signer' not found in wp-content/plugins/aws-ses-for-wp/lib/sdk/authentication/signature_v3query.class.php:29
- > PHP Fatal error
Uncaught CFCredentials_Exception: No credentials were provided. The SDK attempts to retrieve Instance Profile credentials from the EC2 Instance Metadata Service, but doing this requires the "default_cache_config" option to be set in the config.inc.php file or constructor. In order to cache the retrieved credentials. in wp-content/plugins/aws-ses-for-wp/lib/sdk/sdk.class.php:439
- > PHP Fatal error
Uncaught Error: Class 'AmazonS3' not found in wp-content/plugins/aws-ses-for-wp/lib/sdk/extensions/s3browserupload.class.php:18
- > Failed to determine HOME directory after trying "sh
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (The options page) image missing
aws-ses-for-wp/ses-for-wordpress.php 85% from 13 tests
The main PHP file in "SES for Wordpress" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aws-ses-for-wp.php" instead of "ses-for-wordpress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected23,705 lines of code in 277 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 256 | 5,669 | 21,757 | 21,217 |
Markdown | 13 | 801 | 0 | 1,956 |
HTML | 2 | 47 | 0 | 431 |
YAML | 1 | 1 | 0 | 40 |
JSON | 1 | 0 | 0 | 27 |
CSS | 1 | 4 | 0 | 19 |
SQL | 3 | 0 | 0 | 15 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 23.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 451.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 123 | |
▷ Abstract classes | 3 | 2.44% |
▷ Concrete classes | 120 | 97.56% |
▷ Final classes | 0 | 0.00% |
Methods | 1,170 | |
▷ Static methods | 75 | 6.41% |
▷ Public methods | 1,101 | 94.10% |
▷ Protected methods | 60 | 5.13% |
▷ Private methods | 9 | 0.77% |
Functions | 31 | |
▷ Named functions | 27 | 87.10% |
▷ Anonymous functions | 4 | 12.90% |
Constants | 425 | |
▷ Global constants | 21 | 4.94% |
▷ Class constants | 404 | 95.06% |
▷ Public constants | 404 | 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
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 74.93KB | 32.81KB | ▼ 56.21% |