Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼12.85ms] Passed 4 tests
Server-side resources used by Super Payments - WooCommerce Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 41.04 ▼1.84 |
Dashboard /wp-admin | 3.33 ▼0.02 | 48.46 ▼22.41 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.42 ▼0.62 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.44 ▼22.16 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 33.16 ▼4.99 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
woocommerce_gateway_order |
can_compress_scripts |
Browser metrics Passed 4 tests
Super Payments - WooCommerce Payment Gateway: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.10 ▼0.25 | 1.76 ▲0.03 | 41.41 ▼7.04 |
Dashboard /wp-admin | 2,199 ▲19 | 5.56 ▼0.04 | 82.82 ▼6.22 | 39.22 ▼3.43 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.97 ▼0.04 | 35.40 ▼6.19 | 31.21 ▼6.71 |
Add New Post /wp-admin/post-new.php | 1,530 ▼5 | 23.65 ▲5.46 | 746.47 ▲102.04 | 58.92 ▼10.33 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.26 ▼0.05 | 100.99 ▼3.37 | 42.04 ▼0.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- woocommerce_gateway_order
- theysaidso_admin_options
- db_upgraded
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/super-payments/include/checkout.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-payments/include/marketing-assets.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/super-payments/include/order.php:108
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-payments/include/admin.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-payments/include/public-scripts.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-payments/include/api.php:76
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-payments/include/events.php:77
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: woocommerce, super payments, super
super-payments/super-payments.php Passed 13 tests
The main PHP script in "Super Payments - WooCommerce Payment Gateway" version 1.16.1 is automatically included on every request by WordPress
89 characters long description:
Take payments on your store, eliminate payment fees and give your customers cash rewards.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,325 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 291 | 511 | 1,290 |
CSS | 1 | 0 | 0 | 25 |
JavaScript | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 7 | 29.17% |
▷ Public methods | 23 | 95.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.17% |
Functions | 41 | |
▷ Named functions | 39 | 95.12% |
▷ Anonymous functions | 2 | 4.88% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/superbuttonicon.png | 3.60KB | 2.01KB | ▼ 44.06% |