Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.67ms] Passed 4 tests
An overview of server-side resources used by SecurePay For GiveWP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 54.36 ▲8.35 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.00 ▼4.67 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 53.13 ▼3.14 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 95.47 ▼17.89 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.30 ▼0.98 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by SecurePay For GiveWP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.44 ▲0.07 | 1.89 ▲0.15 | 41.32 ▼9.69 |
Dashboard /wp-admin | 2,200 ▲26 | 5.52 ▼0.18 | 87.38 ▼9.72 | 39.59 ▼7.00 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.01 ▲0.02 | 41.19 ▲4.78 | 37.39 ▲0.99 |
Add New Post /wp-admin/post-new.php | 1,560 ▲29 | 23.55 ▲0.35 | 651.77 ▼47.38 | 51.55 ▲0.23 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.23 ▼0.01 | 103.31 ▲0.11 | 46.12 ▲1.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
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: online banking, malaysia, payment gateway, payment platform, fpx
securepay-for-givewp/securepay-for-givewp.php 92% from 13 tests
This is the main PHP file of "SecurePay For GiveWP" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,103 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 155 | 59 | 990 |
JavaScript | 2 | 9 | 1 | 73 |
CSS | 2 | 5 | 0 | 40 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 59.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 33 | |
▷ Static methods | 11 | 33.33% |
▷ Public methods | 17 | 51.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 48.48% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
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
PNG files should be compressed to save space and minimize bandwidth usage
30 PNG files occupy 0.15MB with 0.07MB 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/kfh0346.png | 5.25KB | 2.74KB | ▼ 47.81% |
includes/admin/bnk/bimb0340.png | 2.05KB | 1.33KB | ▼ 35.39% |
includes/admin/bnk/bcbb0235.png | 2.86KB | 1.79KB | ▼ 37.32% |
includes/admin/bnk/mbb0228.png | 7.57KB | 3.35KB | ▼ 55.79% |