Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼12.12ms] Passed 4 tests
An overview of server-side resources used by Amazon payment services
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.18 ▲1.17 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.90 ▼17.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 41.81 ▼8.02 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.43 ▼24.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.82 ▲3.94 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 91 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Amazon payment services: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.45 ▲0.09 | 2.26 ▲0.56 | 54.41 ▲14.60 |
Dashboard /wp-admin | 2,195 ▲18 | 5.52 ▼0.14 | 85.60 ▼6.00 | 36.64 ▼1.76 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.03 ▲0.06 | 33.27 ▼7.12 | 34.63 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 18.24 ▼4.90 | 615.39 ▼18.89 | 65.55 ▲10.19 |
Media Library /wp-admin/upload.php | 1,394 ▼0 | 4.19 ▲0.04 | 97.02 ▼1.96 | 42.52 ▲1.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/amazon-payment-services/public/partials/aps-public-display.php
- > /wp-content/plugins/amazon-payment-services/admin/partials/aps-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Contributors: Plugin contributors field is missing
amazon-payment-services/woocommerce-aps.php 85% from 13 tests
The main file in "Amazon payment services" v. 2.3.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 185 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("amazon-payment-services.php" instead of "woocommerce-aps.php")
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
Everything looks great! No dangerous files found in this plugin15,503 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 54 | 706 | 2,365 | 7,421 |
JavaScript | 8 | 983 | 88 | 4,733 |
CSS | 6 | 198 | 38 | 2,681 |
PO File | 1 | 207 | 292 | 425 |
HTML | 2 | 0 | 0 | 136 |
Markdown | 2 | 38 | 0 | 106 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 28.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 180.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 335 | |
▷ Static methods | 15 | 4.48% |
▷ Public methods | 323 | 96.42% |
▷ Protected methods | 1 | 0.30% |
▷ Private methods | 11 | 3.28% |
Functions | 14 | |
▷ Named functions | 7 | 50.00% |
▷ Anonymous functions | 7 | 50.00% |
Constants | 88 | |
▷ Global constants | 2 | 2.27% |
▷ Class constants | 86 | 97.73% |
▷ Public constants | 86 | 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
7 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/visa-logo.png | 1.67KB | 1.55KB | ▼ 6.69% |
public/images/amex-logo.png | 3.34KB | 1.54KB | ▼ 54.05% |
public/images/stcpay-logo.png | 5.00KB | 2.58KB | ▼ 48.47% |
public/images/mastercard-logo.png | 3.08KB | 1.53KB | ▼ 50.17% |
public/images/tabby-logo.png | 1.53KB | 1.53KB | 0.00% |