Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.18ms] Passed 4 tests
Analyzing server-side resources used by PayPlus Payment Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.82 ▼7.19 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.63 ▼6.84 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.70 ▲1.65 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.58 ▼2.30 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.54 ▼0.40 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 46 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_payplus_payment_session |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
PayPlus Payment Gateway: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.25 ▼0.10 | 1.65 ▲0.01 | 37.72 ▼7.34 |
Dashboard /wp-admin | 2,198 ▲21 | 5.60 ▼0.04 | 91.65 ▼6.09 | 40.97 ▼6.12 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.95 ▲0.01 | 39.56 ▼0.07 | 35.02 ▼4.50 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.32 ▲0.30 | 635.95 ▲30.92 | 53.07 ▼16.12 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.17 ▲0.01 | 96.39 ▼1.40 | 40.79 ▼1.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_payplus_payment_session
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
SRP 0% 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 items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/payplus-payment-gateway/payplus-payment-gateway.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/payplus-payment-gateway/includes/elementor/widgets/express_checkout.php:3
- > PHP Warning
Use of undefined constant PAYPLUS_PLUGIN_DIR - assumed 'PAYPLUS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/payplus-payment-gateway/includes/wc_payplus_express_checkout.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/payplus-payment-gateway/includes/wc_payplus_express_checkout.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/payplus-payment-gateway/includes/wc_payplus_express_checkout.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #8 in payplus-payment-gateway/assets to your readme.txt
payplus-payment-gateway/payplus-payment-gateway.php 85% from 13 tests
Analyzing the main PHP file in "PayPlus Payment Gateway" version 6.5.4
You should first fix the following items:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 227 characters long)
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
Success! There were no dangerous files found in this plugin9,134 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 917 | 815 | 5,890 |
JavaScript | 8 | 253 | 65 | 1,786 |
PO File | 2 | 388 | 512 | 846 |
CSS | 6 | 61 | 5 | 328 |
Sass | 1 | 24 | 0 | 186 |
SVG | 10 | 0 | 0 | 98 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 78.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 409.00 |
Average method complexity | 6.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 171 | |
▷ Static methods | 4 | 2.34% |
▷ Public methods | 168 | 98.25% |
▷ Protected methods | 1 | 0.58% |
▷ Private methods | 2 | 1.17% |
Functions | 12 | |
▷ Named functions | 9 | 75.00% |
▷ Anonymous functions | 3 | 25.00% |
Constants | 20 | |
▷ Global constants | 20 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/multipass.png | 13.79KB | 2.42KB | ▼ 82.44% |
assets/images/google-pay.png | 1.34KB | 0.94KB | ▼ 29.66% |
assets/images/max.png | 0.95KB | 0.56KB | ▼ 40.76% |
assets/images/bit.png | 0.90KB | 0.63KB | ▼ 29.86% |
assets/images/apple-pay.png | 0.67KB | 0.53KB | ▼ 20.75% |