Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▲1.09ms] Passed 4 tests
A check of server-side resources used by Pay Advantage
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 38.61 ▼1.47 |
Dashboard /wp-admin | 3.62 ▲0.31 | 53.31 ▲5.91 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 47.42 ▼0.80 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 95.64 ▲3.31 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 37.94 ▲3.33 |
Pay Advantage /wp-admin/options-general.php?page=PayAdvantage | 3.51 | 34.91 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 27 new options
New WordPress options |
---|
pay_advantage_wc_cancel_status |
pay_advantage_access_token |
pay_advantage_show_credit_card |
pay_advantage_wc_paid_status |
theysaidso_admin_options |
pay_advantage_require_country |
pay_advantage_credit_card_description |
can_compress_scripts |
pay_advantage_require_address |
widget_pay_advantage_credit_card_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Pay Advantage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲165 | 13.78 ▼0.55 | 9.91 ▲8.17 | 37.01 ▼6.67 |
Dashboard /wp-admin | 2,196 ▲16 | 5.53 ▼0.07 | 85.28 ▼2.48 | 38.14 ▲0.12 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.94 ▼0.06 | 38.90 ▲0.45 | 35.61 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,538 ▲7 | 23.23 ▲0.17 | 646.09 ▲24.72 | 60.50 ▲10.85 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.23 ▲0.06 | 100.21 ▼1.42 | 42.00 ▼0.53 |
Pay Advantage /wp-admin/options-general.php?page=PayAdvantage | 1,064 | 1.69 | 27.83 | 28.55 |
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 does not fully uninstall, leaving 12 options in the database
- db_upgraded
- widget_pay_advantage_credit_card_widget
- pay_advantage_make_payment_button
- pay_advantage_wc_cancel_status
- widget_pay_advantage_bpay_widget
- pay_advantage_wc_oncharge_credit_card_fees
- theysaidso_admin_options
- pay_advantage_wc_paid_status
- widget_recent-posts
- can_compress_scripts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pay-advantage/public/ajax-payadvantage-creditcard.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pay-advantage/public/widget-payadvantage-register-bpay.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pay-advantage/admin/html/options-html.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pay-advantage/public/ajax-payadvantage-woocommerce.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pay-advantage/payadvantage.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pay-advantage/public/ajax-payadvantage-customer.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pay-advantage/includes/payadvantage-files.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pay-advantage/admin/options-ajax.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pay-advantage/admin/options-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pay-advantage/migration/migration.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: payment gateway, online payments, e-commerce, credit cards
pay-advantage/payadvantage.php 69% from 13 tests
The principal PHP file in "Pay Advantage" v. 3.3.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Requires at least: Required version must match the one declared in readme.txt ("5.2" instead of "3.7")
- Main file name: Name the main plugin file the same as the plugin slug ("pay-advantage.php" instead of "payadvantage.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
Success! There were no dangerous files found in this plugin3,228 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 317 | 224 | 1,686 |
JavaScript | 10 | 252 | 395 | 1,367 |
SVG | 3 | 0 | 1 | 93 |
CSS | 1 | 17 | 5 | 82 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 6 | 18.18% |
▷ Public methods | 27 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 18.18% |
Functions | 32 | |
▷ Named functions | 31 | 96.88% |
▷ Anonymous functions | 1 | 3.12% |
Constants | 7 | |
▷ Global constants | 7 | 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
5 PNG files occupy 0.23MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/pa_logo-30.png | 3.32KB | 2.28KB | ▼ 31.24% |
assets/icon-256x256.png | 7.13KB | 2.77KB | ▼ 61.11% |
assets/banner-772x250.png | 223.78KB | 81.93KB | ▼ 63.39% |
assets/icon-26x26.png | 0.51KB | 0.48KB | ▼ 4.80% |
assets/icon-128x128.png | 3.17KB | 1.57KB | ▼ 50.55% |