84% ignite-aws-ses

Code Review | Better Email

WordPress plugin Better Email scored84%from 54 tests.

About plugin

  • Plugin page: ignite-aws-ses
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 27, 2018
  • Latest release: Jun 28, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: igniteonline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /554 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.18ms] Passed 4 tests

Analyzing server-side resources used by Better Email
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.52 ▼4.31
Dashboard /wp-admin3.33 ▲0.0248.90 ▼5.94
Posts /wp-admin/edit.php3.38 ▲0.0248.27 ▼3.96
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.33 ▼26.51
Media Library /wp-admin/upload.php3.25 ▲0.0242.06 ▲5.86
Ignite Online /wp-admin/admin.php?page=ignite-settings3.2632.93
Better Mail /wp-admin/admin.php?page=ignite-better-mail3.2133.86

Server storage [IO: ▲10.06MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 1,347 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Better Email
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11013.26 ▼1.151.77 ▲0.0846.83 ▲4.35
Dashboard /wp-admin2,256 ▲715.86 ▲0.98104.08 ▼9.2838.04 ▼7.88
Posts /wp-admin/edit.php2,148 ▲592.05 ▼0.0040.18 ▲3.0038.15 ▲2.55
Add New Post /wp-admin/post-new.php1,379 ▼14916.97 ▼5.97579.55 ▼95.2353.31 ▼11.29
Media Library /wp-admin/upload.php1,447 ▲654.25 ▲0.00100.58 ▼20.4538.78 ▼11.22
Ignite Online /wp-admin/admin.php?page=ignite-settings9612.0623.9824.93
Better Mail /wp-admin/admin.php?page=ignite-better-mail9602.0426.0925.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 505× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/ignite-aws-ses/vendor/aws/aws-sdk-php/src/CloudFormation/Exception/CloudFormationException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ignite-aws-ses/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/ignite-aws-ses/vendor/aws/aws-sdk-php/src/Rekognition/Exception/RekognitionException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/ignite-aws-ses/vendor/composer/installers/tests/Composer/Installers/Test/AsgardInstallerTest.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/ignite-aws-ses/vendor/aws/aws-sdk-php/src/ServerlessApplicationRepository/Exception/ServerlessApplicationRepositoryException.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Aws\\AwsClientInterface' not found in wp-content/plugins/ignite-aws-ses/vendor/aws/aws-sdk-php/src/S3/S3ClientInterface.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ignite-aws-ses/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/ignite-aws-ses/vendor/aws/aws-sdk-php/src/CloudHsm/Exception/CloudHsmException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/ignite-aws-ses/vendor/aws/aws-sdk-php/src/OpsWorksCM/Exception/OpsWorksCMException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/ignite-aws-ses/vendor/aws/aws-sdk-php/src/Sqs/Exception/SqsException.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: email, ignite, mailtrap, aws, ses

ignite-aws-ses/ignite-better-mail.php 92% from 13 tests

This is the main PHP file of "Better Email" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ignite-aws-ses.php" instead of "ignite-better-mail.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected39,779 lines of code in 1,097 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,0415,52622,50129,500
JSON30806,493
Markdown161,04803,602
reStructuredText1352959
YAML311040
XML25037
JavaScript10022
make210022
CSS1004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity5.30
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces302
Interfaces27
Traits13
Classes606
▷ Abstract classes101.65%
▷ Concrete classes59698.35%
▷ Final classes101.68%
Methods2,052
▷ Static methods21610.53%
▷ Public methods1,44870.57%
▷ Protected methods1296.29%
▷ Private methods47523.15%
Functions387
▷ Named functions7318.86%
▷ Anonymous functions31481.14%
Constants148
▷ Global constants00.00%
▷ Class constants148100.00%
▷ Public constants148100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin