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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.27ms] Passed 4 tests
An overview of server-side resources used by OpenPath for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 39.75 ▼1.37 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.43 ▼4.71 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.53 ▼7.14 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.10 ▼7.87 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.79 ▲1.27 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
OpenPath for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 13.17 ▼1.26 | 5.20 ▲3.38 | 43.04 ▲0.09 |
Dashboard /wp-admin | 2,203 ▲15 | 4.84 ▼0.04 | 109.94 ▼4.36 | 43.08 ▼1.72 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.02 ▼0.02 | 39.33 ▼1.85 | 32.43 ▼5.54 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.56 ▼5.93 | 691.28 ▲74.59 | 58.29 ▲2.69 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.26 ▲0.05 | 104.91 ▲7.06 | 41.53 ▼3.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway_CC' not found in wp-content/plugins/openpath-payment-gateway-for-woocommerce/woocommerce_openpath.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/openpath-payment-gateway-for-woocommerce/woo-openpath-plug-in.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: e-commerce, openpath, ecommerce, payment gateway, payments...
openpath-payment-gateway-for-woocommerce/woo-openpath-plug-in.php 77% from 13 tests
The entry point to "OpenPath for WooCommerce" version 3.8.3 is a PHP file that has certain tags in its header comment area
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 folder was not found ("/wp-plug-in/")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("openpath-payment-gateway-for-woocommerce.php" instead of "woo-openpath-plug-in.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,196 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 260 | 161 | 1,123 |
JavaScript | 2 | 13 | 8 | 73 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 157.00 |
▷ Minimum class complexity | 157.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 8.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 14 | 63.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 36.36% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected