Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼5.36ms] Passed 4 tests
Analyzing server-side resources used by Z-Credit Checkout - WooCommerce Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.57 ▲2.37 |
Dashboard /wp-admin | 3.32 ▼0.03 | 46.41 ▼15.15 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 54.45 ▲9.40 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.60 ▼7.65 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.40 ▼1.00 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Z-Credit Checkout - WooCommerce Payment Gateway: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲22 | 14.23 ▼0.03 | 1.72 ▼0.03 | 44.78 ▲1.43 |
Dashboard /wp-admin | 2,202 ▲27 | 5.67 ▼0.05 | 90.51 ▼18.38 | 38.91 ▼2.69 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.06 | 44.10 ▲6.52 | 35.53 ▼2.02 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.32 ▲0.23 | 702.92 ▲3.87 | 51.21 ▼15.69 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.35 ▲0.16 | 100.51 ▼14.56 | 42.05 ▼8.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/z-credit-webcheckout-for-woo/woocommerce-zcredit-checkout.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
z-credit-webcheckout-for-woo/woocommerce-zcredit-checkout.php 92% from 13 tests
The principal PHP file in "Z-Credit Checkout - WooCommerce Payment Gateway" v. 3.7.5 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("z-credit-webcheckout-for-woo.php" instead of "woocommerce-zcredit-checkout.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,622 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 183 | 161 | 1,118 |
PO File | 1 | 108 | 141 | 244 |
JavaScript | 1 | 26 | 26 | 184 |
CSS | 2 | 12 | 0 | 76 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 5.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.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 | 28 | |
▷ Static methods | 5 | 17.86% |
▷ Public methods | 19 | 67.86% |
▷ Protected methods | 1 | 3.57% |
▷ Private methods | 8 | 28.57% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Logo.png | 5.61KB | 2.61KB | ▼ 53.44% |
images/payment_icon.png | 6.24KB | 2.55KB | ▼ 59.18% |
images/splash_bg.png | 0.94KB | 0.11KB | ▼ 88.19% |
images/pattern.png | 0.99KB | 0.10KB | ▼ 89.59% |