79% sespress

Code Review | SesPress

WordPress plugin SesPress scored79%from 54 tests.

About plugin

  • Plugin page: sespress
  • Plugin version: 0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 10, 2018
  • Latest release: Jan 10, 2018
  • Number of updates: 27
  • Update frequency: every 0.1 days
  • Top authors: rathorevaibhav (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /541 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.90 ▼2.72
Dashboard /wp-admin3.32 ▼0.0248.63 ▼20.65
Posts /wp-admin/edit.php3.37 ▲0.0247.30 ▼5.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.90 ▼17.85
Media Library /wp-admin/upload.php3.24 ▲0.0233.95 ▼3.18
SesPress /wp-admin/options-general.php?page=sespress3.2542.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.031.80 ▼0.0742.35 ▼1.46
Dashboard /wp-admin2,202 ▲225.64 ▲0.0386.38 ▼3.0039.42 ▼3.30
Posts /wp-admin/edit.php2,104 ▲72.18 ▲0.1635.42 ▼1.4533.52 ▼0.26
Add New Post /wp-admin/post-new.php1,529 ▲317.53 ▼5.92639.65 ▼8.8452.18 ▼4.69
Media Library /wp-admin/upload.php1,398 ▼54.21 ▲0.0095.45 ▼6.3145.56 ▼1.68
SesPress /wp-admin/options-general.php?page=sespress9242.0222.7028.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP8684,96421,25825,862
JSON29806,237
Markdown1399003,343
reStructuredText1352959
make210022
YAML25021
XML13014

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 code0.37
Average class complexity6.11
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces283
Interfaces27
Traits11
Classes482
▷ Abstract classes81.66%
▷ Concrete classes47498.34%
▷ Final classes102.11%
Methods1,892
▷ Static methods21811.52%
▷ Public methods1,32469.98%
▷ Protected methods955.02%
▷ Private methods47325.00%
Functions372
▷ Named functions7419.89%
▷ Anonymous functions29880.11%
Constants145
▷ Global constants10.69%
▷ Class constants14499.31%
▷ Public constants144100.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