Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼293.57ms] Passed 4 tests
A check of server-side resources used by PayPal Donation Button
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 54.53 ▲5.63 |
Dashboard /wp-admin | 3.42 ▲0.01 | 33.17 ▼0.81 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.74 ▼0.50 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 105.72 ▼1,173.88 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 24.73 ▲0.92 |
PayPal Donation /wp-admin/options-general.php?page=button-paypal-donation/paypal-donation-button.php | 3.27 | 22.14 |
Server storage [IO: ▲1.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 1 new option
New WordPress options |
---|
paypal_donation_button_options |
Browser metrics Passed 4 tests
A check of browser resources used by PayPal Donation Button
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,771 ▲27 | 16.24 ▲0.53 | 6.07 ▼0.37 | 2.34 ▲0.52 |
Dashboard /wp-admin | 2,897 ▲36 | 6.17 ▼0.04 | 115.94 ▼14.95 | 154.31 ▼5.76 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.25 ▲0.02 | 60.89 ▼0.78 | 141.20 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,755 ▲89 | 21.64 ▲0.84 | 424.68 ▲13.63 | 154.27 ▼2.77 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.54 ▲0.04 | 133.93 ▲0.44 | 195.75 ▲9.90 |
PayPal Donation /wp-admin/options-general.php?page=button-paypal-donation/paypal-donation-button.php | 1,465 | 2.54 | 57.98 | 174.17 |
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
Uninstall script ran successfully
Smoke tests 50% 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)
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/button-paypal-donation/paypal-donation-button.php:30
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=button-paypal-donation/paypal-donation-button.php
- > Network (severe)
wp-content/plugins/button-paypal-donation/images/blue-button-two.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=button-paypal-donation/paypal-donation-button.php
- > Network (severe)
wp-content/plugins/button-paypal-donation/images/blue-button-three.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=button-paypal-donation/paypal-donation-button.php
- > Network (severe)
wp-content/plugins/button-paypal-donation/images/blue-button-four.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=button-paypal-donation/paypal-donation-button.php
- > Network (severe)
wp-content/plugins/button-paypal-donation/images/light-button-one.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Screenshot #7 (Screenshot of option page all button avialable to lite version (27 buttons)) image not found
button-paypal-donation/paypal-donation-button.php 92% from 13 tests
The main PHP script in "PayPal Donation Button" version 1.9.6 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("button-paypal-donation.php" instead of "paypal-donation-button.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin434 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 38 | 14 | 434 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 1.43MB with 0.97MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-7.png | 389.05KB | 150.90KB | ▼ 61.21% |
screenshot-4.png | 130.00KB | 47.86KB | ▼ 63.19% |
screenshot-5.png | 151.45KB | 50.54KB | ▼ 66.63% |
screenshot-1.png | 122.81KB | 39.25KB | ▼ 68.04% |
images/donate-with-paypal-four.png | 83.31KB | 17.03KB | ▼ 79.56% |