Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.16MB] [CPU: ▼17.09ms] Passed 4 tests
An overview of server-side resources used by Snapplify Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.52 ▼2.15 |
Dashboard /wp-admin | 3.21 ▼0.10 | 40.64 ▼9.51 |
Posts /wp-admin/edit.php | 3.27 ▼0.08 | 37.71 ▼19.78 |
Add New Post /wp-admin/post-new.php | 5.45 ▼0.44 | 75.16 ▼36.91 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 34.22 ▼1.05 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
recovery_mode_email_last_sent |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Snapplify Payment Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,457 ▼1,329 | 11.87 ▼2.49 | 2.01 ▼0.03 | 42.78 ▼4.50 |
Dashboard /wp-admin | 850 ▼1,327 | 1.38 ▼4.22 | 13.45 ▼78.06 | 20.55 ▼23.39 |
Posts /wp-admin/edit.php | 861 ▼1,239 | 1.53 ▼0.51 | 6.66 ▼31.68 | 20.86 ▼14.42 |
Add New Post /wp-admin/post-new.php | 587 ▼945 | 1.73 ▼21.39 | 19.00 ▼641.95 | 7.16 ▼45.76 |
Media Library /wp-admin/upload.php | 746 ▼651 | 1.73 ▼2.53 | 20.50 ▼82.01 | 20.28 ▼26.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/snapplify-payment-gateway/includes/class-wc-gateway-snapplify.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 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
5 plugin tags: woocommerce, e-commerce, snapplify, payments, gateway
snapplify-payment-gateway/snapplify-payment-gateway.php Passed 13 tests
This is the main PHP file of "Snapplify Payment Gateway" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
51 characters long description:
Accept payments in WooCommerce using Snapplify Pay.
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 detected623 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 134 | 65 | 602 |
Markdown | 1 | 14 | 0 | 21 |
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.31 |
Average class complexity | 41.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 6 | 20.69% |
▷ Public methods | 18 | 62.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 37.93% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/snapplify-icon.png | 6.15KB | 1.06KB | ▼ 82.81% |