Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.06 | 45.01 ▲6.26 |
Dashboard /wp-admin | 3.12 ▲0.07 | 44.19 ▼4.32 |
Posts /wp-admin/edit.php | 3.23 ▲0.13 | 48.00 ▲0.20 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 91.27 ▼571.67 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 35.51 ▲2.92 |
AWS SNS /wp-admin/options-general.php?page=aws-sns_settings | 3.04 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,817 ▲245 | 16.28 ▲0.28 | 14.33 ▲5.21 | 44.12 ▼2.68 |
Dashboard /wp-admin | 2,999 ▲68 | 5.94 ▼0.04 | 145.21 ▼12.40 | 112.51 ▲2.49 |
Posts /wp-admin/edit.php | 2,768 ▲29 | 2.71 ▼0.01 | 65.08 ▼2.19 | 88.63 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,520 ▲22 | 18.48 ▼0.38 | 379.97 ▲12.22 | 109.27 ▲0.40 |
Media Library /wp-admin/upload.php | 1,836 ▲26 | 5.03 ▲0.03 | 153.52 ▼5.14 | 118.51 ▲7.58 |
AWS SNS /wp-admin/options-general.php?page=aws-sns_settings | 1,126 | 2.34 | 54.59 | 66.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
- > PHP Fatal error
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
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 491 | 6,753 | 18,720 | 29,897 |
Markdown | 4 | 298 | 0 | 1,288 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
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 code | 0.35 |
Average class complexity | 6.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 79 | |
Interfaces | 79 | |
Traits | 2 | |
Classes | 441 | |
▷ Abstract classes | 36 | 8.16% |
▷ Concrete classes | 405 | 91.84% |
▷ Final classes | 1 | 0.25% |
Methods | 2,784 | |
▷ Static methods | 197 | 7.08% |
▷ Public methods | 2,216 | 79.60% |
▷ Protected methods | 459 | 16.49% |
▷ Private methods | 109 | 3.92% |
Functions | 73 | |
▷ Named functions | 3 | 4.11% |
▷ Anonymous functions | 70 | 95.89% |
Constants | 263 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 263 | 100.00% |
▷ Public constants | 263 | 100.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