Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.97ms] Passed 4 tests
Server-side resources used by MemberPay - Integrate Midtrans Payment Gateway for MemberPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.99 ▼2.90 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.38 ▼2.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.91 ▼5.01 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 101.73 ▼1.77 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.26 ▲8.25 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 154 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by MemberPay - Integrate Midtrans Payment Gateway for MemberPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.22 ▼0.13 | 1.66 ▼0.61 | 41.68 ▼2.51 |
Dashboard /wp-admin | 2,198 ▲18 | 5.61 ▼0.04 | 92.23 ▼4.54 | 43.69 ▼2.45 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.03 | 43.22 ▲4.92 | 40.40 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.78 ▼0.91 | 657.34 ▼0.18 | 57.36 ▲4.15 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.20 ▲0.02 | 103.83 ▼0.48 | 47.30 ▲5.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
The following issues need your attention
- 10× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/memberpay/vendor/midtrans-php-master/examples/core-api/transaction-manipulation.php
- > /wp-content/plugins/memberpay/vendor/midtrans-php-master/examples/snap-redirect/checkout-process.php
- > /wp-content/plugins/memberpay/vendor/midtrans-php-master/examples/core-api/checkout-process.php
- > /wp-content/plugins/memberpay/vendor/midtrans-php-master/examples/snap/index.php
- > /wp-content/plugins/memberpay/vendor/midtrans-php-master/examples/core-api/tokenization-process.php
- > /wp-content/plugins/memberpay/vendor/midtrans-php-master/examples/snap/checkout-process.php
- > /wp-content/plugins/memberpay/vendor/midtrans-php-master/examples/snap-redirect/index.php
- > /wp-content/plugins/memberpay/vendor/midtrans-php-master/examples/notification-handler.php
- > /wp-content/plugins/memberpay/vendor/midtrans-php-master/examples/core-api/checkout.php
- > /wp-content/plugins/memberpay/vendor/midtrans-php-master/examples/snap/checkout-process-simple-version.php
- 107× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/memberpay/vendor/xendit-php-master/examples/CardsExample.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'Xendit\\TestCase' not found in wp-content/plugins/memberpay/vendor/xendit-php-master/tests/Xendit/DisbursementsTest.php:26
- > PHP Fatal error
Trait 'Xendit\\ApiOperations\\Request' not found in wp-content/plugins/memberpay/vendor/xendit-php-master/src/PaymentChannels.php on line 25
- > PHP Warning
require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/memberpay/vendor/xendit-php-master/examples/RecurringExample.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'Xendit\\TestCase' not found in wp-content/plugins/memberpay/vendor/xendit-php-master/tests/Xendit/PromotionTest.php:27
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/memberpay/vendor/midtrans-php-master/tests/integration/IntegrationTest.php:7
- > PHP Warning
require_once(wp-content/plugins/memberpay/vendor/midtrans-php-master/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/memberpay/vendor/midtrans-php-master/test_bootstrap.php on line 6
- > PHP Fatal error
require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/memberpay/vendor/xendit-php-master/examples/CardsReverseExample.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/memberpay/vendor/midtrans-php-master/tests/MidtransCoreApiTest.php:5
- > PHP Warning
require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/memberpay/vendor/xendit-php-master/examples/TransactionExample.php on line 16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: midtrans, payment, billing, membership, subscription...
memberpay/memberpay.php 92% from 13 tests
The main PHP script in "MemberPay - Integrate Midtrans Payment Gateway for MemberPress" version 1.3.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Requires PHP: The required version number did not match the one declared in readme.txt ("8.1.11" instead of "8.1.9")
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 detected11,029 lines of code in 139 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 124 | 2,159 | 4,617 | 8,798 |
Markdown | 4 | 597 | 0 | 1,928 |
JSON | 3 | 1 | 0 | 125 |
JavaScript | 2 | 36 | 10 | 70 |
YAML | 4 | 9 | 3 | 64 |
XML | 2 | 0 | 0 | 44 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 3 | |
Traits | 5 | |
Classes | 73 | |
▷ Abstract classes | 1 | 1.37% |
▷ Concrete classes | 72 | 98.63% |
▷ Final classes | 0 | 0.00% |
Methods | 429 | |
▷ Static methods | 163 | 38.00% |
▷ Public methods | 405 | 94.41% |
▷ Protected methods | 7 | 1.63% |
▷ Private methods | 17 | 3.96% |
Functions | 40 | |
▷ Named functions | 34 | 85.00% |
▷ Anonymous functions | 6 | 15.00% |
Constants | 59 | |
▷ Global constants | 7 | 11.86% |
▷ Class constants | 52 | 88.14% |
▷ Public constants | 52 | 100.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
No PNG files were detected