Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼10.66ms] Passed 4 tests
A check of server-side resources used by Crypto.com Pay Checkout for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 34.89 ▼9.53 |
Dashboard /wp-admin | 3.46 ▲0.16 | 38.10 ▼11.81 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 44.72 ▲0.50 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 70.12 ▼21.46 |
Media Library /wp-admin/upload.php | 3.40 ▲0.18 | 34.35 ▲0.17 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
crypto_plugin_version |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Crypto.com Pay Checkout for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 13.31 ▼1.07 | 4.12 ▲2.19 | 39.13 ▼5.69 |
Dashboard /wp-admin | 2,220 ▲32 | 4.88 ▼0.01 | 111.20 ▼2.77 | 42.92 ▼5.37 |
Posts /wp-admin/edit.php | 2,105 ▲19 | 2.01 ▼0.04 | 40.93 ▲7.02 | 36.14 ▲2.79 |
Add New Post /wp-admin/post-new.php | 1,551 ▲31 | 18.25 ▼4.80 | 633.72 ▼7.43 | 50.05 ▼12.25 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.20 ▼0.08 | 100.40 ▲0.61 | 42.49 ▲0.40 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- crypto_plugin_version
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 21 tag instead of maximum 10
crypto-com-pay-checkout-for-woocommerce/class-crypto-pay.php 85% from 13 tests
Analyzing the main PHP file in "Crypto.com Pay Checkout for WooCommerce" version 1.3.5
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("crypto-com-pay-checkout-for-woocommerce.php" instead of "class-crypto-pay.php")
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,089 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 159 | 298 | 2,016 |
SVG | 1 | 1 | 1 | 30 |
PO File | 1 | 5 | 5 | 27 |
Markdown | 1 | 10 | 0 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 36 | |
▷ Static methods | 14 | 38.89% |
▷ Public methods | 21 | 58.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 41.67% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin