Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼273.12ms] Passed 4 tests
An overview of server-side resources used by PayDock for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 32.11 ▲10.63 |
Dashboard /wp-admin | 3.07 ▲0.02 | 43.91 ▼10.42 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 41.60 ▲2.85 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 80.33 ▼1,076.17 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 31.09 ▼8.73 |
Server storage [IO: ▲1.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
PayDock for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,673 ▲67 | 15.86 ▲0.31 | 9.84 ▲1.79 | 49.54 ▼1.00 |
Dashboard /wp-admin | 2,928 ▲78 | 5.87 ▲0.03 | 138.55 ▼7.49 | 105.09 ▼0.79 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.68 ▼0.01 | 65.06 ▼4.30 | 88.02 ▼7.51 |
Add New Post /wp-admin/post-new.php | 1,653 ▼0 | 18.87 ▲0.18 | 380.88 ▲8.17 | 110.33 ▲3.72 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 5.00 ▼0.01 | 152.52 ▲1.01 | 106.85 ▼9.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway_CC' not found in wp-content/plugins/paydock-for-woocommerce/class-paydock.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (This is the widget in the WooCommerce store), #2 (Your admin panel to change the PayDock settings), #3 (This is where you get you API keys from PayDock website), #4 (Adding your payment gateway in PayDock), #5 (How to make your first charge for the newly created gateway)
paydock-for-woocommerce/paydock-for-woocommerce.php Passed 13 tests
The main PHP file in "PayDock for WooCommerce" ver. 1.5.6 adds more information about the plugin and also serves as the entry point for this plugin
23 characters long description:
PayDock for WooCommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,100 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 162 | 119 | 756 |
CSS | 1 | 25 | 0 | 179 |
JavaScript | 3 | 39 | 6 | 165 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 24.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 23 | 95.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.17% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 1 test
Image compression 0% from 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 1.10MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 81.17KB | 29.87KB | ▼ 63.20% |
screenshot-1.png | 129.59KB | 28.82KB | ▼ 77.76% |
admin/images/afterpay.png | 7.73KB | 7.74KB | 0.00% |
admin/images/logo.png | 3.57KB | 1.25KB | ▼ 65.16% |
assets/logo.png | 3.57KB | 1.25KB | ▼ 65.16% |