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 gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.31ms] Passed 4 tests
Analyzing server-side resources used by Paystack WooCommerce Payment Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.69 ▼3.90 |
Dashboard /wp-admin | 3.34 ▼0.01 | 46.39 ▼19.53 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.62 ▲1.23 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 102.97 ▲2.27 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.72 ▲0.97 |
Server storage [IO: ▲1.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Paystack WooCommerce Payment Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲25 | 14.30 ▼0.08 | 1.81 ▼0.06 | 40.46 ▲2.33 |
Dashboard /wp-admin | 2,196 ▲16 | 5.53 ▼0.11 | 91.43 ▼11.83 | 40.42 ▼3.92 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.95 ▼0.07 | 39.81 ▼0.21 | 38.15 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.12 ▼0.11 | 584.07 ▼73.38 | 54.28 ▲0.93 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.24 ▲0.04 | 98.08 ▼1.05 | 41.10 ▼2.82 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_Custom_Paystack' not found in wp-content/plugins/woo-paystack/includes/custom-gateways/gateway-one/class-wc-gateway-paystack-one.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_Custom_Paystack_Blocks_Support' not found in wp-content/plugins/woo-paystack/includes/custom-gateways/gateway-one/class-wc-gateway-paystack-one-blocks-support.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_Custom_Paystack_Blocks_Support' not found in wp-content/plugins/woo-paystack/includes/custom-gateways/gateway-three/class-wc-gateway-paystack-three-blocks-support.php:3
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/woo-paystack/includes/custom-gateways/class-wc-gateway-custom-paystack-blocks-support.php:7
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_Custom_Paystack_Blocks_Support' not found in wp-content/plugins/woo-paystack/includes/custom-gateways/gateway-five/class-wc-gateway-paystack-five-blocks-support.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_Custom_Paystack' not found in wp-content/plugins/woo-paystack/includes/custom-gateways/gateway-five/class-wc-gateway-paystack-five.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_Custom_Paystack' not found in wp-content/plugins/woo-paystack/includes/custom-gateways/gateway-four/class-wc-gateway-paystack-four.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_Custom_Paystack' not found in wp-content/plugins/woo-paystack/includes/custom-gateways/gateway-three/class-wc-gateway-paystack-three.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_Custom_Paystack_Blocks_Support' not found in wp-content/plugins/woo-paystack/includes/custom-gateways/gateway-two/class-wc-gateway-paystack-two-blocks-support.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Gateway_Custom_Paystack_Blocks_Support' not found in wp-content/plugins/woo-paystack/includes/custom-gateways/gateway-four/class-wc-gateway-paystack-four-blocks-support.php:3
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
woo-paystack/woo-paystack.php 92% from 13 tests
"Paystack WooCommerce Payment Gateway" version 5.8.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.8" instead of "7.0")
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
Everything looks great! No dangerous files found in this plugin2,575 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 918 | 625 | 2,309 |
JavaScript | 10 | 80 | 9 | 266 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 20.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 158.00 |
Average method complexity | 6.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 6 | 40.00% |
Methods | 56 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 53 | 94.64% |
▷ Protected methods | 2 | 3.57% |
▷ Private methods | 1 | 1.79% |
Functions | 10 | |
▷ Named functions | 6 | 60.00% |
▷ Anonymous functions | 4 | 40.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
42 PNG files occupy 1.12MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/zenith.png | 5.17KB | 2.67KB | ▼ 48.48% |
assets/images/mastercard.png | 7.97KB | 2.82KB | ▼ 64.67% |
assets/images/ecobank.png | 5.97KB | 3.83KB | ▼ 35.83% |
assets/images/paystack-za.png | 4.40KB | 3.06KB | ▼ 30.39% |
assets/images/paystackwhite.png | 11.93KB | 7.09KB | ▼ 40.55% |