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.01MB] [CPU: ▼10.45ms] Passed 4 tests
A check of server-side resources used by WooCommerce Clover Payment Gateway
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.36 ▼8.77 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.72 ▼10.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.21 ▼4.91 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.40 ▼17.74 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.50 ▲1.67 |
Server storage [IO: ▲0.28MB] [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: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Clover Payment Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.23 ▼1.16 | 1.84 ▲0.14 | 37.75 ▼11.89 |
Dashboard /wp-admin | 2,214 ▲26 | 5.86 ▲0.97 | 99.11 ▼13.96 | 37.69 ▼8.18 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▼0.02 | 35.72 ▲1.19 | 33.85 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 23.47 ▼0.30 | 614.87 ▼55.06 | 41.78 ▼6.48 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.29 ▲0.07 | 97.68 ▼2.59 | 41.60 ▼2.33 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- woocommerce_woocci_zaytech_settings
- db_upgraded
Smoke tests Passed 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 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in woo-clover-gateway-by-zaytech/assets to your readme.txt
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
woo-clover-gateway-by-zaytech/zaytech-woo-commerce-clover-integration.php 77% from 13 tests
"WooCommerce Clover Payment Gateway" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-clover-gateway-by-zaytech.php" instead of "zaytech-woo-commerce-clover-integration.php")
- Text Domain: The text domain should only use lowercase characters and dashes
- Requires at least: Required version must match the one declared in readme.txt ("4.7.1" instead of "4.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,978 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 283 | 448 | 1,484 |
SVG | 18 | 0 | 9 | 332 |
PO File | 1 | 70 | 72 | 160 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 24.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 21 | 31.82% |
▷ Public methods | 61 | 92.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.58% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-256x256.png | 39.47KB | 11.49KB | ▼ 70.90% |