Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class '\WSB\Activator' not found
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.38ms] Passed 4 tests
Analyzing server-side resources used by Woocommerce Gateway XEM
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.70 ▲0.11 |
Dashboard /wp-admin | 3.34 ▲0.04 | 51.68 ▼1.67 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.25 ▼0.86 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 86.98 ▼11.08 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.30 ▲7.18 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woocommerce Gateway XEM
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.29 ▲0.01 | 1.75 ▼0.17 | 44.60 ▼4.47 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▲0.10 | 95.20 ▲4.42 | 42.40 ▲3.85 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.01 ▲0.03 | 35.09 ▼2.36 | 34.87 ▲1.97 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 23.50 ▲0.41 | 687.14 ▲57.98 | 56.23 ▲4.29 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▲0.01 | 106.29 ▼3.74 | 47.48 ▲5.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-xem-gateway/includes/class-wc-gateway-xem.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-xem-gateway/includes/class-xem-ajax.php:20
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 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
8 plugin tags: nem, xem, payment gateway, bitcoin, xme coin...
woo-xem-gateway/woocommerce-gateway-xem.php 85% from 13 tests
The main PHP file in "Woocommerce Gateway XEM" ver. 2.1.9 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-xem-gateway.php" instead of "woocommerce-gateway-xem.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin2,438 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 234 | 316 | 1,190 |
PHP | 6 | 181 | 224 | 707 |
PO File | 4 | 168 | 168 | 450 |
Sass | 1 | 6 | 0 | 54 |
CSS | 1 | 12 | 4 | 37 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 20.80 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 20 | 41.67% |
▷ Public methods | 39 | 81.25% |
▷ Protected methods | 1 | 2.08% |
▷ Private methods | 8 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/pay_with_xem.png | 18.76KB | 8.97KB | ▼ 52.19% |
assets/img/copy.png | 0.42KB | 0.34KB | ▼ 19.59% |