Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.27ms] Passed 4 tests
An overview of server-side resources used by SecurePay For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.42 ▲1.81 |
Dashboard /wp-admin | 3.34 ▲0.03 | 57.17 ▲6.84 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 54.35 ▲0.17 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.60 ▼4.75 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.05 ▼2.32 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
SecurePay For WooCommerce: 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 ▲14 | 14.32 ▲0.04 | 2.27 ▲0.10 | 47.61 ▲7.06 |
Dashboard /wp-admin | 2,206 ▲32 | 5.51 ▼0.16 | 87.55 ▼29.54 | 38.30 ▼20.68 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.01 ▲0.01 | 37.48 ▼1.14 | 37.84 ▲5.14 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.37 ▲0.37 | 679.75 ▼18.70 | 52.41 ▼0.39 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.24 ▲0.03 | 96.95 ▼23.80 | 44.17 ▼3.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: malaysia, payment platform, fpx, payment gateway, online banking
securepay/securepay.php Passed 13 tests
The main PHP file in "SecurePay For WooCommerce" ver. 1.0.18 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
Plugin for SecurePay payment platform with WooCommerce
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
Good job! No executable or dangerous file extensions detected1,005 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 140 | 48 | 718 |
JavaScript | 4 | 17 | 3 | 159 |
SVG | 2 | 0 | 2 | 105 |
CSS | 2 | 4 | 0 | 23 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 49.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 30 | |
▷ Static methods | 10 | 33.33% |
▷ Public methods | 17 | 56.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 43.33% |
Functions | 8 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 8 | 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
31 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/bnk/scb0216.png | 4.63KB | 2.54KB | ▼ 45.01% |
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/cit0219.png | 2.11KB | 1.30KB | ▼ 38.58% |
includes/admin/bnk/abmb0212.png | 2.70KB | 1.63KB | ▼ 39.49% |