Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.10ms] Passed 4 tests
This is a short check of server-side resources used by Inovio Payment Gateway WooCommerce Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.95 ▼4.32 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.65 ▼1.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.27 ▲0.06 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.65 ▲4.02 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 30.77 ▼2.22 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 23 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_ach_inovio_refunded |
wp_inovio_refunded |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Inovio Payment Gateway WooCommerce Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.84 ▲0.60 | 1.65 ▼0.30 | 39.59 ▼2.45 |
Dashboard /wp-admin | 2,209 ▲21 | 5.89 ▲1.01 | 107.47 ▲0.20 | 41.14 ▲1.26 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.03 | 38.64 ▲4.00 | 35.30 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.13 ▼0.21 | 594.84 ▼66.91 | 48.49 ▼6.25 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▲0.05 | 94.79 ▼7.44 | 43.18 ▼0.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_inovio_refunded
- wp_ach_inovio_refunded
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/inovio-payment-gateway/includes/inoviopay/woocommerce-inovio-gateway.php:14
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/inovio-payment-gateway/includes/ach/methods/class-ach-inovio-method.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/inovio-payment-gateway/includes/installer/inovio-plugin-database-table.php:44
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/inovio-payment-gateway/includes/inoviopay/methods/class-inovio-direct-method.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/inovio-payment-gateway/includes/ach/class-woocommerce-ach-inovio-gateway.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
There were no plugin tags found
inovio-payment-gateway/woocommerce-inovio-gateway.php 77% from 13 tests
The main PHP script in "Inovio Payment Gateway WooCommerce Plugin" version 4.4.23 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("inovio-payment-gateway.php" instead of "woocommerce-inovio-gateway.php")
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 plugin1,370 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 258 | 554 | 1,251 |
JavaScript | 2 | 31 | 13 | 106 |
CSS | 1 | 2 | 0 | 13 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 14.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 51 | 75.00% |
▷ Protected methods | 1 | 1.47% |
▷ Private methods | 16 | 23.53% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/img/ach-check-logo.png | 4.81KB | 0.00KB | ▼ 100.00% |
assets/img/inovio-logo.png | 4.69KB | 2.24KB | ▼ 52.20% |
assets/img/ach-check-logo-4.png | 13.92KB | 5.54KB | ▼ 60.21% |