Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼11.81ms] Passed 4 tests
A check of server-side resources used by SesPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.90 ▼2.72 |
Dashboard /wp-admin | 3.32 ▼0.02 | 48.63 ▼20.65 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.30 ▼5.56 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.90 ▼17.85 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 33.95 ▼3.18 |
SesPress /wp-admin/options-general.php?page=sespress | 3.25 | 42.75 |
Server storage [IO: ▲9.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 1,086 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
sespress_test_mode |
sespress_test_mode_recipient_email |
sespress_test_mode_recipient_name |
db_upgraded |
sespress_aws_secret_access_key |
sespress_region |
... |
Browser metrics Passed 4 tests
Checking browser requirements for SesPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▼0.03 | 1.80 ▼0.07 | 42.35 ▼1.46 |
Dashboard /wp-admin | 2,202 ▲22 | 5.64 ▲0.03 | 86.38 ▼3.00 | 39.42 ▼3.30 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.18 ▲0.16 | 35.42 ▼1.45 | 33.52 ▼0.26 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 17.53 ▼5.92 | 639.65 ▼8.84 | 52.18 ▼4.69 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.21 ▲0.00 | 95.45 ▼6.31 | 45.56 ▼1.68 |
SesPress /wp-admin/options-general.php?page=sespress | 924 | 2.02 | 22.70 | 28.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 14 options in the database
- sespress_test_mode_recipient_email
- theysaidso_admin_options
- sespress_aws_access_key_id
- sespress_enable_emails
- sespress_test_mode_recipient_name
- widget_recent-posts
- can_compress_scripts
- sespress_test_mode
- sespress_region
- db_upgraded
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sespress/sespress.php
- 384× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/sespress/vendor/aws/aws-sdk-php/src/DirectConnect/DirectConnectClient.php:98
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/sespress/vendor/aws/aws-sdk-php/src/ServiceDiscovery/Exception/ServiceDiscoveryException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/sespress/vendor/aws/aws-sdk-php/src/Batch/BatchClient.php:41
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\AwsClientInterface' not found in wp-content/plugins/sespress/vendor/aws/aws-sdk-php/src/S3/S3ClientInterface.php:10
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/sespress/vendor/aws/aws-sdk-php/src/Greengrass/GreengrassClient.php:157
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/sespress/vendor/aws/aws-sdk-php/src/AlexaForBusiness/AlexaForBusinessClient.php:81
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/sespress/vendor/aws/aws-sdk-php/src/Lambda/Exception/LambdaException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/sespress/vendor/aws/aws-sdk-php/src/LexModelBuildingService/Exception/LexModelBuildingServiceException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/sespress/vendor/aws/aws-sdk-php/src/Support/SupportClient.php:38
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/sespress/vendor/aws/aws-sdk-php/src/WafRegional/Exception/WafRegionalException.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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: aws, sespress, ses
sespress/sespress.php Passed 13 tests
This is the main PHP file of "SesPress" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
39 characters long description:
A plugin to send emails from Amazon SES
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin35,558 lines of code in 916 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 868 | 4,964 | 21,258 | 25,862 |
JSON | 29 | 8 | 0 | 6,237 |
Markdown | 13 | 990 | 0 | 3,343 |
reStructuredText | 1 | 35 | 29 | 59 |
make | 2 | 10 | 0 | 22 |
YAML | 2 | 5 | 0 | 21 |
XML | 1 | 3 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 6.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 283 | |
Interfaces | 27 | |
Traits | 11 | |
Classes | 482 | |
▷ Abstract classes | 8 | 1.66% |
▷ Concrete classes | 474 | 98.34% |
▷ Final classes | 10 | 2.11% |
Methods | 1,892 | |
▷ Static methods | 218 | 11.52% |
▷ Public methods | 1,324 | 69.98% |
▷ Protected methods | 95 | 5.02% |
▷ Private methods | 473 | 25.00% |
Functions | 372 | |
▷ Named functions | 74 | 19.89% |
▷ Anonymous functions | 298 | 80.11% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin