Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.69ms] Passed 4 tests
This is a short check of server-side resources used by NETbilling for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.32 ▼3.77 |
Dashboard /wp-admin | 3.34 ▲0.04 | 56.22 ▲3.19 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.22 ▲1.35 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 87.21 ▼19.53 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.90 ▲3.83 |
Server storage [IO: ▲1.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 179 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for NETbilling for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 13.21 ▼1.17 | 2.20 ▲0.21 | 44.40 ▼0.06 |
Dashboard /wp-admin | 2,226 ▲20 | 4.80 ▼1.12 | 109.51 ▲9.51 | 38.30 ▲3.39 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.02 ▲0.04 | 38.50 ▼17.29 | 34.02 ▼13.71 |
Add New Post /wp-admin/post-new.php | 1,553 ▲8 | 23.21 ▲0.15 | 673.67 ▼10.07 | 54.28 ▼12.35 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.12 ▼0.08 | 122.91 ▲13.37 | 50.90 ▲2.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/netbilling-for-woocommerce/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-order-partial-capture.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/netbilling-for-woocommerce/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-profile-field-customer-id.php:27
- > PHP Notice
Undefined variable: token in wp-content/plugins/netbilling-for-woocommerce/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/netbilling-for-woocommerce/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor.php:28
- > PHP Fatal error
Uncaught Error: Class 'SkyVerge\\WooCommerce\\PluginFramework\\v5_10_12\\Payment_Gateway\\Handlers\\Abstract_Payment_Handler' not found in wp-content/plugins/netbilling-for-woocommerce/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/Handlers/Abstract_Hosted_Payment_Handler.php:39
- > PHP Notice
Undefined variable: input_name in wp-content/plugins/netbilling-for-woocommerce/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/netbilling-for-woocommerce/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-admin-gateway-status.php:31
- > PHP Notice
Undefined variable: index in wp-content/plugins/netbilling-for-woocommerce/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 35
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/netbilling-for-woocommerce/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 39
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/netbilling-for-woocommerce/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php:88
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: netbilling, credit card processing, gateway, woocommerce, transactions...
netbilling-for-woocommerce/netbilling-for-woocommerce.php Passed 13 tests
The principal PHP file in "NETbilling for WooCommerce" v. 1.0.0 is loaded by WordPress automatically on each request
57 characters long description:
Accept payments via NETbilling in your WooCommerce store.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin16,241 lines of code in 142 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 9,437 | 18,694 | 14,677 |
PO File | 1 | 433 | 766 | 1,097 |
JavaScript | 9 | 89 | 208 | 339 |
CSS | 7 | 19 | 0 | 107 |
SVG | 21 | 0 | 0 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 22.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 271.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 13 | |
Traits | 1 | |
Classes | 83 | |
▷ Abstract classes | 24 | 28.92% |
▷ Concrete classes | 59 | 71.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,538 | |
▷ Static methods | 128 | 8.32% |
▷ Public methods | 1,073 | 69.77% |
▷ Protected methods | 442 | 28.74% |
▷ Private methods | 23 | 1.50% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 95 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 95 | 100.00% |
▷ Public constants | 95 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
22 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-solo.png | 0.80KB | 0.86KB | 0.00% |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-jcb.png | 0.80KB | 0.83KB | 0.00% |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-moneybookers.png | 0.70KB | 0.73KB | 0.00% |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-visa.png | 0.82KB | 0.85KB | 0.00% |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-mastercard.png | 3.87KB | 2.16KB | ▼ 44.22% |