Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/payment-form-for-paypal-pro/cp_ppp.php+84
Undefined variable: wpdb
Server metrics [RAM: ▼0.09MB] [CPU: ▼4.50ms] Passed 4 tests
Server-side resources used by Payment Form for PayPal Pro
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.99 ▼0.47 | 21.22 ▼21.50 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.17 ▲2.64 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.24 ▲3.13 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 87.26 ▲3.10 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.17 ▼2.23 |
Manage Forms /wp-admin/admin.php?page=cp_ppp | 3.38 | 31.39 |
Payment Form for PayPal Pro /wp-admin/options-general.php?page=cp_ppp | 3.25 | 30.98 |
Upgrade /wp-admin/admin.php?page=cp_ppp_upgrade | 3.20 | 28.66 |
Server storage [IO: ▲1.01MB] [DB: ▲0.64MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 250 new files
Database: 3 new tables, 9 new options
New tables |
---|
wp_cp_ppp_discount_codes |
wp_cp_ppp_posts |
wp_cp_ppp_settings |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
installed_payment-form-for-paypal-pro |
autoptimize_js_exclude |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_cp_ppp_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Payment Form for PayPal Pro
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 13.70 ▼0.67 | 5.93 ▲4.21 | 46.09 ▲6.19 |
Dashboard /wp-admin | 2,237 ▲52 | 5.84 ▼0.04 | 102.23 ▲0.37 | 38.91 ▲0.83 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.01 ▼0.03 | 33.50 ▼1.40 | 34.76 ▲2.31 |
Add New Post /wp-admin/post-new.php | 6,229 ▲4,710 | 19.25 ▼4.06 | 908.96 ▲258.12 | 41.94 ▼15.44 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.22 ▲0.04 | 95.12 ▼10.77 | 40.67 ▼6.96 |
Manage Forms /wp-admin/admin.php?page=cp_ppp | 1,048 | 2.33 | 45.55 | 32.35 |
Payment Form for PayPal Pro /wp-admin/options-general.php?page=cp_ppp | 1,048 | 2.32 | 42.40 | 32.61 |
Upgrade /wp-admin/admin.php?page=cp_ppp_upgrade | 1,492 | 2.43 | 59.98 | 56.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.64MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure failed, leaving 3 tables in the database
- wp_cp_ppp_discount_codes
- wp_cp_ppp_posts
- wp_cp_ppp_settings
- Zombie WordPress options detected upon uninstall: 9 options
- installed_payment-form-for-paypal-pro
- widget_cp_ppp_widget
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- autoptimize_js_exclude
Smoke tests 25% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/payment-form-for-paypal-pro/js/fbuilder-loader-admin.php
- > /wp-content/plugins/payment-form-for-paypal-pro/cp_ppp_public_int.inc.php
- > /wp-content/plugins/payment-form-for-paypal-pro/js/fbuilder-loader-public.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/payment-form-for-paypal-pro/cp_ppp_admin_int_message_list.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/payment-form-for-paypal-pro/banner.php:102
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/payment-form-for-paypal-pro/cp_admin_int_edition.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/payment-form-for-paypal-pro/cp-feedback.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/payment-form-for-paypal-pro/cp_ppp_admin_int_list.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/payment-form-for-paypal-pro/cp_ppp_paypal_pro_int.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/payment-form-for-paypal-pro/cp_ppp_admin_int.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/payment-form-for-paypal-pro/cp_ppp.php:24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=cp_ppp_upgrade
- > Javascript (severe) in unknown
https://wordpress.dwbooster.com/TSScript/tab.js 37:11 Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
10 plugin tags: accept, paypal advanced, paypal pro, processing, card...
payment-form-for-paypal-pro/cp_ppp.php 92% from 13 tests
The main PHP script in "Payment Form for PayPal Pro" version 1.1.69 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("payment-form-for-paypal-pro.php" instead of "cp_ppp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected10,660 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 41 | 317 | 145 | 3,725 |
PHP | 12 | 582 | 108 | 3,353 |
PO File | 60 | 1,007 | 526 | 2,843 |
CSS | 9 | 67 | 150 | 709 |
INI | 6 | 0 | 0 | 30 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 42 | |
▷ Named functions | 41 | 97.62% |
▷ Anonymous functions | 1 | 2.38% |
Constants | 72 | |
▷ Global constants | 72 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
42 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png | 0.12KB | 0.15KB | 0.00% |
images/custom_hsb_s.png | 1.14KB | 0.89KB | ▼ 21.75% |
images/colorpicker_overlay.png | 10.11KB | 8.24KB | ▼ 18.50% |
images/colorpicker_hex.png | 0.52KB | 0.42KB | ▼ 19.92% |
templates/03/top_bg.png | 9.15KB | 8.83KB | ▼ 3.51% |