Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.02ms] 75% from 4 tests
This is a short check of server-side resources used by AWS Automatic SES
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 3,138.03ms on /wp-admin/options-general.php?page=aws-auto-ses-options)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 47.30 ▲5.88 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.85 ▼6.59 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.81 ▼0.29 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 95.18 ▼2.60 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.26 ▼2.61 |
SES Options /wp-admin/options-general.php?page=aws-auto-ses-options | 4.38 | 3,138.03 |
Server storage [IO: ▲4.58MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- You have illegally modified 1 file (14.92KB) outside of "wp-content/plugins/aws-auto-ses/" and "wp-content/uploads/"
- (new file) wp-content/cache/aws-auto-ses/tplcache/3/1/317797846545e0ae0293000f67c3f4071f9ca5eebbc3df6b7690b2946ef80c97.php
Filesystem: 1,141 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
AWS Automatic SES: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.25 ▼1.04 | 2.02 ▼0.23 | 41.79 ▼3.41 |
Dashboard /wp-admin | 2,201 ▲13 | 5.83 ▲0.94 | 102.23 ▼11.13 | 37.73 ▼7.04 |
Posts /wp-admin/edit.php | 2,090 ▲4 | 2.02 ▲0.01 | 36.45 ▼1.04 | 35.12 ▲2.61 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.16 ▲0.09 | 583.91 ▼93.22 | 48.57 ▼11.94 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.03 | 93.14 ▼5.81 | 39.79 ▼2.30 |
SES Options /wp-admin/options-general.php?page=aws-auto-ses-options | 736 | 2.05 | 24.74 | 24.22 |
Uninstaller [IO: ▲0.01MB] [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-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 437× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/aws-auto-ses/vendor/twig/twig/lib/Twig/Node/Expression/ExtensionReference.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/aws-auto-ses/vendor/twig/twig/lib/Twig/TokenParser/Set.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\HashInterface' not found in wp-content/plugins/aws-auto-ses/vendor/aws/aws-sdk-php/src/PhpHash.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/aws-auto-ses/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Unary' not found in wp-content/plugins/aws-auto-ses/vendor/twig/twig/lib/Twig/Node/Expression/Unary/Not.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Extension' not found in wp-content/plugins/aws-auto-ses/vendor/twig/twig/lib/Twig/Extension/Debug.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Unary' not found in wp-content/plugins/aws-auto-ses/vendor/twig/twig/lib/Twig/Node/Expression/Unary/Neg.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/aws-auto-ses/vendor/twig/twig/test/Twig/Tests/Node/Expression/FunctionTest.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Twig_CompilerInterface' not found in wp-content/plugins/aws-auto-ses/vendor/twig/twig/lib/Twig/Compiler.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/aws-auto-ses/vendor/twig/twig/test/Twig/Tests/Loader/FilesystemTest.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: ses, email, mail, wp_mail, amazon...
aws-auto-ses/aws-auto-ses.php Passed 13 tests
The main PHP file in "AWS Automatic SES" ver. 0.0.1 adds more information about the plugin and also serves as the entry point for this plugin
94 characters long description:
Automatically configures WordPress to use SES when on an EC2 instance with a SES capable role.
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
Good job! No executable or dangerous file extensions detected49,026 lines of code in 870 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 706 | 6,997 | 15,685 | 36,009 |
JSON | 30 | 8 | 0 | 5,776 |
reStructuredText | 89 | 2,270 | 2,023 | 3,144 |
Markdown | 11 | 847 | 0 | 2,974 |
C | 1 | 161 | 174 | 792 |
HTML | 12 | 10 | 0 | 115 |
YAML | 5 | 25 | 0 | 97 |
XML | 3 | 5 | 0 | 54 |
make | 3 | 14 | 0 | 31 |
C/C++ Header | 1 | 7 | 13 | 15 |
Twig | 8 | 6 | 0 | 14 |
m4 | 1 | 2 | 1 | 5 |
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.30 |
Average class complexity | 6.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 128 | |
Interfaces | 40 | |
Traits | 4 | |
Classes | 565 | |
▷ Abstract classes | 19 | 3.36% |
▷ Concrete classes | 546 | 96.64% |
▷ Final classes | 5 | 0.92% |
Methods | 2,949 | |
▷ Static methods | 162 | 5.49% |
▷ Public methods | 2,394 | 81.18% |
▷ Protected methods | 169 | 5.73% |
▷ Private methods | 386 | 13.09% |
Functions | 607 | |
▷ Named functions | 132 | 21.75% |
▷ Anonymous functions | 475 | 78.25% |
Constants | 145 | |
▷ Global constants | 1 | 0.69% |
▷ Class constants | 144 | 99.31% |
▷ Public constants | 144 | 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
There were not PNG files found in your plugin