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.01MB] [CPU: ▼3.03ms] Passed 4 tests
An overview of server-side resources used by Opn Payments
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 32.64 ▼6.23 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.69 ▼5.66 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.11 ▲3.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 96.95 ▼3.22 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.82 ▲3.00 |
Server storage [IO: ▲2.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 234 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Opn Payments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▲0.32 | 1.94 ▲0.23 | 40.30 ▼4.04 |
Dashboard /wp-admin | 2,192 ▲18 | 5.68 ▲0.10 | 91.40 ▼8.05 | 42.68 ▲0.62 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.95 ▲0.00 | 40.31 ▲3.64 | 34.36 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.69 ▲0.39 | 620.31 ▼33.79 | 48.48 ▼2.97 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.15 ▼0.00 | 97.41 ▼5.07 | 43.04 ▼0.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
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
- 43× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/omise/includes/gateway/class-omise-payment-creditcard.php
- > /wp-content/plugins/omise/includes/gateway/class-omise-payment-alipayplus.php
- > /wp-content/plugins/omise/includes/gateway/class-omise-payment-googlepay.php
- > /wp-content/plugins/omise/includes/gateway/class-omise-payment-billpayment-tesco.php
- > /wp-content/plugins/omise/includes/gateway/abstract-omise-payment-base-card.php
- > /wp-content/plugins/omise/includes/classes/class-omise-customer.php
- > /wp-content/plugins/omise/includes/gateway/class-omise-payment-internetbanking.php
- > /wp-content/plugins/omise/includes/gateway/class-omise-payment-konbini.php
- > /wp-content/plugins/omise/includes/gateway/class-omise-payment-touch-n-go.php
- > /wp-content/plugins/omise/includes/class-omise-rest-webhooks-controller.php
- 89× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'OmiseApiResource' not found in wp-content/plugins/omise/includes/libraries/omise-php/lib/omise/OmiseLink.php:3
- > PHP Notice
Undefined variable: viewData in wp-content/plugins/omise/templates/payment/form.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'OmiseApiResource' not found in wp-content/plugins/omise/includes/libraries/omise-php/lib/omise/OmiseCustomer.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/omise/tests/unit/includes/gateway/class-omise-payment-creditcard-test.php:6
- > PHP Fatal error
Uncaught Error: Class 'OmiseApiResource' not found in wp-content/plugins/omise/includes/libraries/omise-php/lib/omise/OmiseOccurrence.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/omise/tests/unit/includes/class-omise-money-test.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/omise/tests/unit/includes/class-omise-localization-test.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/omise/tests/unit/includes/gateway/bootstrap-test-setup.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/omise/tests/unit/includes/gateway/bootstrap-test-setup.php:6
- > PHP Fatal error
Uncaught Error: Class 'OmiseApiResource' not found in wp-content/plugins/omise/includes/libraries/omise-php/lib/omise/OmiseRefund.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% 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:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
omise/omise-woocommerce.php 77% from 13 tests
The main file in "Opn Payments" v. 5.6.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.3.1" instead of "3.3.4")
- Main file name: Name the main plugin file the same as the plugin slug ("omise.php" instead of "omise-woocommerce.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin11,799 lines of code in 201 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 146 | 1,765 | 3,291 | 8,965 |
JavaScript | 10 | 116 | 37 | 774 |
CSS | 3 | 140 | 57 | 662 |
Markdown | 4 | 332 | 0 | 652 |
SVG | 35 | 2 | 4 | 414 |
PO File | 1 | 137 | 163 | 291 |
XML | 1 | 0 | 0 | 27 |
JSON | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 147 | |
▷ Abstract classes | 8 | 5.44% |
▷ Concrete classes | 139 | 94.56% |
▷ Final classes | 0 | 0.00% |
Methods | 697 | |
▷ Static methods | 148 | 21.23% |
▷ Public methods | 593 | 85.08% |
▷ Protected methods | 36 | 5.16% |
▷ Private methods | 68 | 9.76% |
Functions | 14 | |
▷ Named functions | 4 | 28.57% |
▷ Anonymous functions | 10 | 71.43% |
Constants | 66 | |
▷ Global constants | 13 | 19.70% |
▷ Class constants | 53 | 80.30% |
▷ Public constants | 53 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 1.46MB with 0.68MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/paypay.png | 1.58KB | 1.56KB | ▼ 1.24% |
assets/images/bbl-m.png | 6.93KB | 3.61KB | ▼ 47.89% |
assets/screenshot-2.png | 417.89KB | 87.76KB | ▼ 79.00% |
assets/images/touch-n-go.png | 11.13KB | 5.47KB | ▼ 50.91% |
assets/images/ocbc-pao.png | 9.78KB | 4.69KB | ▼ 52.06% |