Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼5.46ms] Passed 4 tests
A check of server-side resources used by WooCommerce TPro3 Payment Gateway
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 38.60 ▼5.08 |
Dashboard /wp-admin | 3.53 ▲0.22 | 46.82 ▲0.61 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 48.78 ▼2.97 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 88.46 ▼14.41 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 36.13 ▲2.20 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce TPro3 Payment Gateway
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲68 | 13.22 ▼1.09 | 3.85 ▲2.11 | 37.34 ▼6.37 |
Dashboard /wp-admin | 2,209 ▲30 | 4.87 ▼1.01 | 111.88 ▲7.97 | 44.53 ▲0.69 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.02 ▼0.04 | 39.17 ▼4.28 | 36.16 ▼1.20 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.58 ▼5.61 | 674.16 ▲7.19 | 58.06 ▲0.55 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.21 ▲0.04 | 93.46 ▼20.80 | 39.89 ▼9.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
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
Good news, no errors were detected
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tpro3-payment-gateway-for-woocommerce/tpro3.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== tpro3-payment-gateway-for-woocommerce ===
)
tpro3-payment-gateway-for-woocommerce/tpro3.php 92% from 13 tests
The main PHP script in "WooCommerce TPro3 Payment Gateway" version 1.2.1 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tpro3-payment-gateway-for-woocommerce.php" instead of "tpro3.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
Everything looks great! No dangerous files found in this plugin1,697 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 2,115 | 128 | 1,514 |
JavaScript | 1 | 19 | 5 | 183 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 119.00 |
▷ Minimum class complexity | 119.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 10.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin