Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▲3.88ms] Passed 4 tests
A check of server-side resources used by Payment Button for PayPal
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 49.79 ▲6.89 |
Dashboard /wp-admin | 3.80 ▲0.50 | 66.15 ▲15.17 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 57.09 ▲10.24 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 92.31 ▼16.78 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 51.79 ▲21.21 |
All Orders /wp-admin/edit.php?post_type=wp_paypal_order | 3.77 | 43.90 |
Debug /wp-admin/edit.php?post_type=wp_paypal_order&page=wp-paypal-debug | 3.69 | 35.65 |
Add-ons /wp-admin/edit.php?post_type=wp_paypal_order&page=wp-paypal-addons | 3.70 | 35.04 |
Settings /wp-admin/edit.php?post_type=wp_paypal_order&page=wp-paypal-settings | 3.70 | 35.10 |
Add New /wp-admin/post-new.php?post_type=wp_paypal_order | 3.84 | 49.90 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 13 new options
New WordPress options |
---|
wp_paypal_currency_code |
wp_paypal_db_version |
widget_recent-posts |
wp_paypal_email |
db_upgraded |
wp_paypal_email_options |
can_compress_scripts |
wp_paypal_enable_receiver_check |
wppaypal_logfile_suffix |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Payment Button for PayPal
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲70 | 14.72 ▲0.32 | 2.06 ▲0.17 | 52.91 ▲9.04 |
Dashboard /wp-admin | 2,222 ▲48 | 5.50 ▼0.10 | 102.82 ▲3.62 | 37.70 ▼11.13 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.01 ▲0.07 | 42.63 ▲3.46 | 48.02 ▲13.04 |
Add New Post /wp-admin/post-new.php | 1,435 ▼91 | 17.82 ▼5.19 | 602.98 ▼74.85 | 48.72 ▼11.00 |
Media Library /wp-admin/upload.php | 1,436 ▲33 | 4.13 ▼0.14 | 153.08 ▲52.39 | 58.70 ▲15.26 |
All Orders /wp-admin/edit.php?post_type=wp_paypal_order | 1,159 | 1.94 | 35.35 | 32.91 |
Debug /wp-admin/edit.php?post_type=wp_paypal_order&page=wp-paypal-debug | 877 | 2.00 | 25.59 | 29.29 |
Add-ons /wp-admin/edit.php?post_type=wp_paypal_order&page=wp-paypal-addons | 1,051 | 1.99 | 23.49 | 37.09 |
Settings /wp-admin/edit.php?post_type=wp_paypal_order&page=wp-paypal-settings | 1,127 | 2.17 | 22.45 | 31.98 |
Add New /wp-admin/post-new.php?post_type=wp_paypal_order | 2,136 | 7.61 | 161.95 | 58.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 13 options
- widget_recent-comments
- widget_recent-posts
- wp_paypal_currency_code
- wp_paypal_enable_ipn_validation
- wp_paypal_email
- wp_paypal_enable_receiver_check
- db_upgraded
- wppaypal_logfile_suffix
- can_compress_scripts
- theysaidso_admin_options
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-paypal/wp-paypal-order.php:173
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: paypal, cart, e-commerce, donation, checkout
wp-paypal/main.php 92% from 13 tests
Analyzing the main PHP file in "Payment Button for PayPal" version 1.2.3.26
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-paypal.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,597 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 134 | 84 | 2,563 |
CSS | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 96.00 |
▷ Minimum class complexity | 96.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 5.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 31 | 96.88% |
▷ Anonymous functions | 1 | 3.12% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
14 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
addons/images/wp-paypal-buy-now-discount.png | 7.49KB | 3.42KB | ▼ 54.28% |
addons/images/wp-paypal-variable-subscription.png | 2.63KB | 1.79KB | ▼ 31.77% |
images/buy-now.png | 2.55KB | 1.76KB | ▼ 31.13% |
addons/images/wp-paypal-variable-quantity.png | 7.57KB | 3.29KB | ▼ 56.59% |
addons/images/wp-paypal-product-variations.png | 5.09KB | 2.58KB | ▼ 49.33% |