Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.54ms] Passed 4 tests
Analyzing server-side resources used by SecurePay For WPForms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.95 ▼1.21 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.65 ▼2.72 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.17 ▲1.46 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.98 ▼7.67 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.47 ▲4.45 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for SecurePay For WPForms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.29 ▲0.06 | 1.85 ▲0.16 | 41.47 ▼5.30 |
Dashboard /wp-admin | 2,206 ▲25 | 5.58 ▼0.11 | 85.05 ▼25.67 | 42.98 ▼0.20 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.02 ▲0.04 | 35.24 ▼3.21 | 36.97 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 22.97 ▼0.18 | 690.35 ▼3.33 | 66.98 ▲10.59 |
Media Library /wp-admin/upload.php | 1,411 ▲17 | 4.21 ▲0.01 | 112.13 ▲8.74 | 49.04 ▲3.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPForms_Payment' not found in wp-content/plugins/securepay-for-wpforms/includes/src/WPForms_SecurePay_Payment.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: fpx, payment gateway, malaysia, payment platform, online banking
securepay-for-wpforms/securepay-for-wpforms.php 92% from 13 tests
This is the main PHP file of "SecurePay For WPForms" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,015 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 142 | 61 | 927 |
CSS | 2 | 7 | 0 | 50 |
JavaScript | 2 | 6 | 1 | 38 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 127.00 |
Average method complexity | 6.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 27 | |
▷ Static methods | 11 | 40.74% |
▷ Public methods | 15 | 55.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 44.44% |
Functions | 7 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 7 | 100.00% |
Constants | 10 | |
▷ Global constants | 10 | 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
30 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/bnk/abb0234.png | 3.99KB | 2.19KB | ▼ 45.11% |
includes/admin/bnk/abmb0212.png | 2.70KB | 1.63KB | ▼ 39.49% |
includes/admin/bnk/abb0233.png | 3.99KB | 2.19KB | ▼ 45.11% |
includes/admin/securepay-bank-alt.png | 55.21KB | 17.34KB | ▼ 68.59% |
includes/admin/bnk/hlb0224.png | 4.09KB | 2.13KB | ▼ 48.01% |