Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼2.76ms] Passed 4 tests
This is a short check of server-side resources used by netdebit-woocommerce-gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.09 ▲6.58 |
Dashboard /wp-admin | 3.32 ▼0.03 | 47.31 ▼16.24 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.68 ▲2.01 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 95.99 ▲0.97 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.95 ▲2.21 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for netdebit-woocommerce-gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.72 ▲0.32 | 1.62 ▲0.13 | 36.62 ▼4.12 |
Dashboard /wp-admin | 2,198 ▲28 | 5.64 ▼0.01 | 91.61 ▼12.52 | 43.21 ▲2.51 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.94 ▼0.18 | 38.93 ▼3.26 | 35.23 ▼7.57 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.92 ▼0.20 | 637.95 ▲50.84 | 52.47 ▼1.64 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.16 ▼0.02 | 94.26 ▼3.72 | 39.65 ▼0.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- 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
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 18× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/netdebit-payment-gateway/src/Table/SubscriptionsTable.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/netdebit-payment-gateway/netdebit-woocommerce-gateway.php:24
- > PHP Fatal error
Uncaught Error: Interface 'NetDebit\\Plugin\\WooCommerce\\Initialisation\eedsInitialisation' not found in wp-content/plugins/netdebit-payment-gateway/src/WebHook/WC_NetDebit_Booking.php:19
- > PHP Fatal error
Uncaught Error: Interface 'NetDebit\\Plugin\\WooCommerce\\Initialisation\eedsInitialisation' not found in wp-content/plugins/netdebit-payment-gateway/src/WebHook/WC_NetDebit_ThankYou.php:15
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/netdebit-payment-gateway/src/Table/SubscriptionsTable.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/netdebit-payment-gateway/src/Table/SubscriptionsTable.php on line 5
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/netdebit-payment-gateway/src/Table/SubscriptionPaymentsTable.php on line 5
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/netdebit-payment-gateway/src/Table/BookingTable.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/netdebit-payment-gateway/includes/class_wc_netdebit_payment.php:2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/netdebit-payment-gateway/src/Table/SubscriptionPaymentsTable.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Tags: You are using too many tags: 19 tag instead of maximum 10
- Donate link: Invalid url: "-"
netdebit-payment-gateway/netdebit-woocommerce-gateway.php 92% from 13 tests
The primary PHP file in "netdebit-woocommerce-gateway" version 0.1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("netdebit-payment-gateway.php" instead of "netdebit-woocommerce-gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,378 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 297 | 109 | 1,190 |
PO File | 2 | 68 | 77 | 184 |
JavaScript | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 20 | 25.64% |
▷ Public methods | 57 | 73.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 21 | 26.92% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 28 | |
▷ Global constants | 6 | 21.43% |
▷ Class constants | 22 | 78.57% |
▷ Public constants | 22 | 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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/nd_logo.png | 19.84KB | 2.40KB | ▼ 87.93% |