88% aws-sns

Code Review | AWS SNS Plugin

WordPress plugin AWS SNS Plugin scored 88% from 54 tests.

About plugin

  • Plugin page: aws-sns
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 5.8.1
  • First release: Feb 26, 2016
  • Latest release: Feb 28, 2016
  • Number of updates: 25
  • Update frequency: every 0.1 days
  • Top authors: fayzandotocom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,279 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼143.22ms] Passed 4 tests

This is a short check of server-side resources used by AWS SNS Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0645.01 ▲6.26
Dashboard /wp-admin3.12 ▲0.0744.19 ▼4.32
Posts /wp-admin/edit.php3.23 ▲0.1348.00 ▲0.20
Add New Post /wp-admin/post-new.php5.48 ▲0.0591.27 ▼571.67
Media Library /wp-admin/upload.php3.06 ▲0.0635.51 ▲2.92
AWS SNS /wp-admin/options-general.php?page=aws-sns_settings3.0430.49

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 507 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for AWS SNS Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,817 ▲24516.28 ▲0.2814.33 ▲5.2144.12 ▼2.68
Dashboard /wp-admin2,999 ▲685.94 ▼0.04145.21 ▼12.40112.51 ▲2.49
Posts /wp-admin/edit.php2,768 ▲292.71 ▼0.0165.08 ▼2.1988.63 ▼2.96
Add New Post /wp-admin/post-new.php1,520 ▲2218.48 ▼0.38379.97 ▲12.22109.27 ▲0.40
Media Library /wp-admin/upload.php1,836 ▲265.03 ▲0.03153.52 ▼5.14118.51 ▲7.58
AWS SNS /wp-admin/options-general.php?page=aws-sns_settings1,1262.3454.5966.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/aws-sns/public/partials/aws-sns-plugin-public-display.php
  • 367× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Batch\\AbstractBatchDecorator' not found in wp-content/plugins/aws-sns/sdk/aws_v2.8.27/Guzzle/Batch/HistoryBatch.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/aws-sns/sdk/aws_v2.8.27/Monolog/Handler/SwiftMailerHandler.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Common\\AbstractHasDispatcher' not found in wp-content/plugins/aws-sns/sdk/aws_v2.8.27/Guzzle/Http/Curl/CurlMultiProxy.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Guzzle\\Http\\Message\\Header\\HeaderInterface' not found in wp-content/plugins/aws-sns/sdk/aws_v2.8.27/Guzzle/Http/Message/Header.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Batch\\AbstractBatchDecorator' not found in wp-content/plugins/aws-sns/sdk/aws_v2.8.27/Guzzle/Batch/NotifyingBatch.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Common\\Event' not found in wp-content/plugins/aws-sns/sdk/aws_v2.8.27/Guzzle/Service/Command/CreateResponseClassEvent.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/aws-sns/sdk/aws_v2.8.27/Monolog/Handler/RavenHandler.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Common\\Collection' not found in wp-content/plugins/aws-sns/sdk/aws_v2.8.27/Guzzle/Service/Resource/Model.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Common\\AbstractHasDispatcher' not found in wp-content/plugins/aws-sns/sdk/aws_v2.8.27/Aws/Common/Waiter/AbstractWaiter.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractSyslogHandler' not found in wp-content/plugins/aws-sns/sdk/aws_v2.8.27/Monolog/Handler/SyslogUdpHandler.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: gcm, mpns, push notifications, amazon, amazon simple notification service...

aws-sns/aws-sns-plugin.php 92% from 13 tests

The entry point to "AWS SNS Plugin" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("aws-sns.php" instead of "aws-sns-plugin.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
Good job! No executable or dangerous file extensions detected31,191 lines of code in 499 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity6.65
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
▷ Abstract classes368.16%
▷ Concrete classes40591.84%
▷ Final classes10.25%
▷ Static methods1977.08%
▷ Public methods2,21679.60%
▷ Protected methods45916.49%
▷ Private methods1093.92%
▷ Named functions34.11%
▷ Anonymous functions7095.89%
▷ Global constants00.00%
▷ Class constants263100.00%
▷ Public constants263100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin