68% wp-ses

Code Review | WP Offload SES Lite

WordPress plugin WP Offload SES Lite scored68%from 54 tests.

About plugin

  • Plugin page: wp-ses
  • Plugin version: 1.6.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Jan 30, 2011
  • Latest release: Aug 24, 2023
  • Number of updates: 108
  • Update frequency: every 42.5 days
  • Top authors: deliciousbrains (57.41%)SylvainDeaure (40.74%)bradt (3.7%)

Code review

54 tests

User reviews

35 reviews

Install metrics

30,000+ active /553,517 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.19MB] [CPU: ▲5.71ms] Passed 4 tests

A check of server-side resources used by WP Offload SES Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.69 ▲1.2356.46 ▲13.94
Dashboard /wp-admin4.52 ▲1.2164.20 ▲8.12
Posts /wp-admin/edit.php4.57 ▲1.2161.36 ▼0.32
Add New Post /wp-admin/post-new.php7.06 ▲1.17102.49 ▲6.19
Media Library /wp-admin/upload.php4.38 ▲1.1547.90 ▲8.85
Offload SES Lite /wp-admin/options-general.php?page=wp-offload-ses4.4352.13

Server storage [IO: ▲6.28MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 1,401 new files
Database: 6 new tables, 7 new options
New tables
wp_oses_clicks
wp_oses_jobs
wp_oses_failures
wp_oses_email_attachments
wp_oses_attachments
wp_oses_emails
New WordPress options
wposes_settings
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

WP Offload SES Lite: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.18 ▼1.201.84 ▼0.2741.55 ▼1.97
Dashboard /wp-admin2,221 ▲335.82 ▲0.89100.74 ▼5.3538.43 ▼4.90
Posts /wp-admin/edit.php2,107 ▲152.02 ▲0.0234.72 ▼7.8931.00 ▼7.58
Add New Post /wp-admin/post-new.php1,530 ▼723.02 ▼0.14596.40 ▼109.8750.72 ▼3.48
Media Library /wp-admin/upload.php1,400 ▲94.24 ▲0.12100.86 ▼11.6844.10 ▼4.78
Offload SES Lite /wp-admin/options-general.php?page=wp-offload-ses1,9452.2534.4675.88

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall successfully, leaving 6 tables in the database
    • wp_oses_emails
    • wp_oses_email_attachments
    • wp_oses_attachments
    • wp_oses_jobs
    • wp_oses_clicks
    • wp_oses_failures
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • wposes_settings
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-ses/view/footer.php
    • > /wp-content/plugins/wp-ses/view/notice.php
    • > /wp-content/plugins/wp-ses/view/modals/view-email.php
  • 290× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'DeliciousBrains\\WP_Offload_SES\\Aws3\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-ses/vendor/Aws3/GuzzleHttp/Psr7/LazyOpenStream.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'DeliciousBrains\\WP_Offload_SES\\Carbon\\CarbonPeriod' not found in wp-content/plugins/wp-ses/vendor/Carbon/CarbonPeriodImmutable.php:13
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-ses/view/health-report/email-failures.php:2
    • > PHP Fatal error
      Trait 'DeliciousBrains\\WP_Offload_SES\\Aws3\\Aws\\Api\\Parser\\MetadataParserTrait' not found in wp-content/plugins/wp-ses/vendor/Aws3/Aws/Api/ErrorParser/AbstractErrorParser.php on line 11
    • > PHP Fatal error
      Uncaught Error: Interface 'DeliciousBrains\\WP_Offload_SES\\Aws3\\GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/wp-ses/vendor/Aws3/GuzzleHttp/Exception/TransferException.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'DeliciousBrains\\WP_Offload_SES\\Aws3\\Aws\\Arn\\S3\\AccessPointArn' not found in wp-content/plugins/wp-ses/vendor/Aws3/Aws/Arn/S3/MultiRegionAccessPointArn.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'DeliciousBrains\\WP_Offload_SES\\Aws3\\Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/wp-ses/vendor/Aws3/GuzzleHttp/Psr7/UploadedFile.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-ses/view/elements/select.php:2
    • > PHP Fatal error
      Uncaught Error: Interface 'DeliciousBrains\\WP_Offload_SES\\Aws3\\GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/wp-ses/vendor/Aws3/GuzzleHttp/Exception/InvalidArgumentException.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'DeliciousBrains\\WP_Offload_SES\\PHPStan\\Reflection\\MethodsClassReflectionExtension' not found in wp-content/plugins/wp-ses/vendor/Carbon/PHPStan/MacroExtension.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
5 plugin tags: amazon ses, gmail smtp, newsletter, email delivery, smtp

wp-ses/wp-ses.php 92% from 13 tests

"WP Offload SES Lite" version 1.6.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected56,474 lines of code in 1,189 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,1623,91339,85743,637
Markdown33,702010,221
CSS329281,415
JavaScript162774091,154
SVG50147

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity14.16
▷ Minimum class complexity1.00
▷ Maximum class complexity324.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces67
Interfaces61
Traits46
Classes350
▷ Abstract classes185.14%
▷ Concrete classes33294.86%
▷ Final classes4312.95%
Methods3,768
▷ Static methods72619.27%
▷ Public methods2,96278.61%
▷ Protected methods2025.36%
▷ Private methods60416.03%
Functions531
▷ Named functions417.72%
▷ Anonymous functions49092.28%
Constants287
▷ Global constants10.35%
▷ Class constants28699.65%
▷ Public constants27596.15%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/reporting-blur.png150.61KB82.47KB▼ 45.25%
assets/img/SES-circle.png14.88KB2.64KB▼ 82.26%