Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.78ms] Passed 4 tests
An overview of server-side resources used by SecurePay For Paid Memberships Pro
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 45.08 ▼0.39 |
Dashboard /wp-admin | 3.33 ▼0.02 | 55.55 ▼12.75 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 53.60 ▲1.02 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.83 ▼19.02 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.50 ▼2.96 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
SecurePay For Paid Memberships Pro: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.36 ▲0.01 | 1.90 ▲0.16 | 43.19 ▲0.81 |
Dashboard /wp-admin | 2,206 ▲26 | 5.60 ▼0.12 | 90.81 ▼2.70 | 44.14 ▲2.12 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.03 ▲0.01 | 37.53 ▼2.80 | 36.55 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 23.02 ▼0.05 | 633.82 ▲17.16 | 55.73 ▲0.61 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.18 ▼0.02 | 101.08 ▼5.58 | 44.58 ▼1.67 |
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 detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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
5 plugin tags: payment platform, fpx, payment gateway, online banking, malaysia
securepay-for-paidmembershipspro/securepay-for-paidmembershipspro.php 92% from 13 tests
"SecurePay For Paid Memberships Pro" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected979 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 143 | 61 | 901 |
CSS | 2 | 5 | 0 | 40 |
JavaScript | 2 | 5 | 1 | 38 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 55.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 34 | |
▷ Static methods | 24 | 70.59% |
▷ Public methods | 21 | 61.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 38.24% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
29 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/bnk/hsbc0223.png | 1.91KB | 1.21KB | ▼ 36.50% |
includes/admin/bnk/blank.png | 0.15KB | 0.10KB | ▼ 34.64% |
includes/admin/bnk/test0023.png | 2.88KB | 1.52KB | ▼ 47.23% |
includes/admin/bnk/uob0229.png | 1.88KB | 1.44KB | ▼ 23.54% |
includes/admin/bnk/test0021.png | 2.88KB | 1.52KB | ▼ 47.23% |