Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.11MB] [CPU: ▼16.37ms] Passed 4 tests
This is a short check of server-side resources used by Payment Forms for Paystack
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.62 | 46.84 ▲10.04 |
Dashboard /wp-admin | 3.92 ▲0.57 | 52.38 ▼7.47 |
Posts /wp-admin/edit.php | 3.97 ▲0.62 | 47.51 ▼1.54 |
Add New Post /wp-admin/post-new.php | 3.70 ▼2.18 | 37.80 ▼66.52 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 46.67 ▲10.19 |
All Forms /wp-admin/edit.php?post_type=paystack_form | 3.88 | 35.90 |
Add New /wp-admin/post-new.php?post_type=paystack_form | 3.70 | 34.43 |
Server storage [IO: ▲3.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 58 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_paystack_forms_payments |
New WordPress options |
---|
plugin_error |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
kkd_db_version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Payment Forms for Paystack
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲192 | 13.71 ▼1.01 | 9.47 ▲7.63 | 42.11 ▼2.40 |
Dashboard /wp-admin | 2,227 ▲46 | 5.52 ▼0.15 | 86.03 ▼16.36 | 79.59 ▲36.00 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.99 ▼0.03 | 34.79 ▲0.36 | 31.18 ▼0.57 |
Add New Post /wp-admin/post-new.php | 1,708 ▲180 | 21.80 ▼1.45 | 713.50 ▲40.68 | 56.29 ▲0.03 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.18 ▼0.05 | 95.32 ▼1.24 | 72.57 ▲28.88 |
Settings /wp-admin/class-paystack-forms-admin.php | 26 | 0.42 | 0.07 | 13.84 |
All Forms /wp-admin/edit.php?post_type=paystack_form | 1,112 | 1.94 | 31.39 | 30.62 |
Add New /wp-admin/post-new.php?post_type=paystack_form | 2,159 | 3.05 | 63.33 | 82.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_paystack_forms_payments
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- plugin_error
- can_compress_scripts
- kkd_db_version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=paystack_form
- > Notice in wp-content/plugins/payment-forms-for-paystack/admin/class-paystack-forms-admin.php+683
Undefined index: eventmeta_noncename
- > GET request to /wp-admin/post-new.php?post_type=paystack_form
- > Notice in wp-content/plugins/payment-forms-for-paystack/admin/class-paystack-forms-admin.php+304
Undefined index: action
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 take a closer look at the following
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/payment-forms-for-paystack/public/class-paystack-forms-public-for-old-themes.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/payment-forms-for-paystack/includes/paystack-invoice.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/payment-forms-for-paystack/public/class-paystack-forms-public-for-old-themes.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/payment-forms-for-paystack/public/class-paystack-forms-public.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/payment-forms-for-paystack/public/class-paystack-forms-public.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/payment-forms-for-paystack/public/class-paystack-forms-public.php on line 3
- > PHP Warning
require_once(ABSPATHwp-load.php): failed to open stream: No such file or directory in wp-content/plugins/payment-forms-for-paystack/includes/paystack-invoice.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/payment-forms-for-paystack/includes/paystack-invoice.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/payment-forms-for-paystack/public/class-paystack-forms-public-for-old-themes.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/payment-forms-for-paystack/admin/class-paystack-forms-admin.php:778
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/class-paystack-forms-admin.php
- > Network (severe)
wp-admin/class-paystack-forms-admin.php - Failed to load resource: the server responded with a status of 404 (Not 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
Attributes that need to be fixed:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
payment-forms-for-paystack/paystack-forms.php 92% from 13 tests
"Payment Forms for Paystack" version 3.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("payment-forms-for-paystack.php" instead of "paystack-forms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected9,246 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 713 | 500 | 5,962 |
CSS | 4 | 322 | 129 | 2,005 |
JavaScript | 5 | 59 | 37 | 743 |
SVG | 1 | 0 | 0 | 520 |
Markdown | 1 | 10 | 0 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 6 | 7.59% |
▷ Public methods | 67 | 84.81% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 15.19% |
Functions | 63 | |
▷ Named functions | 63 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner-772x250.png | 21.08KB | 7.58KB | ▼ 64.05% |
images/cardlogos.png | 15.23KB | 5.55KB | ▼ 63.58% |
images/logo.png | 0.25KB | 0.31KB | 0.00% |
icon.png | 13.06KB | 7.82KB | ▼ 40.15% |
images/logos@2x.png | 42.85KB | 8.20KB | ▼ 80.86% |