Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▼4.17ms] Passed 4 tests
Analyzing server-side resources used by Better Payment - Instant Payments Through PayPal & Stripe
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.39 | 38.11 ▼3.43 |
Dashboard /wp-admin | 3.74 ▲0.43 | 49.07 ▼5.68 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 53.96 ▲5.99 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 88.08 ▼11.80 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 37.24 ▲4.24 |
Better Payment /wp-admin/admin.php?page=better-payment-setup-wizard | 3.72 | 36.38 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 111 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_better_payment |
New WordPress options |
---|
better_payment_setup_wizard |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
better_payment_version |
Browser metrics Passed 4 tests
Better Payment - Instant Payments Through PayPal & Stripe: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲191 | 13.53 ▼0.87 | 11.97 ▲10.12 | 39.30 ▲1.32 |
Dashboard /wp-admin | 2,201 ▲24 | 5.56 ▼0.02 | 94.49 ▼10.84 | 40.84 ▼3.81 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.96 ▼0.06 | 36.16 ▼1.13 | 38.46 ▲4.63 |
Add New Post /wp-admin/post-new.php | 1,387 ▼144 | 20.96 ▼1.97 | 591.73 ▼94.75 | 38.38 ▼27.53 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.22 ▼0.06 | 99.83 ▲1.68 | 41.55 ▼2.47 |
Better Payment /wp-admin/admin.php?page=better-payment-setup-wizard | 1,350 | 1.85 | 29.89 | 58.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_better_payment
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- better_payment_setup_wizard
- widget_recent-posts
- theysaidso_admin_options
- better_payment_version
- db_upgraded
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)
Good news, no errors were detected
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
The following issues need your attention
- 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Better_Payment\\Lite\\Classes\\Better_Payment_Helper' not found in wp-content/plugins/better-payment/includes/Admin/views/elementor/layouts/layout-2.php:7
- > PHP Notice
Undefined variable: better_payment_helper_obj in wp-content/plugins/better-payment/includes/Admin/views/partials/layout-repeater-vars.php on line 13
- > PHP Fatal error
Uncaught Error: Call to a member function titleToSnake() on null in wp-content/plugins/better-payment/includes/Admin/views/partials/layout-repeater-vars.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/better-payment/includes/Admin/views/partials/go-premium.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_allowed_html() in wp-content/plugins/better-payment/includes/Admin/views/partials/layout-vars.php:26
- > PHP Fatal error
Uncaught Error: Class 'ElementorPro\\Modules\\Forms\\Classes\\Action_Base' not found in wp-content/plugins/better-payment/includes/Admin/Elementor/Form_Actions/Better_Payment_Stripe_Integration.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/better-payment/includes/Admin/views/partials/custom-dropdown.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/better-payment/includes/Admin/views/elementor/layouts/layout-1-legacy.php:3
- > PHP Fatal error
Uncaught Error: Class 'Better_Payment\\Lite\\Classes\\Better_Payment_Helper' not found in wp-content/plugins/better-payment/includes/Admin/views/elementor/layouts/layout-3.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/better-payment/includes/Admin/views/template-email-notification.php:83
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% 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
7 plugin tags: checkout, better payment, paypal payment, elementor payment, stripe donation...
better-payment/better-payment.php 85% from 13 tests
The main PHP file in "Better Payment - Instant Payments Through PayPal & Stripe" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 163 characters long)
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 plugin21,278 lines of code in 102 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 1,548 | 1,648 | 9,609 |
JavaScript | 15 | 969 | 851 | 5,994 |
CSS | 17 | 824 | 75 | 5,318 |
SVG | 11 | 4 | 2 | 351 |
JSON | 2 | 0 | 0 | 6 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 24.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 4 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 1 | 3.12% |
Methods | 254 | |
▷ Static methods | 61 | 24.02% |
▷ Public methods | 241 | 94.88% |
▷ Protected methods | 7 | 2.76% |
▷ Private methods | 6 | 2.36% |
Functions | 10 | |
▷ Named functions | 4 | 40.00% |
▷ Anonymous functions | 6 | 60.00% |
Constants | 14 | |
▷ Global constants | 11 | 78.57% |
▷ Class constants | 3 | 21.43% |
▷ Public constants | 3 | 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
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/paypal.png | 1.09KB | 0.75KB | ▼ 31.07% |
assets/img/better-payment-icon-white-small.png | 0.49KB | 0.77KB | 0.00% |
assets/vendor/jquery-ui/css/images/ui-icons_444444_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |