Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/xtmpay/inc/functions.php+159
Methods with the same name as their class will not be constructors in a future version of PHP; Paginator has a deprecated constructor
Server metrics [RAM: ▼1.79MB] [CPU: ▼54.94ms] Passed 4 tests
Server-side resources used by XTMPAY GATEWAY
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.25 | 5.84 ▼29.98 |
Dashboard /wp-admin | 2.23 ▼1.12 | 6.51 ▼55.47 |
Posts /wp-admin/edit.php | 2.23 ▼1.13 | 6.68 ▼40.23 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.66 | 6.61 ▼94.08 |
Media Library /wp-admin/upload.php | 2.23 ▼1.00 | 7.62 ▼24.07 |
TrueMoney /wp-admin/admin.php?page=tmpay-truemoney | 2.23 | 5.83 |
XTMPAY /wp-admin/admin.php?page=tmpay-setting | 2.23 | 5.91 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 41 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_xtmpay_setting |
wp_xtmpay_truemoney |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
xtmpay_licensekey |
xtmlicensekey_type |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
tmpay_db_version |
xtmpay_merchant_id |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for XTMPAY GATEWAY
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲123 | 13.71 ▼0.58 | 1.63 ▼0.01 | 42.82 ▼2.10 |
Dashboard /wp-admin | 2,262 ▲77 | 4.93 ▼0.92 | 97.60 ▼8.02 | 86.04 ▲42.82 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 2.02 ▼0.01 | 39.50 ▲4.24 | 51.92 ▲15.51 |
Add New Post /wp-admin/post-new.php | 1,577 ▲49 | 18.08 ▼4.81 | 655.54 ▲47.29 | 61.19 ▲3.59 |
Media Library /wp-admin/upload.php | 1,438 ▲47 | 4.26 ▼0.00 | 94.76 ▼5.11 | 74.53 ▲32.87 |
TrueMoney /wp-admin/admin.php?page=tmpay-truemoney | 877 | 2.04 | 25.17 | 63.24 |
XTMPAY /wp-admin/admin.php?page=tmpay-setting | 1,729 | 6.68 | 128.39 | 130.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/xtmpay/inc/functions.php+159
Methods with the same name as their class will not be constructors in a future version of PHP; Paginator has a deprecated constructor
- The uninstall procedure has failed, leaving 10 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- xtmlicensekey_type
- widget_recent-posts
- tmpay_db_version
- xtmpay_merchant_id
- db_upgraded
- xtmpay_licensekey
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tmpay-setting
- > Deprecated in wp-content/plugins/xtmpay/inc/functions.php+159
Methods with the same name as their class will not be constructors in a future version of PHP; Paginator has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tmpay-setting
- > Deprecated in wp-content/plugins/xtmpay/inc/functions.php+9
Function get_magic_quotes_gpc() is deprecated
- > GET request to /wp-admin/admin.php?page=tmpay-setting
- > Notice in wp-content/plugins/xtmpay/admin/admin_setting.php+208
Undefined index: tab
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: truemoney, payment gateway, xtmpay, tmpay
xtmpay/xtmpay.php Passed 13 tests
This is the main PHP file of "XTMPAY GATEWAY" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
A TrueMoney payment gateway (TrueMoney cash Card). [ Service by tmpay.net ]
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin3,046 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 72 | 69 | 2,041 |
PHP | 6 | 213 | 23 | 998 |
JavaScript | 3 | 0 | 14 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 10.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 4 | 23.53% |
▷ Class constants | 13 | 76.47% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.21MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/setting.png | 133.38KB | 0.37KB | ▼ 99.72% |
admin/images/truemoney.png | 1.32KB | 0.98KB | ▼ 26.33% |
img/clear.png | 0.50KB | 0.38KB | ▼ 22.59% |
img/search-dark.png | 3.18KB | 0.52KB | ▼ 83.71% |
img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |