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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.03ms] Passed 4 tests
This is a short check of server-side resources used by XL NMI Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.57 ▼6.32 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.11 ▼4.33 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 49.18 ▲2.94 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 95.57 ▼0.80 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.41 ▼0.65 |
Server storage [IO: ▲3.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 318 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
XL NMI Gateway for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.61 ▼0.75 | 1.89 ▼0.14 | 40.62 ▼3.34 |
Dashboard /wp-admin | 2,203 ▲11 | 5.78 ▲0.74 | 96.18 ▼19.81 | 41.40 ▼1.10 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.00 | 39.34 ▲3.07 | 37.21 ▲4.65 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.15 ▲5.57 | 611.28 ▼66.56 | 53.25 ▲2.04 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.24 ▲0.09 | 98.88 ▲2.60 | 43.48 ▼3.33 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 34× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: notifications_list in wp-content/plugins/woofunnels-woocommerce-nmi-gateway/woofunnels/views/woofunnels-notifications.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/woofunnels-woocommerce-nmi-gateway/woofunnels/as-data-store/asct/class-bwf-as-action-store.php:3
- > PHP Fatal error
Uncaught Error: Class 'BWF_Plugin_Compatibilities' not found in wp-content/plugins/woofunnels-woocommerce-nmi-gateway/woofunnels/compatibilities/class-bwf-compatibility-with-aelia-cs.php:84
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woofunnels-woocommerce-nmi-gateway/lib/skyverge/woocommerce/payment-gateway/admin/views/html-user-payment-token-editor-token.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woofunnels-woocommerce-nmi-gateway/woofunnels/as-data-store/class-woofunnels-as-ds.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/woofunnels-woocommerce-nmi-gateway/lib/skyverge/woocommerce/payment-gateway/admin/views/html-admin-gateway-status.php:31
- > PHP Fatal error
Uncaught Error: Class 'WFCO_Model' not found in wp-content/plugins/woofunnels-woocommerce-nmi-gateway/woofunnels/connector/db/class-wfco-model-connectormeta.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/woofunnels-woocommerce-nmi-gateway/woofunnels/includes/class-bwf-data-tags.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/woofunnels-woocommerce-nmi-gateway/woofunnels/as-data-store/asct/class-bwf-as-cli.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woofunnels-woocommerce-nmi-gateway/woofunnels/includes/class-bwf-ecomm-tracking-common.php:16
- > PHP Notice
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 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please describe screenshot #7 in woofunnels-woocommerce-nmi-gateway/assets to your readme.txt
woofunnels-woocommerce-nmi-gateway/woofunnels-woocommerce-nmi-gateway.php 92% from 13 tests
"XL NMI Gateway for WooCommerce" version 2.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 200 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected40,208 lines of code in 252 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 182 | 11,016 | 19,184 | 29,459 |
JavaScript | 17 | 646 | 158 | 4,659 |
CSS | 12 | 444 | 29 | 3,068 |
JSON | 3 | 1 | 0 | 1,911 |
CoffeeScript | 6 | 464 | 313 | 633 |
Sass | 5 | 85 | 26 | 392 |
SVG | 26 | 0 | 3 | 51 |
XML | 1 | 4 | 0 | 35 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 28.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 279.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 81.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 13 | |
Traits | 0 | |
Classes | 144 | |
▷ Abstract classes | 25 | 17.36% |
▷ Concrete classes | 119 | 82.64% |
▷ Final classes | 1 | 0.84% |
Methods | 2,162 | |
▷ Static methods | 379 | 17.53% |
▷ Public methods | 1,724 | 79.74% |
▷ Protected methods | 406 | 18.78% |
▷ Private methods | 32 | 1.48% |
Functions | 60 | |
▷ Named functions | 35 | 58.33% |
▷ Anonymous functions | 25 | 41.67% |
Constants | 86 | |
▷ Global constants | 15 | 17.44% |
▷ Class constants | 71 | 82.56% |
▷ Public constants | 71 | 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
31 compressed PNG files occupy 0.41MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/skyverge/woocommerce/payment-gateway/assets/images/card-cartebleue.png | 0.35KB | 0.38KB | 0.00% |
lib/skyverge/woocommerce/payment-gateway/assets/images/card-laser.png | 1.05KB | 1.19KB | 0.00% |
lib/skyverge/woocommerce/payment-gateway/assets/images/card-visa-electron.png | 0.94KB | 1.00KB | 0.00% |
lib/skyverge/woocommerce/payment-gateway/assets/images/card-echeck.png | 1.09KB | 1.15KB | 0.00% |
admin/assets/img/nextmove.png | 5.32KB | 2.53KB | ▼ 52.45% |