Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼299.93ms] Passed 4 tests
Analyzing server-side resources used by 1stPayGateway for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 60.11 ▲5.04 |
Dashboard /wp-admin | 3.41 ▲0.01 | 42.07 ▲6.12 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 43.79 ▲2.72 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.08 | 94.80 ▼1,205.10 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 24.78 ▼2.37 |
Server storage [IO: ▲0.44MB] [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: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
1stPayGateway for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,807 ▲53 | 16.20 ▲0.35 | 5.62 ▼0.60 | 2.94 ▲0.53 |
Dashboard /wp-admin | 2,904 ▲24 | 6.40 ▼0.18 | 132.58 ▼8.08 | 157.24 ▼6.84 |
Posts /wp-admin/edit.php | 2,688 ▲3 | 3.42 ▼0.01 | 62.64 ▼3.05 | 146.66 ▲6.44 |
Add New Post /wp-admin/post-new.php | 1,661 ▼56 | 16.49 ▼5.69 | 397.46 ▼23.39 | 160.22 ▼1.59 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.75 ▲0.03 | 134.49 ▼7.88 | 183.78 ▼2.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests Passed 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 everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 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
9 plugin tags: payment, credit card, woocommerce, checkout, merchant...
1stpaygateway-for-woocommerce/1stpaygateway.php 92% from 13 tests
The primary PHP file in "1stPayGateway for WooCommerce" version 1.3.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("1stpaygateway-for-woocommerce.php" instead of "1stpaygateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,159 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 156 | 247 | 1,059 |
Markdown | 1 | 23 | 0 | 50 |
JavaScript | 1 | 8 | 5 | 31 |
XML | 2 | 0 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 41.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 5.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 54 | 98.18% |
▷ Protected methods | 1 | 1.82% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 51 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 51 | 100.00% |
▷ Public constants | 51 | 100.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
3 PNG files occupy 0.35MB with 0.23MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/capture_checkout_form.PNG | 46.30KB | 16.00KB | ▼ 65.45% |
assets/capture_my_account.PNG | 43.77KB | 20.49KB | ▼ 53.19% |
assets/capture_thankyou_page.PNG | 272.92KB | 64.21KB | ▼ 76.47% |