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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼5.33ms] Passed 4 tests
Analyzing server-side resources used by Payscript CryptoCheckout
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.16 | 39.74 ▼3.81 |
Dashboard /wp-admin | 3.77 ▲0.21 | 49.79 ▼7.23 |
Posts /wp-admin/edit.php | 3.83 ▲0.15 | 53.97 ▼2.90 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.15 | 89.54 ▼7.36 |
Media Library /wp-admin/upload.php | 3.63 ▲0.15 | 40.88 ▲0.73 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
woocommerce_payscript_version |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Payscript CryptoCheckout
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.37 ▼0.15 | 2.90 ▲0.90 | 42.64 ▼1.47 |
Dashboard /wp-admin | 2,195 ▲21 | 5.56 ▼0.08 | 87.36 ▲0.69 | 40.94 ▼1.00 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.18 ▲0.17 | 34.36 ▼2.64 | 33.28 ▼4.47 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 18.48 ▲0.70 | 647.05 ▼58.95 | 56.76 ▲4.65 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.31 ▼0.01 | 96.81 ▼6.86 | 42.31 ▼3.52 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (View Transactions), #2 (View Transaction Details), #3 (Track Payments)
payscript-cryptocheckout/class-wc-gateway-payscript.php 92% from 13 tests
"Payscript CryptoCheckout" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("payscript-cryptocheckout.php" instead of "class-wc-gateway-payscript.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,416 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 103 | 8 | 846 |
PHP | 3 | 124 | 111 | 802 |
SVG | 14 | 0 | 6 | 507 |
JavaScript | 3 | 5 | 3 | 129 |
Smarty | 1 | 3 | 0 | 89 |
Markdown | 1 | 27 | 0 | 43 |
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.23 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/currency.png | 2.23KB | 1.52KB | ▼ 31.61% |
assets/images/timer.png | 1.75KB | 0.56KB | ▼ 67.82% |
assets/images/copy.png | 0.31KB | 0.31KB | 0.00% |
assets/images/copy1.png | 4.80KB | 3.27KB | ▼ 31.88% |