Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲4.73MB] [CPU: ▼302.70ms] Passed 4 tests
An overview of server-side resources used by Ninja Libs Amazon SES
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.86 ▲5.35 | 83.22 ▲33.77 |
Dashboard /wp-admin | 8.88 ▲5.47 | 47.04 ▲14.07 |
Posts /wp-admin/edit.php | 8.88 ▲5.24 | 44.23 ▲6.32 |
Add New Post /wp-admin/post-new.php | 9.84 ▲2.88 | 99.26 ▼1,238.00 |
Media Library /wp-admin/upload.php | 8.88 ▲5.58 | 39.02 ▲6.81 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 8.88 | 39.33 |
Server storage [IO: ▲20.78MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 1,743 new files
Database: 1 new table, 5 new options
New tables |
---|
wp_ninjalibs_ses_blocked |
New WordPress options |
---|
ninjalibs_ses_version |
fs_active_plugins |
fs_accounts |
fs_debug_mode |
fs_gdpr |
Browser metrics Passed 4 tests
Checking browser requirements for Ninja Libs Amazon SES
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,836 ▲94 | 16.10 ▲0.10 | 6.02 ▼0.23 | 2.10 ▼0.18 |
Dashboard /wp-admin | 2,961 ▲100 | 6.37 ▲0.20 | 118.86 ▼18.99 | 164.13 ▲5.56 |
Posts /wp-admin/edit.php | 2,763 ▲72 | 3.31 ▲0.06 | 61.26 ▼9.13 | 151.58 ▲8.02 |
Add New Post /wp-admin/post-new.php | 1,694 ▲29 | 21.38 ▲0.93 | 428.17 ▼56.42 | 150.96 ▼12.23 |
Media Library /wp-admin/upload.php | 1,771 ▲73 | 5.94 ▲0.40 | 120.64 ▼19.81 | 194.06 ▲13.90 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 1,492 | 2.79 | 54.91 | 121.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/ninjalibs-ses/freemius/includes/class-freemius.php+8540
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 4 options in the database
- fs_debug_mode
- fs_gdpr
- fs_active_plugins
- fs_accounts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 16 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > Notice in wp-admin/includes/plugin.php+1871
Undefined offset: 2
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > Notice in wp-admin/menu-header.php+195
Undefined offset: 0
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
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ninjalibs-ses/vendor/bin/jp.php
- > /wp-content/plugins/ninjalibs-ses/vendor/mtdowling/jmespath.php/bin/jp.php
- > /wp-content/plugins/ninjalibs-ses/freemius/templates/ajax-loader.php
- 654× 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/ninjalibs-ses/vendor/aws/aws-sdk-php/src/Health/Exception/HealthException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/ninjalibs-ses/vendor/aws/aws-sdk-php/src/CloudDirectory/CloudDirectoryClient.php:141
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\MonitoringEventsInterface' not found in wp-content/plugins/ninjalibs-ses/vendor/aws/aws-sdk-php/src/Exception/CouldNotCreateChecksumException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/ninjalibs-ses/vendor/aws/aws-sdk-php/src/CostandUsageReportService/Exception/CostandUsageReportServiceException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/ninjalibs-ses/vendor/aws/aws-sdk-php/src/WorkMail/WorkMailClient.php:103
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/ninjalibs-ses/vendor/aws/aws-sdk-php/src/PI/Exception/PIException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/ninjalibs-ses/vendor/aws/aws-sdk-php/src/DynamoDb/DynamoDbClient.php:99
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/ninjalibs-ses/freemius/templates/partials/network-activation.php:6
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/ninjalibs-ses/vendor/aws/aws-sdk-php/src/Macie/MacieClient.php:23
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/ninjalibs-ses/vendor/aws/aws-sdk-php/src/Waf/Exception/WafException.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Requires at least: Invalid version format
- Requires php: Invalid version format
ninjalibs-ses/ninjalibs-ses.php 85% from 13 tests
The principal PHP file in "Ninja Libs Amazon SES" v. 0.0.9 is loaded by WordPress automatically on each request
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/ninjalibs" does not exist
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 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 detected75,098 lines of code in 1,683 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,633 | 14,361 | 50,785 | 69,971 |
Markdown | 16 | 1,179 | 0 | 3,608 |
JSON | 11 | 6 | 0 | 965 |
JavaScript | 4 | 34 | 65 | 195 |
HTML | 2 | 24 | 0 | 128 |
XML | 3 | 0 | 0 | 118 |
reStructuredText | 1 | 35 | 29 | 59 |
CSS | 12 | 3 | 0 | 45 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,895)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 10.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,895.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 509 | |
Interfaces | 49 | |
Traits | 25 | |
Classes | 795 | |
▷ Abstract classes | 15 | 1.89% |
▷ Concrete classes | 780 | 98.11% |
▷ Final classes | 23 | 2.95% |
Methods | 3,602 | |
▷ Static methods | 639 | 17.74% |
▷ Public methods | 2,532 | 70.29% |
▷ Protected methods | 146 | 4.05% |
▷ Private methods | 924 | 25.65% |
Functions | 598 | |
▷ Named functions | 240 | 40.13% |
▷ Anonymous functions | 358 | 59.87% |
Constants | 342 | |
▷ Global constants | 107 | 31.29% |
▷ Class constants | 235 | 68.71% |
▷ Public constants | 235 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.03MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/ninjalibs-logo.png | 3.89KB | 3.95KB | 0.00% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
public/img/ses-icon.png | 0.95KB | 1.02KB | 0.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
public/img/sns-icon.png | 0.73KB | 0.76KB | 0.00% |